PDA

View Full Version : Display Date & Time on Navigation Bar


aaronhaul
03-29-2014, 11:51 PM
Hello Guys,

I want to display a custom date and time on the left or right side of the Navigation bar with the below PHP code:
<?php
$hourdiff = "8"; // hours diff btwn server and local time
$vbdate = date("l, d F Y - h:i A", time() + ($hourdiff * 3600));
print ("$vbdate");
?>

This is the return format: Saturday, 30 March 2014 - 12:52 AM

Will this be included in the vBulletin template or the php on cPanel, or where exactly? I noticed vB templates do not write in plain php. So am seriously confused on where to include this.:confused:

Can anybody please help?

ozzy47
03-29-2014, 11:53 PM
You already asked that here, https://vborg.vbsupport.ru/showthread.php?t=309871

Please do not double post the same threads, someone may answer your other thread if the know the answer and have time to do so. :)

aaronhaul
03-29-2014, 11:56 PM
You already asked that here, https://vborg.vbsupport.ru/showthread.php?t=309871

Please do not double post the same threads, someone may answer your other thread if the know the answer and have time to do so. :)

Yes, I know. I was supposed to post on here on the PHP vB4 Programming Discussion, but went to post it on Graphics Forum. Please can you ask that the other thread be deleted as there still no reply on it?

Thanks.