PDA

View Full Version : Modfying vBulleting Datestamp Options


Space Monkey
11-28-2009, 03:47 AM
Hey guys,

I'm aware of the 'Normal/Detailed/Yesterday-Today' datestamp option in the adminCP.
However, I wish to make it so that it's like this:
- Posts made yesterday/today will be displayed as: xx minutes ago, 1 day ago, 3 hours ago etc. (ie. Use detailed for posts made yesterday or today)
- However, posts made before then will be displayed as Normal (16-11-2009, 03:08 PM etc)

Any ideas on this?

Thanks in advance.
SM

Space Monkey
12-01-2009, 10:11 AM
Bump :3

kh99
12-01-2009, 01:00 PM
It looks like that option is $vbulletin->options['yestoday'], and it's used in vbdate in functions.php. So you could probably change that code so that if the date is not yesterday or today, use '0' (normal). I guess you could add a 4th option to the ACP for that, but there is one place in global.php and one place in includes/functions_online.php where it checks for $vbulletin->options['yestoday'] == 2.