![]() |
How to put date in header
With vBulletin version 3.04 I used phpinclude_start and defined this variable
$mydate = date("l F jS"); but now I'm told with 3.5 I have to do it in a different way. Can someone please explain how to make this work in my header template <font size="-2">$mydate</font> |
admincp -> plugin system -> add new plugin
put $mydate = date("l F jS"); in global_start hook |
Thanks Dream, that worked perfect. :)
|
FYI: There are two variables created as part of global.php running called $datenow and $timenow, which have the current date/time in your preferred format.
|
Quote:
Close, $datenow uses the MM-DD-YEAR format, I prefer this format "Wednesday July 13th". :) |
All times are GMT. The time now is 06:06 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|