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
  #12  
Old 08-18-2005, 06:46 PM
Dan's Avatar
Dan Dan is offline
 
Join Date: Dec 2002
Location: Titusville, Florida
Posts: 1,787
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice job Bob I really like it
Reply With Quote
  #13  
Old 08-18-2005, 07:17 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 Dan
Nice job Bob I really like it
Thank you, sir.
Reply With Quote
  #14  
Old 08-18-2005, 08:05 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bob i got another idea for you. Guess it should be fairly simple to make and i have been walking around with the idea a long time, but just never cam to making it. What about the posters local time in the postbit (the time he made the post, next to the time the post was made).
Reply With Quote
  #15  
Old 08-18-2005, 08:08 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 MarcoH64
Bob i got another idea for you. Guess it should be fairly simple to make and i have been walking around with the idea a long time, but just never cam to making it. What about the posters local time in the postbit (the time he made the post, next to the time the post was made).
You lost me. The time he made the post would be the same as the time the post was made. Do you mean their local time where they are at? I did that for vb3. It showed their local time at the time the user was veiwing the post. Am I close here to what you are thinking?
Reply With Quote
  #16  
Old 08-18-2005, 08:17 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Getting close yes

Maybe both the local time of the poster now, and when he made the post.
Reply With Quote
  #17  
Old 08-18-2005, 08:21 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 MarcoH64
Getting close yes

Maybe both the local time of the poster now, and when he made the post.
Ok, I'll see what I can do.
Reply With Quote
  #18  
Old 08-19-2005, 02:50 AM
IceBurn3000 IceBurn3000 is offline
 
Join Date: Jan 2005
Location: Brisbane, QLD, Australia
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My forum is set for GMT+10 (Australian Eastern Standard Time). All is good, except for the fact that all times are 12 hours ahead of the current time.

Any suggestions on how to fix this?

EDIT: Also, I don't this plugin can tell whether Daylight Savings Time (DST) is active in a particular timezone or not. Currently, it is winter in Australia, and DST isnt 'active' in southern states, however, the times for Sydney, Melbourne & Canberra are all 1 hour ahead of Brisbane (AEST) time.

Thanks,
Reply With Quote
  #19  
Old 08-19-2005, 05:19 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 IceBurn3000
My forum is set for GMT+10 (Australian Eastern Standard Time). All is good, except for the fact that all times are 12 hours ahead of the current time.

Any suggestions on how to fix this?

EDIT: Also, I don't this plugin can tell whether Daylight Savings Time (DST) is active in a particular timezone or not. Currently, it is winter in Australia, and DST isnt 'active' in southern states, however, the times for Sydney, Melbourne & Canberra are all 1 hour ahead of Brisbane (AEST) time.

Thanks,
Do you have a test account set up where I can look at the World Times?
Reply With Quote
  #20  
Old 08-19-2005, 09:16 AM
IceBurn3000 IceBurn3000 is offline
 
Join Date: Jan 2005
Location: Brisbane, QLD, Australia
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
Do you have a test account set up where I can look at the World Times?
I will PM you details.

EDIT:
Quote:
Originally Posted by Boofo in PM
Ok, I see the problem. Your server is not set on GMT time, right? The line in the worldtimes.php is for servers set on GMT time. We need to adjust that line according to what time your server is actually on.

This line:

$servertime = ($timeoffset - ($timediff+2)); //Server is on GMT time

is GMT time. We need to change the 2 to match whatever your server time is set to, not the vb setting, but the actual server time. Does that make any sense?

Try -10 instead of +2 and let me know what you get.
Work like a charm! Thanks for your help Bob!
Reply With Quote
  #21  
Old 08-21-2005, 06:13 AM
merk merk is offline
 
Join Date: Nov 2001
Location: Canberra, Australia
Posts: 601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just a few suggestions:

Your timezone arrangements for 10 and 11 are wrong. Sydney, Melbourne and Canberra are +10, not +11. They go to +11 for DST, but that should not affect their normal +10 offset.

I believe that they should always remain in the +10, but also highlight them to indicate they are in DST.

--

There should be a PHP method to determin if a certain timezone is in DST. I would use that instead of using a user's DST determination.

--

There is a better (less templates) way to show the local users timezone.

PHP Code:
if ($timediff == $vbulletin->userinfo['timezoneoffset'])
{
//blah
}
else
{
//blah

Can Become:

PHP Code:
 
$show
['localtimezone'] = false;
if (
$timediff == $vbulletin->userinfo['timezoneoffset'])
{
$show['localtimezone'] = true;

And using conditionals in the single template instead.

--

There are also functions available in the vbulletin options array for server time.

PHP Code:
$vbulletin->options['timeoffset'is server offset 
--

Finally, you should use UTC, not GMT, because GMT changes forward 1 hour for dst. UTC doesnt
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 09:24 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.04344 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
  • (3)bbcode_php
  • (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
  • (3)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