PDA

View Full Version : Using the detailed datestamp.


neverstop
10-10-2007, 05:45 AM
Hi,

I have a mod that displays a date/time stamp using this code:


$link['date'] = vbdate($vbulletin->options['dateformat'], $link['dateline']);
$link['time'] = vbdate($vbulletin->options['timeformat'], $link['dateline']);

I want to use the "detailed datestamp" (1 minute ago, 1 hour ago, 1 week ago, etc). Is it possible ? Please bear with me as I am not a coder.

Cheers,
Ian

Dismounted
10-10-2007, 05:50 AM
$link['date'] = vbdate($vbulletin->options['dateformat'], $link['dateline'], true);
$link['time'] = vbdate($vbulletin->options['timeformat'], $link['dateline'], true);

neverstop
10-10-2007, 05:54 AM
Thanks a lot, that worked perfectly.

Cheers

Opserty
10-10-2007, 10:48 AM
I always wondered how you do that, thanks too! :)