Log in

View Full Version : Display Custom Date & Time on vB4 Navigation Bar


aaronhaul
03-25-2014, 07:13 AM
Hello Friends,

How do I display a custom Datestamp and Timestamp on the Navigation bar that will automatically updates with vBulletin Date/Time stamp php functions?

See below picture for detail position and format:
https://vborg.vbsupport.ru/attachment.php?attachmentid=148600&stc=1&d=1395735474

Any ideas on how to make this work? I couldn't find any mod or anyone who has raised similar topics.

This is a php script that I have tested in my server and it works, but I do not know where to include it on the navigation bar as on the image:
<?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 return message:
Please advise.

Peter Cook
04-12-2014, 10:51 AM
Nice page! How did you get a navigation bar with images? Sorry for the hijack

BBNZowner
04-13-2014, 02:37 AM
It's a custom theme by PixelGoose... one I use.

It's probably in the Navbar template
<ul class="floatcontainer">

or something like that

You might be better off finding an html clock script online though