vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   World Timezones on indexpage (https://vborg.vbsupport.ru/showthread.php?t=12210)

Bald Bouncer 08-26-2001 09:18 PM

I was informed that the times for Tokyo, Seoul, Osaka are out by a hour, I not sure if this is right but I have adjusted and added Melbourne and Sydney time that are correct at the moment.
Just change this in the timezone.php

Quote:

$timezones[-12] = "Eniwetok, Kwajalein";
$timezones[-11] = "Midway Island, Samoa";
$timezones[-10] = "Hawaii";
$timezones[-9] = "Alaska";
$timezones[-8] = "Pacific Time (US & Canada)";
$timezones[-7] = "Mountain Time (US & Canada)";
$timezones[-6] = "Central Time (US & Canada), Mexico City";
$timezones[-5] = "Eastern Time (US & Canada)";
$timezones[-4] = "Atlantic Time (Canada)";
$timezones[-3] = "Brazil, Buenos Aires, Georgetown";
$timezones[-2] = "Mid-Atlantic";
$timezones[-1] = "Azores, Cape Verde Islands";
$timezones[0] = "UK GMT";
$timezones[1] = "Amsterdam, Netherlands";
$timezones[2] = "Kaliningrad, South Africa";
$timezones[3] = "Baghdad, Kuwait";
$timezones[4] = "Tehran";
$timezones[5] = "Ekaterinburg, Islamabad";
$timezones[6] = "Almaty, Dhaka";
$timezones[7] = "Bangkok, Hanoi";
$timezones[8] = "Tokyo, Seoul, Osaka";
$timezones[9] = "Melbourne, Sydney";
$timezones[10] = "Guam, Papua New Guinea";
$timezones[11] = "Magadan, Solomon Islands";
$timezones[12] = "Auckland, Wellington, Fiji";
If I?m wrong please tell me because it wouldn?t be the first time and I?m sure it won?t be the last :)
BB

eva2000 08-26-2001 09:22 PM

mines out by an hour since Brisbane doesn't have daylight savings anymore :)

web 09-03-2001 07:29 AM

Just installed this one. My second hack installation :D
Installation was a breeze and it works as 'advertised.'

Thanks much.

web

DixonsNL 10-22-2001 04:01 PM

this is a really cool hack man, thnx !!

cyrus 10-23-2001 08:06 AM

could this some how be integrated onto vbportal ?

Tim Wheatley 12-25-2001 09:02 AM

Works great, thanks.

Spino 12-29-2001 11:47 AM

Work on 2.2.1 version?
Thx

Duke Of Lion 12-30-2001 09:33 PM

Nice hack! Just installed it on vBulletin 2.2.1!

Click here to see it in action

The first step in index.php just is not quite the same as previous versions but if you just add: timezonelist,timezone_city,timezone_city_col';

to that line and follow the other steps, it works fine...

Thanxxx

Bedhead 12-31-2001 04:04 AM

Great job!

Lucky 01-22-2002 07:11 AM

Quote:

Originally posted by FireFly
I installed it, works great. Good job! :)

But how can I modify this to have it pop up when I click on something?
Kinda like the 'Who Posted?' stuff.

This is a great idea!

Snake~eyes 01-24-2002 08:08 PM

Popping up in a new window would be cool!

Anyone have a clue?

Lucky 01-25-2002 07:54 PM

That would be awesome!

Snake~eyes 01-25-2002 09:47 PM

yeah.. anyone know how to do it thouhg?

slideboxer 01-30-2002 05:05 AM

Is there a pop-up window coming? Please... :D

freehtml 01-31-2002 04:34 AM

Well it works for me

centris 02-08-2002 05:49 PM

This works with 2.2.2 no problem, I changed two of the templates to get the effect below. I also sorted the error with the .gif image but you will need to check your own path and choice of image.

Changes to index.php 2.2.2 make the top of the script like this;

<?php
error_reporting(7);

$templatesused='forumhome_birthdaybit,error_noperm ission,forumhome_pmloggedin,fo rumhome_welcometext,forumhome_logoutcode,forumhome _newposts,forumhome_todayposts ,forumhome_logincode,forumhome_loggedinuser,forumh ome_loggedinusers,forumhome_la stpostby,forumhome_moderator,forumhome_forumbit_le vel1_nopost,forumhome_forumbit _level1_post,forumhome_forumbit_level2_nopost,foru mhome_forumbit_level2_post,for umhome,forumhome_unregmessage,timezonelist,timezon e_city,timezone_city_col';
$loadbirthdays=1;
$loadmaxusers=1;

Change Timezone.php to this;

<?php

$dateformat = "l h:i A";
$percol = 5;

Templates;

timezone_city
<smallfont><b>$cities</b> <font color={timecolor}>$datetime</smallfont><br>

timezonelist
<tr bgcolor="{categorybackcolor}">
<td colspan="6"><normalfont color="{categoryfontcolor}"><b>Current World Time:</b></smallfont></td>
</tr>
<tr>
<td bgcolor="{secondaltcolor}" align="center" valign="top"><img src="images/time.gif" alt="">
<td bgcolor="{firstaltcolor}" colspan="5" valign="top">
<table>
<tr>
$cityzones
</tr>
</table>
</td>
</tr>

X-Fan 02-17-2002 07:43 AM

Works great on my v2.2.2 forums, thanks Mas!

Castel 02-17-2002 08:04 AM

Quote:

Originally posted by dhogan444
yeah.. anyone know how to do it thouhg?
Not quite a pop-up, but some time back I modified this as a stand-alone page with a link on the main page.

World Times Page

If you were actually logged in the colored globe indicates your time zone and I also added this page to Who's Online tracking. If that will do instead of the requested pop-up I can document it properly.

X-Fan 02-17-2002 08:47 AM

Quote:

Originally posted by Castel
If you were actually logged in the colored globe indicates your time zone and I also added this page to Who's Online tracking. If that will do instead of the requested pop-up I can document it properly.
Wow, that's very cool, Castel!

Would it be too much trouble to document how to do that hack, please?

Snake~eyes 02-17-2002 08:21 PM

Yes! that'll work :D
i like that.

Could you explain how?

Diva 02-18-2002 12:43 AM

Castel, I'd love to have this too! When will you be able to show us the script? Great site, by the way!

Castel 02-18-2002 10:40 PM

Released under new topic https://vborg.vbsupport.ru/showthrea...threadid=35209

mashby 05-06-2002 04:26 AM

Great hack! Installed nice and easy.

There's only one thing I can't figure out is a small format thing. The hack works perfectly, but I'd like to figure out a way to alternate colors between country/timezone. In other words, "Eniwetok, Kwajalein = color 1" and "Midway Island, Samoa = color 2."

Anyone figure out a way to do this?

grace819 10-25-2002 07:02 AM

I've tried installing this hack and the world time in all countries are about 2-3 hours off! Is there any reason to this and how can I fix it?

Thank you and looking forward to some answers.

vortech 12-21-2002 08:03 PM

I installed this Hack and it seems to only show one city. :(

London, UK Saturday 21:57
Sunday 09:57

http://matrixwebhosting.net/forum/index.php

Its there at the bottom for some reason its not showing them all. Kind of off.. I went back over the read me to make sure I did not miss any thing..

eva2000 01-12-2004 01:41 AM

Quote:

Originally Posted by Mas*Mind
This hack puts a list of the worldtimezones on your index page, instructions and needed files are in the attached zipfile..

Currently there's no demo so if someone has installed it, plz add a link to it...

I've not tested it thoroughly but it seems to be working well..

enjoy :)

would be nice to see in vB 3 too :)

grandma 03-30-2004 10:48 PM

One of my users like this option, so I tinkered with it a bit. And have it working with VB3 Gold. There was a couple of things I haven't had time to play with, but it's still very functional.

Good Luck
Grandma

Diva 03-31-2004 06:10 PM

Hi grandma. First off I want to thank you for taking the time to do this. Thank you!!!

When I tried it I got an error. Most likely something I did wrong, but I am hoping you could guide me in the right direction. :)

Code:

Fatal error: Call to undefined function: gettemplate() in /home/divaorg/public_html/forum/worldtimes.php on line 49

grandma 03-31-2004 07:29 PM

Did you use the worldtime.txt.php I posted? Just rename it to worldtime.php and use it.

VB3 doesn't support the gettemplate function in your error. That was the original worldtimes file.

Hope that helps

Grandma

Diva 04-24-2004 08:10 PM

Hi. I have the page up and running... but the time zones are wrong. Unfortunately I dont know how to correct this. Could someone give me a hand? Thanks bunches!

grandma2 04-30-2004 04:49 PM

Edit the php file to fit your needs.

For example:

$timezones[-10] = "Honolulu, Chatham Island, Papeete, Tahiti, Cook Islands";
$timezones[-9] = "Anchorage,Juneau";
$timezones[-8] = "Los Angeles, Seattle, San Fransisco, Vancouver";
$timezones[-7] = "Denver, Phoenix, Edmonton, Aklavik";

all times in the brackets are relative to GMT. You can also change anything within the quotes.

Grandma

Diva 05-01-2004 04:51 AM

Quote:

Originally Posted by grandma2
Edit the php file to fit your needs.

For example:

$timezones[-10] = "Honolulu, Chatham Island, Papeete, Tahiti, Cook Islands";
$timezones[-9] = "Anchorage,Juneau";
$timezones[-8] = "Los Angeles, Seattle, San Fransisco, Vancouver";
$timezones[-7] = "Denver, Phoenix, Edmonton, Aklavik";

all times in the brackets are relative to GMT. You can also change anything within the quotes.

Grandma

I'm sorry to be a pest, but do you mean to change the [-8] to [6] to get the correct time? Here is my World Times Page. As you can see, the time is off by 2 hours. My forum time is correct.

Boofo 05-01-2004 05:37 AM

Quote:

Originally Posted by Diva
I'm sorry to be a pest, but do you mean to change the [-8] to [6] to get the correct time? Here is my World Times Page. As you can see, the time is off by 2 hours. My forum time is correct.

Change this line (in worldtimes.php):

PHP Code:

$servertime = ($timeoffset - ($timediff+5)); 

to this:

PHP Code:

$servertime = ($timeoffset - ($timediff+7)); 


cLord 07-18-2004 06:47 AM

Do I really need to create 5 new remplates?
Can't this be done another way?

cLord ;)


All times are GMT. The time now is 04:17 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.01375 seconds
  • Memory Usage 1,809KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (7)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
  • (34)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