Notifications
Clear all
Topic starter
Is it possible, perhaps in the variables.php, to have the date format in the recent block be different format in of the rest of the site? I've looked and it seems like it's probably not, but I wanted to make sure before I ruled it out entirely.
Posted : 27/01/2007 12:01 am
No but you could hack it easily enough probably. Not tested, off the top of my head, etc.
After:
include(_BASEDIR."includes/storyblock.php");
in blocks/recent/recent.php
Add:
$tpl->assign("recent_update" , date("m/d/Y", $stories['updated']) );
The options for the date format are here:
http://us2.php.net/manual/en/function.date.php
Posted : 27/01/2007 12:06 am
Topic starter
Worked perfectly! I thought it would require something like that, but was trying to avoid messing in the php to save myself the trouble of possibly redoing it later...
Thanks!
Posted : 27/01/2007 12:28 am
I'm going to move this to the MOD forum so it's available for others.
Posted : 27/01/2007 12:45 am
