![]() |
Show times on Time Zone selection
This is a pretty simple requested by yuma and JohnWarwick right here:
https://vborg.vbsupport.ru/showthrea...threadid=26385 I already coded it like 3 months ago, but never got around to release it. That thread reminded me so here it is. :) Basically, instead of showing the places, it shows you what the time is in that particular timezone. Check out posts #3 and #4 if you are confused. Here's the vbHacker version of the hack, text version will follow, and screen shots in the 3rd and 4th posts. Have fun. :) |
Text file.
|
Before:
|
After:
|
Hey, that is very nice! I like this more then the default one :) I hope I have some time to install it soon. Thank you for (eventually) releasing this.
|
/me clicks install button :bunny:
|
thanx nice hack its very useful
|
thanks, this is quite helpful
|
/me is lovin' it
|
/me like... Boofo like
|
I'm used vb 2.2.5. And don't found
Code:
eval("\$avatarbit = \"".gettemplate("register_avatar")."\";"); Code:
eval("\$avatarbits .= \"".gettemplate("register_avatarbit")."\";"); |
Installed and working perfectly :)
|
tried to install this hack but when it comes to the bit in register.php at to replace this:
eval("\$avatarbit = \"".gettemplate("register_avatar")."\";"); } } else { $avatarbit = ''; } with this: eval("\$avatarbit = \"".gettemplate("register_avatar")."\";"); } } else { $avatarbit = ''; } // ******************************************** \\ // *** Show times in timezone selection box *** \\ $times = array(); for ($i = -12; $i <= 12; $i += 0.5) { $time = $i * 10; if ($time < 0) { $time = 'n' . substr($time, 1); } $times["$time"] = date($timeformat, time() + ($i - $timeoffset) * 3600); // 137 edit } // *** Show times in timezone selection box *** \\ // ******************************************** \\ I get a parse error? and I have also noticed that in my original register.php file I dont have these lines: } else { $avatarbit = ''; } Any ideas? |
I actually like to see the zone names, so here is what I did:
my modifyoptions: Code:
<tr> Code:
<tr> |
Isn't that the same code for all 3 templates? :)
|
Slightly off-topic, but does anyone know how to include those timezones that have daylight savings?
For example, I'm in Adelaide, Australia and there's the regular +9:30 timezone, but how can we set it to recognize our +10:30 timezone when we're in daylight saving? And any way to have the system automatically update the various timezones when daylight savings comes into effect and when it ends? |
The server your site is on should handle that, shouldn't it? At least, I think it would. :)
|
I'm using the World Times hack:
http://x-mencomics.com/xfan/forums/worldtimes.php?s= And I've got $timezones[10.5] = "Adelaide DST"; added to the php file but it doesn't come up right. |
I'm having a problem with this one. When a user changes their time zone in ther CP, the select box does not "remember" the change.
The box shows -12:00 hours GMT by default. If I change it to -5:00GMT and go back to look at my options, it is back to showing -12:00 GMT. Is there a quick fix for this? |
umm this doesnt work i cant find the second code edit in members.php can someone please help
|
*installs, works great
|
All times are GMT. The time now is 12:18 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:
|