Back to vBulletin 3.6 Template Modifications

Clock and Date in Navbar
Mod Version: 1.25, by SuperFly

This modification is in the archives.
vB Version: 3.6.0 Rating: (15 votes - 4.60 average) Installs: 216
Released: 11 Jun 2006 Last Update: Never Downloads: 37
Not Supported  

In Navbar template

Find
Code:
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
add after
Code:
<!-- clock hack-->
<div id="clock">Loading...</div>
<script type="text/javascript">
function refrClock()
{
var d=new Date();
var s=d.getSeconds();
var m=d.getMinutes();
var h=d.getHours();
var day=d.getDay();
var date=d.getDate();
var month=d.getMonth();
var year=d.getFullYear();
var days=new Array("Sun","Mon","Tue","Wed","Thurs","Fri","Sat");
var months=new Array("1","2","3","4","5","6","7","8","9","10","11","12");
var am_pm;
if (s<10) {s="0" + s}
if (m<10) {m="0" + m}
if (h>12) {h-=12;am_pm = "pm"}
else {am_pm="am"}
if (h<10) {h="0" + h}
document.getElementById("clock").innerHTML=months[month] + "-" + date + "-" + year + " [" + days[day] + "] [" + h + ":" + m + ":" + s + "] " + am_pm;
setTimeout("refrClock()",1000);
}
refrClock();
</script>
<!-- / clock hack -->
Please click install if you use this.

Download

No files for download.

Supporters / CoAuthors

  • SuperFly

Screenshots

Click image for larger version
Name:	Untitled-2.png
Views:	5645
Size:	80.1 KB
ID:	49230  

Similar Mods

Forum Home Enhancements Clock In Navbar vBulletin 3.6 Add-ons
Forum Home Enhancements Automatic updating clock in navbar. vBulletin 3.6 Template Modifications
Mini Mods Kpt - Clock and Date In Navbar vBulletin 3.6 Template Modifications

vblts.ru supports vBulletin®, 2022-2024