View Full Version : How can I set the time
Medina
05-02-2008, 05:24 PM
above my header.
But not the time of my computer or a members computer. But the time of the forum self. Just like the time under in the footer.
"All times are GMT +2. The time now is 20:19."
How can I add this for twice, but without the text.
just like this.
20:19:04 02-05-2008
pleasse?!
MoT3rror
05-02-2008, 08:31 PM
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.
Medina
05-03-2008, 01:57 PM
It doesn`t work, maybe the plugin is not working.
Dismounted
05-03-2008, 02:02 PM
Yes. Make sure you replace "date format" with the appropriate PHP date format style - as detailed in the manual.
Medina
05-03-2008, 02:16 PM
I have edit it like this:
$headertimenow = vbdate('H:i:s', TIMENOW);
But it doesn`t work.
Medina
05-10-2008, 03:58 PM
????
Dismounted
05-11-2008, 05:29 AM
What appears?
Medina
05-11-2008, 04:36 PM
Nothing, nothing at all. :S
Lynne
05-11-2008, 04:39 PM
What plugin are you using? Exactly what do you have entered? And what template are you modifying and exactly what have you put in there?
Medina
05-11-2008, 04:44 PM
Product : vBulletin,
Hook location: global_complete,
Execution Order: 5
Plugin PHP code: $headertimenow = vbdate('("d-m-Y");', TIMENOW);
I have edit my navbar template, and add this "$headertimenow"
Indy16
05-11-2008, 10:30 PM
Product : vBulletin,
Hook location: global_complete,
Execution Order: 5
Plugin PHP code: $headertimenow = vbdate('("d-m-Y");', TIMENOW);
I have edit my navbar template, and add this "$headertimenow"
Change the 'Hook location' to 'global_start'.
Also change the PHP code to:
$headertimenow = vbdate('d-m-Y', TIMENOW);
Medina
05-12-2008, 02:25 PM
Now it`s showing on the place where I add "$headertimenow" there is showing now "d-m-Y"
Dismounted
05-13-2008, 07:19 AM
$headertimenow = vbdate("d-m-Y", TIMENOW);
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.