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
  #72  
Old 08-08-2001, 05:02 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's a little bug I just found out.

The template timezonelist contains
PHP Code:
<img src="{images}/$lightbulb.gif" alt=""
The problem is when you are not logged in, the image is broken ($lightbulb is not defined).

So what I did is just changed it to
PHP Code:
<img src="{images}/clock.gif" alt=""
(When clock.gif is a little image I did with a world and a clock)

I'm using v2.0.3, so I'm not sure if this is also a problem on earlier versions.

EDIT: Just saw that this is mentioned before. Sorry.
Reply With Quote
  #73  
Old 08-08-2001, 02:17 PM
centris's Avatar
centris centris is offline
 
Join Date: Nov 2001
Location: Scotland
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah the Lightbulb bug, this one had me stumped for a while he he

<img src="{imagesfolder}/on.gif" alt=""></td>

This is what I did, )always on (as the calculation of the time is)
Reply With Quote
  #74  
Old 08-13-2001, 01:11 PM
handheld234
Guest
 
Posts: n/a
Default

This hack looks great [saw it on another site]. I think though it doesn't account for daylight savings time [like the US Pacific Time] May need to manually adjust for that???. Also, has anyone been able to put it somewhere else on a page outside of the forum tables???

I would just like to add a tiny table with 6 or so timezones in it at another spot on my page.

Thanks.
Reply With Quote
  #75  
Old 08-15-2001, 11:02 PM
handheld234
Guest
 
Posts: n/a
Default

I'm going to try this but instead of putting the times in the main table I am going to try to stick it in the footer instead by sticking $timezonelist down there. Will see what happens...
Reply With Quote
  #76  
Old 08-16-2001, 12:49 AM
handheld234
Guest
 
Posts: n/a
Default

Doesn't work in the footer. Nothing came up.
Reply With Quote
  #77  
Old 08-21-2001, 01:25 AM
TheComputerGuy's Avatar
TheComputerGuy TheComputerGuy is offline
 
Join Date: Oct 2001
Location: TX
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fatal error: Call to undefined function: gettemplate() in /home/moneytec/public_html/forums/timezone.php on line 39

I get that...anyone know why?
Reply With Quote
  #78  
Old 08-22-2001, 04:57 AM
chacho
Guest
 
Posts: n/a
Default

I still have this question..........


Quote:
<?php

$dateformat = "l H:i";
$percol = 13;

$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";

$i=0;

while(list($timediff, $cities)=each($timezones))
{ $i++;
$servertime = $timeoffset - $timediff;
$timestamp = mktime (date("H")-$servertime, date("i"), date("s"), date("m"), date("d"), date("Y"));
$datetime = date($dateformat, $timestamp);
eval("\$citycol .= \"".gettemplate('timezone_city')."\";");
if($i % $percol == 0)
{ eval("\$cityzones .= \"".gettemplate('timezone_city_col')."\";");
unset($citycol);
}
}

if($i % $percol != 0)
eval("\$cityzones .= \"".gettemplate('timezone_city_col')."\";");

eval("\$timezonelist .= \"".gettemplate('timezonelist')."\";");

?>

That is the code in the part


Quote:
$dateformat = "l H:i";
$percol = 13;

Can I change the Colums to 3 Colums instead of only 2 of them. Thansk if you can help me with that one.
Reply With Quote
  #79  
Old 08-22-2001, 05:22 AM
chacho
Guest
 
Posts: n/a
Default

TO change those 2 Colums to 3 Colums I just have to do some Math. LOL your colums are 13 in each, so there were 2 colums that ADD to 26, my aproximation was 26/3 give me a uneven number. I just put 9 It looks just the way I want it and now I have 3 Colums. Again Awesome hack. If you want to have 3 colums intead of 2 just change this


in timezone.php


Find:

Quote:
$dateformat = "l H:i";
$percol = 13;


Change it to this


Quote:
$dateformat = "l H:i";
$percol = 9;



Thanks very much For this Hack, now it looks just the way I wanted. You the Man!!!!!!!!!!
Reply With Quote
  #80  
Old 08-22-2001, 08:36 AM
cyrus's Avatar
cyrus cyrus is offline
 
Join Date: Oct 2001
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope doesnt work with me

I cant even find the first thing to replace in the index.php.



I am running vb 2.0 final

Can anyone help as I would love to add this hack !
Reply With Quote
  #81  
Old 08-22-2001, 10:30 AM
weezle
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Cyrus
Nope doesnt work with me

I cant even find the first thing to replace in the index.php.



I am running vb 2.0 final

Can anyone help as I would love to add this hack !
In vbb2final Look for this



PHP Code:
$templatesused='forumhome_birthdaybit,error_nopermission,forumhome_pmloggedin,forumhome_welcometext,forumhome_logoutcode,forumhome_newposts,forumhome_todayposts,forumhome_logincode,forumhome_loggedinuser,forumhome_loggedinusers,forumhome_lastpostby,forumhome_moderator,forumhome_forumbit_level1_nopost,forumhome_forumbit_level1_post,forumhome_forumbit_level2_nopost,forumhome_forumbit_level2_post,forumhome,forumhome_unregmessage'
Replace it with this:
PHP Code:
$templatesused='error_nopermission,forumhome_pmloggedin,forumhome_welcometext,forumhome_logoutcode,forumhome_newposts,forumhome_todayposts,forumhome_logincode,forumhome_loggedinuser,forumhome_loggedinusers,forumhome_lastpostby,forumhome_moderator,forumhome_forumbit_level1_nopost,forumhome_forumbit_level1_post,forumhome_forumbit_level2_nopost,forumhome_forumbit_level2_post,forumhome,forumhome_unregmessage,timezonelist,timezone_city,timezone_city_col'
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 09:47 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.07332 seconds
  • Memory Usage 2,304KB
  • 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
  • (4)bbcode_php
  • (5)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
  • (5)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