Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by Mas*Mind Mas*Mind is offline
Developer Last Online: Sep 2003 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-23-2001 Last Update: Never Installs: 36
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 04-25-2001, 09:18 PM
almighty one
Guest
 
Posts: n/a
Default

well like in the actaul vbb ya have 2 alt colors and it is tabled across the screen like you have the little box with the vb_bullet.gif that has 1st alt color then ya got the forum name 2nd alt color then ya got #posts 1st alt color then ya got #views 2nd alt color etc etc i would like mt cities to be in 1st alt color and the times to be in 2nd alt color to kinda match the forums
Reply With Quote
  #53  
Old 04-26-2001, 02:30 PM
Mas*Mind's Avatar
Mas*Mind Mas*Mind is offline
 
Join Date: Oct 2001
Location: Amsterdam, The Netherlands, currently living in Cape Town, South Africa
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try this (untested, don't use the hack myself actually)

timezone_city_col:

<td valign="top"><table>$citycol</table></td>

timezone_city:

<tr>
<td bgcolor="{ firstaltcolor }"><smallfont><b>$cities</b></smallfont></td>
<td bgcolor="{ secondaltcolor }"><smallfont color="{ timecolor }">$datetime</smallfont></td>
</tr>


Remove the spaces out of the { blabla } variables
Reply With Quote
  #54  
Old 04-28-2001, 07:34 PM
almighty one
Guest
 
Posts: n/a
Default

yes yes it worked thanx alot
Reply With Quote
  #55  
Old 05-03-2001, 09:13 PM
Christian Christian is offline
 
Join Date: Nov 2001
Location: wuerzburg.germany.earth
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One question:

Is it possible to have/make more than one entry for a certain timezone?
Reply With Quote
  #56  
Old 05-03-2001, 09:28 PM
Mas*Mind's Avatar
Mas*Mind Mas*Mind is offline
 
Join Date: Oct 2001
Location: Amsterdam, The Netherlands, currently living in Cape Town, South Africa
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what do you mean exactly?
Reply With Quote
  #57  
Old 05-03-2001, 09:34 PM
Christian Christian is offline
 
Join Date: Nov 2001
Location: wuerzburg.germany.earth
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For example:

Code:
$timezones[-3] = "Brasilia";
$timezones[-3] = "Buenos Aires, Georgetown";
$timezones[-2] = "Mid-Atlantic";
$timezones[-1] = "Azores, Cape Verde Islands";
$timezones[0] = "Casablanca, Monrovia";
$timezones[0] = "Greenwich Mean Time: Dublin, Edinburgh, Lisbon, London";
$timezones[1] = "Amsterdam, Berlin, Bern, Rome. Stockholm, Vienna";
$timezones[1] = "Belgrade, Bratislava, Budapest, Ljubljana, Prague";
$timezones[1] = "Brussels, Copenhagen, Madrid, Paris, Vilnius";
$timezones[1] = "Sarajevo, Skopje, Sofija, Warsaw, Zagreb";
$timezones[1] = "West-Central Africa";
$timezones[2] = "Athens, Istanbul, Minsk";
$timezones[2] = "Bucharest";
$timezones[2] = "Cairo";

It only reads out one entry!

I'm not 100% familiar with PHP yet!
Does the [x] mean that $timezones is an array?
Reply With Quote
  #58  
Old 05-04-2001, 01:44 PM
orca's Avatar
orca orca is offline
 
Join Date: Oct 2001
Location: Switzerland
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack, worked like a charm.
Reply With Quote
  #59  
Old 05-09-2001, 07:20 PM
Wolverine
Guest
 
Posts: n/a
Default

Now all you have to do is link the timezones to the "who's online" feature.

Reply With Quote
  #60  
Old 05-09-2001, 08:11 PM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The time zone 0, the one with London, should not say Greenwich Mean Time. Even though London is in the same time zone as GMT, they are not always the same time. That's because London, in fact all of England, go on Daylight Savings Time, but Greenwich does not. GMT is the same all year round, but the actual time in that time zone may actually be GMT+1 when on DST. (Yes, oddly enough, that means that during part of the year, even Greenwich itself is GMT+1!)

I think this whole thing about GMT not going on DST while the time zone does is very confusing to many people, and actually leads to some errors in vBulletin. For example, right now on my board, my time zone offset is -5, and the board tells "all times are GMT -5 hours". But that's not true. Right now, my time is GMT -4 hours. My time zone, Eastern Time, is on DST. On standard time, ET is GMT -5, but when ET is on DST, it's GMT -4. Now compared to the actual time in England, I am -5 hours. But not compared to GMT.

Is this making sense?
Reply With Quote
  #61  
Old 05-10-2001, 05:21 AM
Mas*Mind's Avatar
Mas*Mind Mas*Mind is offline
 
Join Date: Oct 2001
Location: Amsterdam, The Netherlands, currently living in Cape Town, South Africa
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Christian
For example:

Code:
$timezones[-3] = "Brasilia";
$timezones[-3] = "Buenos Aires, Georgetown";
$timezones[-2] = "Mid-Atlantic";
$timezones[-1] = "Azores, Cape Verde Islands";
$timezones[0] = "Casablanca, Monrovia";
$timezones[0] = "Greenwich Mean Time: Dublin, Edinburgh, Lisbon, London";
$timezones[1] = "Amsterdam, Berlin, Bern, Rome. Stockholm, Vienna";
$timezones[1] = "Belgrade, Bratislava, Budapest, Ljubljana, Prague";
$timezones[1] = "Brussels, Copenhagen, Madrid, Paris, Vilnius";
$timezones[1] = "Sarajevo, Skopje, Sofija, Warsaw, Zagreb";
$timezones[1] = "West-Central Africa";
$timezones[2] = "Athens, Istanbul, Minsk";
$timezones[2] = "Bucharest";
$timezones[2] = "Cairo";

It only reads out one entry!

I'm not 100% familiar with PHP yet!
Does the [x] mean that $timezones is an array?
Yep, it's an array; So you can't do that I'm affraid... Maybe I'll work on it...
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 10:31 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.04678 seconds
  • Memory Usage 2,300KB
  • 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
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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
  • (8)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