The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Local time and date in post, pm, usernotes and profile v1.5 Details »» | |||||||||||||||||||||||||||
Local time and date in post, pm, usernotes and profile v1.5
Developer Last Online: Jun 2012
Local time and date in post, pm, usernotes and profile
Version 1.5 (By Boofo) This hack will add the local time and date of users in the posts, pms, usernotes 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. Thanks goes out to Link14716 for pointing me in the right direction for the pm time and helping to verify the code. And everyone who chipped in at vbulletin.com to help me figure out vB3'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. Version Information: Version 1.0 --Initial release Version 1.1 --Fixed bug where the User CP DST setting was not being accounted for. Thanks goes out to squall14716 for the fix. Version 1.2 --Fixed bug where a few people's time was off by an hour or two in the showthread, but right on target everywhere else. Moved the code from the showthread.php into the functions_showthread.php, where it should have been in the first place. Thanks Natch, for all of your hard work in helping me track this down. Version 1.3 --Fixed bug where local time and date was not showing up in a member's profile when the "Additional Information" box was empty due to them not entering any personal information in their profile. It would only show an N/A. Version 1.4 --Added ability to have the local time and date to also show up in the showpost. Version 1.5 --Fixed last known bug where the User CP DST setting was not being automatically accounted for when the DST changed. The Version 1.1 fix seemed to be only temporary and not a total solution. This should take care of it. Files to edit: 4 functions_showthread.php private.php usernote.php member.php Templates to edit: 3 postbit postbit_legacy memberinfo If you find this hack useful, please click the install button. Show Your Support
|
Comments |
#72
|
||||
|
||||
Have you tried the code anywhere else? Can you install it for the pms and postbits and see if it is working right there? that might help us to narrow it down at least. The file in the first post has been updated with all of the changes.
|
#73
|
||||
|
||||
OK I did that but I'm still getting the same times in PMs, usernotes and posts as I get in profiles... and that was after cleaning my cache and downloading the file about 15 minutes before this post was made.
|
#74
|
||||
|
||||
If you downloaded and installed the new code for the functions_showthread.php, and it is still off, then I'm beginning to believe it has to be your server time setting is off in the Admin CP. With the new code changes, how far off are we still?
|
#75
|
||||
|
||||
As far as I'm aware, as I've said before, there is no longer such an option (vBulletin doesn't need that manually set in the admin cp any more) and in any case everyone's regular vB times show correctly. Could you point me exactly where you mean please.
|
#76
|
||||
|
||||
Default Time Zone Offset in the Date and Time Options in the Admin CP under vBulletin Options.
|
#77
|
||||
|
||||
Ah yes. I knew about that but that's not server time. Mine is set at -5 and I've said I can't give you a straight 'how many hours out' reply because it is different for each timezone. ie, EST is correct.
|
#78
|
||||
|
||||
Disregard my last post. I've spotted something different. Times are now all 2 hours behind.
|
#79
|
||||
|
||||
What did you spot? Maybe it is interfering with this?
Where are you located and is DST in effect there right now? |
#80
|
||||
|
||||
No, it's just the update. Before the times screwed up pending on area and now they're all 2 hours behind.
|
#81
|
||||
|
||||
Try turning DST off in the Admin CP and make sure it is set to Automatically detec DST settings in YOUR user cp and tell me if that does anything.
Don't lose faith. We'll get it working for you. Everyone else seems to be all fixed up. We'll get you there, too. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|