Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Clock and Date in Navbar Details »
Clock and Date in Navbar
Mod Version: 1.25, by SuperFly (Member) SuperFly is offline
Developer Last Online: Apr 2008 I like it Show Printable Version Email this Page

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

In Navbar template

Find

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

add after

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Please click install if you use this.

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	Untitled-2.png
Views:	5631
Size:	80.1 KB
ID:	49230  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Forum Home Enhancements Clock In Navbar EnIgMa1234 vBulletin 3.6 Add-ons 33 10 Dec 2007 02:50
Forum Home Enhancements Automatic updating clock in navbar. UltimateOreo! vBulletin 3.6 Template Modifications 2 06 Oct 2007 06:23
Mini Mods Kpt - Clock and Date In Navbar kaptanblack vBulletin 3.6 Template Modifications 22 05 Oct 2007 22:54

  #31  
Old 17 Sep 2006, 20:20
Aclikyano Aclikyano is offline
 
Join Date: Apr 2006
Originally Posted by VViper
Great Mod i have installed it, However between the date and the month their is no space can this be fixed?
http://www.vbulletin.org/forum/newre...eply&p=1067939
just use mine.. lol :smoke:
Reply With Quote
  #32  
Old 17 Sep 2006, 23:42
VViper VViper is offline
 
Join Date: Dec 2002
Real name: CTC
Clock

Thanks Aclikyano that is much better.
Reply With Quote
  #33  
Old 19 Sep 2006, 06:38
rezapci's Avatar
rezapci rezapci is offline
 
Join Date: May 2004
installed, Thank you
Reply With Quote
  #34  
Old 21 Sep 2006, 13:23
Kadi Kadi is offline
 
Join Date: Sep 2006
Hi,

I'd like to install this on my forum but in the opposite direction. My forum is in Arabic...right to left. What would the code for that be?

Thanks
Reply With Quote
  #35  
Old 25 Sep 2006, 10:38
dagummit dagummit is offline
 
Join Date: Aug 2006
Does anyone know how to remove the brackets "[ ]" from around the day and time? (see pic)...

1.jpg

Thanks!
Reply With Quote
  #36  
Old 25 Sep 2006, 17:27
hotwheels hotwheels is offline
 
Join Date: May 2005
Real name: Doug
dagummit

use this:

<!-- 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 -->

Last edited by hotwheels; 25 Sep 2006 at 17:50.
Reply With Quote
  #37  
Old 25 Sep 2006, 17:40
hotwheels hotwheels is offline
 
Join Date: May 2005
Real name: Doug
Add font color

and, if you would like to change the color of your font's to stand out more then the other color's in your welcome box, use this code and just change the #0000FF to what ever color you would like.

<!-- clock hack -->
<font color="#0000FF">
<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></font>
<!-- / clock hack -->
Attached Images
File Type: jpg coloredclock.jpg (260.7 KB, 106 views)

Last edited by hotwheels; 25 Sep 2006 at 17:55.
Reply With Quote
  #38  
Old 25 Sep 2006, 19:19
dagummit dagummit is offline
 
Join Date: Aug 2006
Thanks for the revision!

Also, any idea why some user's clocks (in different timezones I suppose) are not correct? Like they may be 2 hours off? Is this code designed to look at the system time? Or the vB time?
Reply With Quote
  #39  
Old 25 Sep 2006, 19:26
hotwheels hotwheels is offline
 
Join Date: May 2005
Real name: Doug
It should come right off of the vbulletin time..........I know mine is correct to my computer and vbulletin.
Reply With Quote
  #40  
Old 25 Sep 2006, 19:59
SuperFly SuperFly is offline
 
Join Date: Feb 2005
Real name: Walker
Its off the users computer.
Reply With Quote
  #41  
Old 10 Oct 2006, 03:13
mark@sb.ws mark@sb.ws is offline
 
Join Date: May 2002
At 12:01 PM the clock always shows 12:01 AM. Once it reaches 1:00 PM it goes back to the correct time.

Take a look. Maybe a bug in the code. At 12:01 PM it should read 12:01 PM not AM.
Reply With Quote
  #42  
Old 10 Oct 2006, 03:23
COBRAws's Avatar
COBRAws COBRAws is offline
 
Join Date: Oct 2002
Real name: Jack
Can be this hack converted into a plugin?

Thanks
__________________
cobraws
Reply With Quote
  #43  
Old 12 Oct 2006, 01:55
hotwheels hotwheels is offline
 
Join Date: May 2005
Real name: Doug
Not really needed COBRAws.........It's just a template mod, instead of a .php or query's..
Reply With Quote
  #44  
Old 12 Oct 2006, 11:36
LordDB LordDB is offline
 
Join Date: Aug 2006
Location: CoffeeFads.Co.Uk
Thumbs up

Originally Posted by Aclikyano
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I rewrote this clock code from another coder...........
This is the more neater version

TRY IT FOR YA SELF.
Cheers, Aclikyano, for sharing this great revised code...this is what it looks like:

Thursday | October 12, 2006 | 6:33:51 P.M.

Thanks also to, Superfly, for sharing, too!

Br.
Reply With Quote
  #45  
Old 21 Oct 2006, 23:20
G_Man's Avatar
G_Man G_Man is offline
 
Join Date: Feb 2006
Real name: Wade
Took Hotwheels code and tweaked it to fit my site a bit better...

Thanks for the great idea and thanks to hotwheels for his input.

*clicks install*
__________________
www.afterseppuku.com
Feel free to check it out and tell me what I can do better.
Make Money.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 10:50.

Layout Options | Width: Wide Color: