PDA

View Full Version : Add Today's Date


Parker Clack
12-04-2001, 10:00 PM
This really isn't a hack but something else to add to your main forum page.

In index.php right before

eval("dooutput(\"".gettemplate('forumhome')."\");");

put

$today = vbdate("F jS,Y",time());

(change the dateformat to however you have yours set up, ie:
m-d-y or as I have it above.

Then in the forumhome template

put

<smallfont>Today is: <b>$today</b></smallfont>

wherever in the forumhome template you would like to put this.

Parker

212rikanmofo
12-06-2001, 04:22 PM
tried that, didn't show up at all. im using vbulletin 2.2.0 by the way, hrmm... the variable doesnt show up at all in the template.

Parker Clack
12-07-2001, 01:37 PM
Did you put the line

<smallfont>Today is: <b>$today</b></smallfont>

into your forumhome template?

Parker

snakes1100
12-30-2001, 06:52 PM
Thanx Parker Clack, nice little addition for the members, very easy mod and can generally go any place you'd like it.

esquared
03-26-2003, 09:21 PM
Thanks. This helped me figure out how to do something. :)