Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Zetaboards Modifications
  • [SC] Pimp My Clock
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
  • Pages:
  • 1
  • 2
  • …
  • 6
[SC] Pimp My Clock; Make clock live and set to user's time
Tweet Topic Started: Jul 19 2008, 04:25 PM (3,304 Views)
Zoopey Jul 19 2008, 04:25 PM Post #1
Member Avatar
Can anyone else hear the music?

Posts:
268
Group:
Admins
Member
#1
Joined:
Jun 8, 2008
Coding language
Everything
Name: Clock Upgrade
Description: This handy little code replaces the board clock with a live updating one with a seconds field. It also adds a "th", "nd", or "st" after the date, adding that personal touch other boards will not have. It is linked to the viewer's computer so it'll almost always be correct.
Preview: Check the bottom of this forum. :shifty:
Code:
Code:
 

<script type="text/javascript" src="http://aquate.us/u/clock7.js"></script>

Put it at the bottom of your theme layout, or in the last box of your board template.
Credit goes to Leda for the wonderful code idea. Enjoy!
Choco :choco:
♬ Come sail away, come sail away, come sail away with me! ♬-Styx[ustyle][prefix=][suffix=][/ustyle]
Offline Profile Goto Top
 
Leda Jul 19 2008, 04:40 PM Post #2


Posts:
4
Group:
Member
Member
#16
Joined:
Jul 12, 2008
Looks awesome Choco! :wub:
Offline Profile Goto Top
 
Zoopey Jul 19 2008, 04:59 PM Post #3
Member Avatar
Can anyone else hear the music?

Posts:
268
Group:
Admins
Member
#1
Joined:
Jun 8, 2008
Coding language
Everything
Thanks Leda! :wub:
♬ Come sail away, come sail away, come sail away with me! ♬-Styx[ustyle][prefix=][suffix=][/ustyle]
Offline Profile Goto Top
 
Jesus Jul 19 2008, 05:31 PM Post #4
Member Avatar
The Holy Savior

Posts:
180
Group:
Member
Member
#85
Joined:
Jul 18, 2008
Coding language
Ruby on Rails
OOO This is nice :D This is going on my forums right now. :P

Edit: Uh oh :P Choco I can't seem to get it working on my forums O-o I tried putting it at the end of my theme layout then the very last box of my board templates which would be menu:. Am I doing something wrong here or putting it in the wrong place, or possible have to put it in both places?

I am using the exact code at the top as well :P

Code:
 
<script type="text/javascript" src="http://aquate.us/u/newcloc.js"></script>
Edited by Jesus, Jul 19 2008, 05:38 PM.
Posted Image
Offline Profile Goto Top
 
ZeroVelocity Jul 21 2008, 07:28 AM Post #5
Member Avatar
Mrs. Tentacles likes chocolate

Posts:
47
Group:
Member
Member
#154
Joined:
Jul 20, 2008
Coding language
HTML/CSS
Jesus
Jul 19 2008, 05:31 PM
OOO This is nice :D This is going on my forums right now. :P

Edit: Uh oh :P Choco I can't seem to get it working on my forums O-o I tried putting it at the end of my theme layout then the very last box of my board templates which would be menu:. Am I doing something wrong here or putting it in the wrong place, or possible have to put it in both places?
Same here.
NO SIGS 4 U!
Offline Profile Goto Top
 
Zoopey Jul 21 2008, 08:48 AM Post #6
Member Avatar
Can anyone else hear the music?

Posts:
268
Group:
Admins
Member
#1
Joined:
Jun 8, 2008
Coding language
Everything
Update the code with the new one I've posted in the first post and check. :D
♬ Come sail away, come sail away, come sail away with me! ♬-Styx[ustyle][prefix=][suffix=][/ustyle]
Offline Profile Goto Top
 
Jesus Jul 21 2008, 08:57 AM Post #7
Member Avatar
The Holy Savior

Posts:
180
Group:
Member
Member
#85
Joined:
Jul 18, 2008
Coding language
Ruby on Rails
Ok works nicely now. :D Thank you for the code. :)
Posted Image
Offline Profile Goto Top
 
davadude Jul 21 2008, 09:08 AM Post #8
Member Avatar


Posts:
45
Group:
Member
Member
#169
Joined:
Jul 21, 2008
Coding language
HTML/CSS
This works like a charm! Great code Choco.

Question: Is it possible to get the image back?
Posted Image
Posted Image
Offline Profile Goto Top
 
Zoopey Jul 21 2008, 10:51 AM Post #9
Member Avatar
Can anyone else hear the music?

Posts:
268
Group:
Admins
Member
#1
Joined:
Jun 8, 2008
Coding language
Everything
Davadude: You can add it in using CSS. Add this to the bottom of your stylesheet and replace the bold with the URL of the clock image:
#foot_datetime {
padding-left: 25px;
width: 1%;
background: url(http://) no-repeat left center;
}
♬ Come sail away, come sail away, come sail away with me! ♬-Styx[ustyle][prefix=][suffix=][/ustyle]
Offline Profile Goto Top
 
Jesus Jul 21 2008, 01:55 PM Post #10
Member Avatar
The Holy Savior

Posts:
180
Group:
Member
Member
#85
Joined:
Jul 18, 2008
Coding language
Ruby on Rails
Um, It seems to have stop working yet again :( What went wrong D:
Posted Image
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
ZetaBoards - Free Forum Hosting
Free Forums. Reliable service with over 8 years of experience.
Learn More · Register for Free
Go to Next Page
« Previous Topic · Zetaboards Modifications · Next Topic »
Locked Topic
  • Pages:
  • 1
  • 2
  • …
  • 6

Track Topic · E-mail Topic Time: 7:50 PM Jul 10
Hosted for free by ZetaBoards · Privacy Policy