An introduction to support on the Marketplaces

  • Envato staff look over every item before it can be sold on the Marketplaces.
  • Technical items contain help files to introduce you to the item and its components.
  • Authors can choose to support their items but this is optional and may vary.

Hands-on support for this item is not currently provided by morfi.

Frequently Asked Questions

List Settings


timestamp     -    time frame(days,hours,minutes,seconds)
duration     -    animation speed
soundURL     -    reference to the sound(removed if no sound)
volume        
callback     -    feature after animation

Get time value(php)


<?php
function real_date_diff($date1, $date2 = NULL)    
{
    $diff = array(
                2    =>    0,
                3    =>    0,
                4    =>    0,
                5    =>    0
            );

    if(!$date2) {
        $cd = getdate();
        $date2 = $cd['year'].'-'.$cd['mon'].'-'.$cd['mday'].' '.$cd['hours'].':'.$cd['minutes'].':'.$cd['seconds'];
    }

    $pattern = '/(\d+)-(\d+)-(\d+)(\s+(\d+):(\d+):(\d+))?/';
    preg_match($pattern, $date1, $matches);
    $d1 = array((int)$matches[1], (int)$matches[2], (int)$matches[3], (int)$matches[5], (int)$matches[6], (int)$matches[7]);
    preg_match($pattern, $date2, $matches);
    $d2 = array((int)$matches[1], (int)$matches[2], (int)$matches[3], (int)$matches[5], (int)$matches[6], (int)$matches[7]);

    $mktime_delta = mktime($d1[3],$d1[4],$d1[5],$d1[1],$d1[2],$d1[0]) - mktime($d2[3],$d2[4],$d2[5],$d2[1],$d2[2],$d2[0]);

    $diff[2]        =    floor($mktime_delta/86400);
    $mktime_delta        =    $mktime_delta - 86400*$diff[2];
    $diff[3]        =    floor($mktime_delta/3600);
    $mktime_delta        =    $mktime_delta - 3600*$diff[3];
    $diff[4]    =    floor($mktime_delta/60);
    $mktime_delta        =    $mktime_delta - 60*$diff[4];
    $diff[5]    =    $mktime_delta;

    return $diff;
}
?>

and in .php file add


<script type="text/javascript">
                (function($){
                soundManager.setup({
                    url: 'js/swf/',
                    debugMode: false
                });
                $(window).load(function(){

                        $('#countdown').countdown({
                            <?php
                                //    It's stop time in format Year-month-day hours:minutes:seconds
                                $stop_date_20_days_and_10_second_to_advance = date("Y-m-d H:i:s",time()+86400*20+10);
                                $date         =     real_date_diff($stop_date_20_days_and_10_second_to_advance);

                                $days         =     $date[2];
                                $hours         =     $date[3];
                                $minutes    =     $date[4];
                                $seconds     =     $date[5];
                            ?>
                            timestamp    : {    'days'        : <?php echo $days;?>,
                                            'hours'        : <?php echo $hours;?>,
                                            'minutes'     : <?php echo $minutes;?>,
                                            'seconds'     : <?php echo $seconds?>
                                            },
                            duration    : 360,

                            soundURL    : 'js/flip.mp3',
                            volume: 25,
                            callback    : function(days, hours, minutes, seconds){

                                    var message = "";

                                    message += days + " day" + ( days==1 ? '':'s' ) + ", ";
                                    message += hours + " hour" + ( hours==1 ? '':'s' ) + ", ";
                                    message += minutes + " minute" + ( minutes==1 ? '':'s' ) + " and ";
                                    message += seconds + " second" + ( seconds==1 ? '':'s' ) + " <br />";

                                    $('.callback').html(message);
                                }
                            })

                    })
                })(jQuery)    
        </script>

When to contact Envato Support

Authors are experts on their own items, but if you're having trouble using the Marketplaces you should come straight to Envato Support.

by
by
by
by
by
by