vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Profile Enhancements - vB3.5 Local time and date in post and profile (https://vborg.vbsupport.ru/showthread.php?t=94869)

Boofo 08-22-2005 10:00 PM

vB3.5 Local time and date in post and profile
 
vB3.5 Local time and date in post and profile
Version 1.0.1
(By Boofo)

What does this product do?
This product will add the local time and date of users in the posts and profile. That way you will know what the time and date is where they are located. I use this on my site so I will have an idea if it is the middle of the night, where they are at, or daytime. With your users living in all corners of the globe, this hack is a nice gauge of the different time zones without having to figure out each one in your head. ;)

Credits:
Thanks goes out to KirbyDE for pointing me in the right direction for the profile time and helping to verify the code. And everyone who chipped in at vbulletin.org to help me figure out vB3.5's new ways of doing things. A special thanks goes out to Chen Avinadav for making the first local time hack for vB2 and allowing me to release it for vB3 and vB3.5. ;)

Version Information:
Version 1.0.0 --Initial release
Version 1.0.1 --Fixed time where it didn't show right for many people. Thanks to Kirby for the fix. ;)

Installation overview:
Templates to edit: (3)
--postbit
--postbit_legacy
--memberinfo
Products to install: (1)

bleodler 08-22-2005 11:21 PM

Installed and working great on my test board. :)

Boofo 08-22-2005 11:29 PM

You had doubts? LOL

bleodler 08-22-2005 11:34 PM

lol, actually maybe I spoke to soon or it's probably something on my end, but the times are 4 hours earlier than they should be.

Boofo 08-22-2005 11:44 PM

Make sure your Default Time Zone Offset in the Date and Time settings in the vBulletin Options is set at your true server time. ;)

bleodler 08-23-2005 12:03 AM

Quote:

Originally Posted by Boofo
Make sure your Default Time Zone Offset in the Date and Time settings in the vBulletin Options is set at your true server time. ;)

They are the same unless DST is messing it up.

http://www.britfugees.com/vb.jpg

http://www.britfugees.com/server.jpg

wilky49 08-23-2005 12:28 AM

Also make sure that the time zone is correct in your user settings

User CP / Edit options

Boofo 08-23-2005 12:44 AM

Is it off both in the postbit AND the profile?

bleodler 08-23-2005 01:01 AM

Quote:

Originally Posted by Boofo
Is it off both in the postbit AND the profile?

Yes, they are both behind by 4 hours.

Boofo 08-23-2005 01:03 AM

Does the time show right in the footer?


All times are GMT. The time now is 05:09 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.01382 seconds
  • Memory Usage 1,730KB
  • 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
  • (2)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
  • (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