PDA

View Full Version : Displaying Date


mike.fro
05-10-2008, 07:50 PM
Hey Guys,
Quick question. How do I display the date in vBulletin. I'm customizing a template and want to know what the code is to display the date in vBulletin.

Any help would be greatly appreciated.

Medina
05-10-2008, 08:10 PM
I need this also, but I am stucking with a litte code.



Create a new plugin with the hook of global_complete.

Code should be something like this.

$headertimenow = vbdate('date format', TIMENOW);


Then in your template you put $headertimenow in where you need.




I don`t know what I have to put in "date format".

MoT3rror
05-10-2008, 08:56 PM
<a href="http://www.php.net/date" target="_blank">Here is the info for the data format.</a>

Medina
05-11-2008, 04:39 PM
I have add this.


"$headertimenow = vbdate('H:i:s', TIMENOW);"


But it doesn`t work.