• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] How to show date added?

Started by SonicSync,

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

SonicSyncTopic starter

How to display video submission date next to thumbs on main home page?

  •  

PHPVibe A.

In tpl/main/home.php

Replace

$options =


with

$options = DB_PREFIX."videos.date, ".


and to show date:

$video->date

or time ago
time_ago($video->date)


BUT this will make all your other pages have an error.

So copy video-loop.php to home-loop.php and change in
home.php

include(TPL.'/video-loop.php');


to

include(TPL.'/home-loop.php');


and now you can work in home-loop.php and add the time.

SonicSyncTopic starter

  •  

Similar topics (7)