Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
World Clock on your forum Details »»
World Clock on your forum
Version: 1.00, by Cobro Cobro is offline
Developer Last Online: Nov 2022 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.7.0 Rating:
Released: 05-30-2008 Last Update: Never Installs: 67
Template Edits
Re-useable Code  
No support by the author.

i made this for my board becous a can't trust the server clock so i just use the world clock witch is allways right

So in your AdminCP/Styles & Templates/Style Manager then Expand Templates
and then in click on forum home templates and then FORUMHOME template then

find
PHP Code:
$header 
and below add

PHP Code:
<DIV ALIGN=CENTER>
your code of world clock 
</DIV
code look's like this

<iframe src="http://free.timeanddate.com/clock/i11meuiw/n179" frameborder="0" width="82" height="18"></iframe>

and you are done


Note you can have the code on what ever page you want

this link is better i think

http://www.timeanddate.com/worldclock/


hope you all like it's very simple

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 06-10-2009, 03:39 PM
sflmkv sflmkv is offline
 
Join Date: May 2007
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not the greatest coder but here's my side by side...
HTML Code:
<!-- World Clock -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
	<tr>
		<td class="tcat" colspan="6" align="center"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_world')"><img id="collapseimg_forumhome_world" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_world].gif" alt="" border="0" /></a>World Clock
</td>
<tbody>
<tbody id="collapseobj_forumhome_world" style="$vbcollapse[collapseobj_forumhome_world]">

	<tr align="center">
	  <td class="alt1"><table border="0" cellspacing="0" cellpadding="5"><tr><td align="center"><script type="text/javascript" src="http://www.worldtimeserver.com/clocks/embed.js"></script><script type="text/javascript" language="JavaScript">objUSFL=new Object;objUSFL.wtsclock="wtsclock001.swf";objUSFL.color="000066";objUSFL.wtsid="US-FL";objUSFL.width=100;objUSFL.height=100;objUSFL.wmode="transparent";showClock(objUSFL);</script></td></tr><tr><td align="center"><h2>Miami</h2></td></tr></table>
</td>

	<td class="alt1"><table border="0" cellspacing="0" cellpadding="0"><tr><td align="center"><script type="text/javascript" src="http://www.worldtimeserver.com/clocks/embed.js"></script><script type="text/javascript" language="JavaScript">objUSCO=new Object;objUSCO.wtsclock="wtsclock001.swf";objUSCO.color="000066";objUSCO.wtsid="US-CO";objUSCO.width=100;objUSCO.height=100;objUSCO.wmode="transparent";showClock(objUSCO);</script></td></tr><tr><td align="center"><h2>Denver</h2></td></tr></table>
</td>
	  <td class="alt1"><table border="0" cellspacing="0" cellpadding="0"><tr><td align="center"><script type="text/javascript" src="http://www.worldtimeserver.com/clocks/embed.js"></script><script type="text/javascript" language="JavaScript">objDE=new Object;objDE.wtsclock="wtsclock001.swf";objDE.color="000066";objDE.wtsid="DE";objDE.width=100;objDE.height=100;objDE.wmode="transparent";showClock(objDE);</script></td></tr><tr><td align="center"><h2>Berlin</h2></td></tr></table>
</td>

	<td class="alt1"><table border="0" cellspacing="0" cellpadding="0"><tr><td align="center"><script type="text/javascript" src="http://www.worldtimeserver.com/clocks/embed.js"></script><script type="text/javascript" language="JavaScript">objGB=new Object;objGB.wtsclock="wtsclock001.swf";objGB.color="000066";objGB.wtsid="GB";objGB.width=100;objGB.height=100;objGB.wmode="transparent";showClock(objGB);</script></td></tr><tr><td align="center"><h2>London</h2></td></tr></table>
</td>

<td class="alt1"><table border="0" cellspacing="0" cellpadding="0"><tr><td align="center"><script type="text/javascript" src="http://www.worldtimeserver.com/clocks/embed.js"></script><script type="text/javascript" language="JavaScript">objAUNSW=new Object;objAUNSW.wtsclock="wtsclock001.swf";objAUNSW.color="000066";objAUNSW.wtsid="AU-NSW";objAUNSW.width=100;objAUNSW.height=100;objAUNSW.wmode="transparent";showClock(objAUNSW);</script></td></tr><tr><td align="center"><h2>Sydney</h2></td></tr></table>
</td>

	</tr>
	</tr>
</tbody>
</thead>
</table>
<br />
<!-- end World Clock -->
Reply With Quote
  #63  
Old 06-10-2009, 07:30 PM
Eq4bits Eq4bits is offline
 
Join Date: May 2006
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by joh View Post
compact123, How did you get the clock image?
Guys, do you all have a way to add the weather.
Do you all have away to let my users set his/her own area for the time and weather.
where the heck is code monkey?
For adding weather I use wunderground.com
find the location of the weather you want to display, then scroll down that 'stations' page till you get to the "Free Weather Stickers? for Your Homepage" box, click the link to go to that page. I put mine in the individual subforum description, but you could easily put it *anywhere* on a forum page.
Reply With Quote
  #64  
Old 06-10-2009, 07:35 PM
Eq4bits Eq4bits is offline
 
Join Date: May 2006
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by segwayon View Post
Alas, I had to remove the world clock feature because a few users come in with iPhones, and one said the clock feature was causing the forum load times to increase substantially.
I haven't had anyone report any iPhone issues... I use a Samsung Propel with AT&T when I'm mobile and haven't had any problems, of course it's a bit slower when I'm not in a 3G area. Perhaps you could add a mobile style/theme that can be used by your iPhone users when mobile, just don't have the clocks on that style/theme.
Reply With Quote
  #65  
Old 08-13-2009, 08:01 AM
ricardoNJ ricardoNJ is offline
 
Join Date: Sep 2008
Posts: 295
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Testing!
Reply With Quote
  #66  
Old 09-13-2009, 08:12 PM
goldoff goldoff is offline
 
Join Date: Oct 2005
Location: Barcelona
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Downloaded, customized installed and workig fine!

Thanks to Cobro and Mookie :up:
Reply With Quote
  #67  
Old 09-21-2009, 06:36 PM
imported_silkroad imported_silkroad is offline
 
Join Date: Dec 2003
Posts: 563
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This would be a great mod to use with GeoIP. Then, you can show various different clocks to users based on the country (or continent) or city they are it when viewing your forums.
Reply With Quote
  #68  
Old 06-10-2010, 03:17 PM
Philippe J Philippe J is offline
 
Join Date: Sep 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Doesn't seem to work with vbulletin 4.03.
Can anybody help ?
Thanks !
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 01:15 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04608 seconds
  • Memory Usage 2,301KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_html
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete