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)
-   -   Automatic Timezone Setting Correction (https://vborg.vbsupport.ru/showthread.php?t=50946)

N!ck 03-28-2003 10:00 PM

Automatic Timezone Setting Correction
 
I have eliminated the only strange error I could find with this, so I am moving it to full releases.

What This Does
If your users pay as little attention to their options as mine do, this might be just what you need. It uses a JavaScript to detect when a user has their timezone setting set different than their computer's clock. If the computer time does not match, the user is given a JavaScript prompt on your main page asking whether he/she would like to adjust their timezone setting. If they select yes, a new window will pop up, make the change, and close. EXCEPTION: This will yield very unsatisfactory results for users in strange timezones whose offsets are not whole numbers (i.e. Newfoundland is GMT-3.5). I haven't figured out how to do this yet, but I will update this hack if I do figure it out. You may want to just remove those options from your registration/profile options.

Scroll down for screenshots.

Let me know how it works out, and, as always, click INSTALL if you use it, please!

Enjoy!

Download: here

N!ck 03-29-2003 05:45 AM

<i>Reserved for miscellaneous announcements and stuff.</i>

N!ck 03-29-2003 05:47 AM

Loading Homepage...

N!ck 03-29-2003 05:51 AM

Just after update...

Smoothie 03-29-2003 06:47 AM

Just re-installed, seems to be working fine! Question, after getting the first prompt, clicking ok, the second alert box appears, but there is a small window which appears in the upper left corner of my screen... why is that?

N!ck 03-29-2003 06:50 AM

Glad to hear it. It's the window that the update script runs in. :)

Smoothie 03-29-2003 07:22 AM

In IE, the window is so tiny, you can't see what it says. In Mozilla, the javascript window covers it up.

Al7zen 03-29-2003 08:02 AM

Great Work ;)

Smoothie 03-29-2003 08:29 AM

Found a bug, or a problem. If your time setting in your User CP is set to anything above GMT -11, it updates in the wrong direction. My time zone is GMT -5. If I set to GMT -11, or GMT -12, etc, the script updates me to GMT -29. Going in the other direction, GMT +11, GMt +12, etc, it updates back to GMT -5, which is correct. Hope all that makes sense...

Zelda-King 03-29-2003 12:02 PM

Yes, I have people who's offset is +11. They don't set it (so on the boards it's listed as offset 0) and it updates to -13.


All times are GMT. The time now is 05:10 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.01055 seconds
  • Memory Usage 1,728KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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