vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Mini Mods - World Clock on your forum (https://vborg.vbsupport.ru/showthread.php?t=181060)

sflmkv 06-10-2009 03:39 PM

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


Eq4bits 06-10-2009 07:30 PM

Quote:

Originally Posted by joh (Post 1692447)
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.

Eq4bits 06-10-2009 07:35 PM

Quote:

Originally Posted by segwayon (Post 1664625)
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.

ricardoNJ 08-13-2009 08:01 AM

Testing! :)

goldoff 09-13-2009 08:12 PM

Downloaded, customized installed and workig fine!

Thanks to Cobro and Mookie :up:

imported_silkroad 09-21-2009 06:36 PM

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.

Philippe J 06-10-2010 03:17 PM

Doesn't seem to work with vbulletin 4.03.
Can anybody help ?
Thanks ! ;)


All times are GMT. The time now is 03:39 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01207 seconds
  • Memory Usage 1,757KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete