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)

Mas*Mind 03-23-2001 10:00 PM

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 :)

03-24-2001 04:52 PM

I've coded all timezones very quickly, but if you wanna change it, just edit:

PHP Code:

$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] = "London, UK";
$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] = "Beijing, Perth, Singapore, Hongkong";
$timezones[9] = "Tokyo, Seoul, Osaka";
$timezones[10] = "Guam, Papua New Guinea";
$timezones[11] = "Magadan, Solomon Islands";
$timezones[12] = "Auckland, Wellington, Fiji"

To reflect the correct zones...You can move some array-elements if you don't wanna display them...

03-24-2001 04:54 PM

Example shot:

03-24-2001 04:59 PM

Now that's what I call quick service. :)

Thanks!

03-24-2001 05:01 PM

wow that was quick ... *** runs off to install it ***

03-24-2001 05:09 PM

Quote:

Originally posted by Mas*Mind
Example shot:
Very nice!!
Will install it monday !

03-24-2001 05:19 PM

came out strange for some reason ?

http://animeboards.com/tzindex.php

03-24-2001 05:21 PM

Don't see anything from my hack on that page :confused:

It looks a bit funny though..

03-24-2001 05:24 PM

yeah i know i have no idea of what included that :confused:

03-24-2001 05:28 PM

You really mean the installation of my hack included that funny timezone utility? Mabye you have to rename timezone.php to something else (don't forget to change the reference to include("timezone.php"); in index.php also..)

03-24-2001 05:33 PM

Great hack:D:D
Thanx m8....

03-24-2001 05:34 PM

The only reason that *might* explain it is that you maybe have an existing timezone.php in your php include-dir?

03-24-2001 05:42 PM

Quote:

Originally posted by Mas*Mind
The only reason that *might* explain it is that you maybe have an existing timezone.php in your php include-dir?
LOL i forgot i had another timezone script i uploaded a while back -

seems to work now

http://animeboards.com/timezindex.php :D

03-24-2001 05:48 PM

Hehehe

You just saved me from a headeache ;)

Glad it works now :)

03-24-2001 05:50 PM

>>> Eastern Australian Standard Time (AEST), Guam, Papua New Guinea Sunday 05:48

Isn't this your timezone eva2000? If so, what are you doing up at this ungodly hour? GO TO BED!

03-24-2001 05:53 PM

Quote:

Originally posted by fastforward
>>> Eastern Australian Standard Time (AEST), Guam, Papua New Guinea Sunday 05:48

Isn't this your timezone eva2000? If so, what are you doing up at this ungodly hour? GO TO BED!

hehe it's the only time i get to correspond with everyone else in the USA :D

that and did i tell you I'm a vB addict :D

03-24-2001 06:11 PM

well it's done - http://animeboards.com/index.php?s= :D

03-24-2001 06:17 PM

Looks good, only the image is broken...

You can change the number of columns if you want btw...($percol in timezone.php)

03-24-2001 06:20 PM

Quote:

Originally posted by Mas*Mind
Looks good, only the image is broken...

You can change the number of columns if you want btw...($percol in timezone.php)

strange you mean the folder icon ? seems fine for me

is that number of rows or columns ?

03-24-2001 06:29 PM

The image is linked to images/.gif ... no image name, comes up with a red X.

03-24-2001 06:35 PM

Quote:

Originally posted by Joe
The image is linked to images/.gif ... no image name, comes up with a red X.
strange i am seeing a folder images/on.gif on mine

anyway i removed the image as it servers no purpose :)

03-24-2001 06:36 PM

my bad; I referrenced to $onoff.gif in the timezonelist-template...

It probably doesn't work for use because we had no cookie set...

03-24-2001 06:50 PM

Excellent hack. :) I didn't have time to get started on it and already you released it! :D

03-24-2001 07:08 PM

How do u change the default time is now?

I tried changing the $i= variable but no dice.

03-24-2001 07:12 PM

What do you mean? You shouldn't touch the $i variable, it's used for other purposes...

The script makes use of you configurations timezone offset (the one in your cp-general settings), so if you set that right all times should be displayed correctly

03-24-2001 07:14 PM

Quote:

Originally posted by eva2000
is that number of rows or columns ?
Number of columns btw...

03-24-2001 09:50 PM

eva2000, can you please post your timezones for me? as i am from Australia as well, Sydney to be exact

03-24-2001 09:59 PM

Quote:

Originally posted by surfichris
eva2000, can you please post your timezones for me? as i am from Australia as well, Sydney to be exact
what do you mean post my timezones ?

i just loaded timezone.php that came with the hack :)

it all depends on where your server/webhost is located as well

03-24-2001 10:15 PM

wow! thats one speedy response! :D
can you tell me the line you modified for EAST (Eastern Australia Time)

thanks

btw - where can i get a copy of your getinfo template, its kool

03-24-2001 10:18 PM

wow. great hack man

03-25-2001 07:50 AM

Quote:

Originally posted by surfichris
wow! thats one speedy response! :D
can you tell me the line you modified for EAST (Eastern Australia Time)

thanks

btw - where can i get a copy of your getinfo template, its kool

You don't have to modify anything as long if you configured the timezoneoffset in your controlpanel (general settings) right...

03-26-2001 10:04 AM

Quote:

Originally posted by Mas*Mind


You don't have to modify anything as long if you configured the timezoneoffset in your controlpanel (general settings) right...

and how we know that is right???

03-26-2001 03:12 PM

If you're threadtimes are corresponding your timezone...

bokhalifa 04-13-2001 09:25 AM

help my
http://bokhalifa.org/daar/bo/timezone.php

Mas*Mind 04-13-2001 10:15 AM

You didn't follow the instructions properly...

timezone.php isn't a standalone script, but needs to be included in the index.php

re-read the instructions plz

bokhalifa 04-13-2001 11:38 AM

thanks
Mas*Mind;)

now wirking
good
http://bokhalifa.org/daar/bo/index.php


:D

Mas*Mind 04-13-2001 01:52 PM

Looks good..only the image is broken...

you have to change the $onoff.gif to another one....

Translated:

...nekorb si egami eht ylno..doog skooL

...eno rehtona ot fig.ffono$ eht egnahc ot evah uoy

:D

bokhalifa 04-13-2001 05:39 PM

thanks
Mas*Mind
looool:D


thanks
Translated:
:D

almighty one 04-25-2001 12:56 AM

i followed the instructions as far as i can tell but i dont show this on ym board grrrr where exactly is it you add
$timezonelist
i tried it in a few places but as i say my thing isnt showing up =[

almighty one 04-25-2001 12:58 AM

can someone make an install for idiots :) i seem to not be bale to get this to work at all please help a dummy


All times are GMT. The time now is 04:47 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
  • Page Generation 0.01294 seconds
  • Memory Usage 1,798KB
  • 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_php_printable
  • (9)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
  • (40)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