Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
World Time Zones Details »»
World Time Zones
Version: 1.0.1, by Boofo Boofo is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.5.8 Rating:
Released: 08-16-2005 Last Update: 08-17-2005 Installs: 78
Uses Plugins Template Edits
Additional Files  
No support by the author.

World Time Zones
(By Boofo)
==========

Description
--------------
This product will add a separate page with a listing of different world time zones.

Details
---------
1 Product XML
1 PHP file
3 Images


Installation
--------------
1. Upload worldtimes.php to your forums directory
2. Upload the 3 image files to your images/misc directory
3. Go to your AdminCP
Scroll down to 'Plugin System'
Click 'Manage Products'
Click 'Add/Import Product'
Click the 'Browse' button, and locate the product-worldtimes.xml file on your computer.

--------------
Done!
Enjoy!

Show Your Support

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

Comments
  #32  
Old 09-26-2005, 05:39 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it working all right for you now, then?
Reply With Quote
  #33  
Old 09-26-2005, 05:59 AM
poolking poolking is offline
 
Join Date: Aug 2002
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me installed
Reply With Quote
  #34  
Old 09-26-2005, 06:08 AM
theArchitect's Avatar
theArchitect theArchitect is offline
 
Join Date: Sep 2004
Location: Sydney
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
Is it working all right for you now, then?
Certainly is :up:
Reply With Quote
  #35  
Old 09-26-2005, 07:30 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by poolking
[high]* poolking installed[/high]
I wondered when you were going to fiund this thread.

I'm about ready to release another one in a few mninutes I'm sure you will be interested in, sir.

@theArchitect - Great! Enjoy!
Reply With Quote
  #36  
Old 09-26-2005, 02:22 PM
jblackburn jblackburn is offline
 
Join Date: Aug 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for the stupid question, but... is this supposed to add a menu item to the vb menu or does one just need to go in and create a link to it? What's the best method to do this? The only way I see this now is by going directly to the URL /worldtimes.php.

Thx in advance,
Jim
Reply With Quote
  #37  
Old 09-26-2005, 02:27 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jblackburn
Sorry for the stupid question, but... is this supposed to add a menu item to the vb menu or does one just need to go in and create a link to it? What's the best method to do this? The only way I see this now is by going directly to the URL /worldtimes.php.

Thx in advance,
Jim
That's exactly what you need to do.
Reply With Quote
  #38  
Old 09-26-2005, 09:53 PM
theArchitect's Avatar
theArchitect theArchitect is offline
 
Join Date: Sep 2004
Location: Sydney
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jblackburn
Sorry for the stupid question, but... is this supposed to add a menu item to the vb menu or does one just need to go in and create a link to it? What's the best method to do this? The only way I see this now is by going directly to the URL /worldtimes.php.

Thx in advance,
Jim
As Boofo said, you will need to add a link yourself.

If you are not sure how to do this you will need to edit your navbar template, which is done via your style manager.

I added my link to the Quick Links menu. If you want to do the same search for

Code:
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>
in the navbar template and then add after

Code:
<tr><td class="vbmenu_option"><a href="worldtimes.php">World Times</a></td></tr>
You could also choose to make world time a phrase but that would add another stage to the process.
Reply With Quote
  #39  
Old 09-26-2005, 10:24 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by theArchitect
As Boofo said, you will need to add a link yourself.

If you are not sure how to do this you will need to edit your navbar template, which is done via your style manager.

I added my link to the Quick Links menu. If you want to do the same search for

Code:
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>
in the navbar template and then add after

Code:
<tr><td class="vbmenu_option"><a href="worldtimes.php">World Times</a></td></tr>
You could also choose to make world time a phrase but that would add another stage to the process.
I will link this in the first post when I get back.
Reply With Quote
  #40  
Old 09-26-2005, 10:28 PM
theArchitect's Avatar
theArchitect theArchitect is offline
 
Join Date: Sep 2004
Location: Sydney
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
I will link this in the first post when I get back.
Thanks. Glad to be of service.
Reply With Quote
  #41  
Old 09-27-2005, 01:17 PM
jblackburn jblackburn is offline
 
Join Date: Aug 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks all for the menu tips.

As for time, so things don't make sense, allthough I've edited the worldtimes.php file to get it to work:

San Diego is currently at UTC/GMT -7 hours; I had to set the $servertime to timediff+9 to get it to display proper PDT. By the instructions, it would have seemed that you'd take the line +2, add your time zone offset (-7) and get the setting -5.

Several of the world city times were also off; I'm assuming this might be because of the UTC/GMT/daylight saving time differences? Here's what I came up with (I've removed some I didn't want). Notice how for PDT below it had to be set to -8 where above it had to be set to +9.

$timezones['-11'] = "[Hawaii] Honolulu, Chatham Island, Papeete, Tahiti, Cook Islands";
$timezones['-8'] = "[PDT (Pacific Daylight Time)] Los Angeles, San Diego, Seattle, San Fransisco";
$timezones['-7'] = "[MDT (Mountain Daylight Time)] Denver, Phoenix, Salt Lake City";
$timezones['-6'] = "[CDT (Central Daylight Time)] Des Moines, Chicago, St. Paul, New Orleans, Houston";
$timezones['-5'] = "[EDT (Eastern Daylight Time)] Detroit, New York, Miami, Boston, Atlanta";
$timezones['0'] = "[WET (Western Europe Time)] London, Lisbon, Dublin";
$timezones['1'] = "[CET (Central Europe Time)] Brussels, Rome, Paris, Amsterdam, Zürich, Madrid, Berlin, Stockholm";
$timezones['2'] = "[EET (Eastern Europe Time)] Athens, Johannesburg, Cape Town, South Africa, Cairo, Jerusalem";
$timezones['2'] = "Riyadh, Baghdad, Khartoum, Kuwait City";
$timezones['3'] = "Dubai, Abu Dhabi, Tbilisi, Muscat, Baku";
$timezones['4.5'] = "Bombay, Calcutta, Madras, New Delhi";
$timezones['7'] = "Perth, Singapore, Beijing, Manila, Hong Kong, Taipei, Kuala Lumpur";
$timezones['9'] = "Tokyo, Seoul, Osaka, Saporro, Yakutsk";
$timezones['9'] = "[EAST (East Australian Standard)] Brisbane, Guam";
$timezones['9'] = "Sydney, Melbourne, Canberra, Magadan";
$timezones['11'] = "Auckland, Wellington, Fiji, Kamchatka";

Jim
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 10:30 AM.


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.05540 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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