![]() |
World Time Zones
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! |
哦,很不错!!!
oh, it is very nice!!! will install it!!! |
Don't forget the install button in case there are any updates. ;)
|
So you must make a different file for each member living in another timezone? Or am i missing something?
|
Quote:
|
Then why you have to set your timezone in the file?
|
Quote:
|
This has been moved into beta as there is a problem with certain timezones. I will get a fix for it as soon as humanly possible. Sorry for releasing it before it was thoroughly tested.
|
This is a fantastic idea, and I might find it useful in the future. XD For some reason I'm always shaking my fist at people about timezones, and this might help them out! Great hack!
|
New version uploaded. There is no need to change the setting in worldtimes.php now. It should work correctly no matter what setting the timezone setting is set at in the vBulletin Options.
Guests are no longer allowed to view the World Times. That saves from other sites linking to your World Times and using it without installing it. ;) |
Nice job Bob :D I really like it
|
Quote:
|
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).
|
Quote:
|
Getting close yes :D
Maybe both the local time of the poster now, and when he made the post. |
Quote:
|
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, |
Quote:
|
Quote:
EDIT: Quote:
|
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:
PHP Code:
-- There are also functions available in the vbulletin options array for server time. PHP Code:
Finally, you should use UTC, not GMT, because GMT changes forward 1 hour for dst. UTC doesnt :) |
nice,
you may want to add GMT+x index to the left of each timezone too. says GMT + 0 | [Western Europe Time] London, Lisbon, Dublin, Reykjavik, Casablanca it'd be easier to track down time just an idea, how about adding the timezone list into database, and let admin be able to edit the list (add/remove city name ...), |
This is awesome Boofo :)
[high]* Cyricx clicks install! [/high] Definately like the two suggestions above as well :) |
Nice one Bob. :up:
[high]* Mike Gaidin clicks install.[/high] |
This is awesome, do you think you will be making for for RC3??
|
works fine on RC3 mate....
|
It works with the exception that the times are out by 12 hours.
My Local setting is for Eastern Australia and according to the forum clock it is 2:16 pm but on the world times page it is 2:16 am. Any thoughts? |
Quote:
|
Quote:
Though, I don't seem to see a "how to" set the time in the instructions. |
In this line:
PHP Code:
PHP Code:
|
Quote:
|
Is it working all right for you now, then? ;)
|
/me installed
|
Quote:
|
Quote:
I'm about ready to release another one in a few mninutes I'm sure you will be interested in, sir. ;) @theArchitect - Great! Enjoy! |
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 |
Quote:
|
Quote:
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> Code:
<tr><td class="vbmenu_option"><a href="worldtimes.php">World Times</a></td></tr> |
Quote:
|
Quote:
|
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 |
All times are GMT. The time now is 04:45 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|