Version: 1.0.1, by Boofo
Developer Last Online: Jun 2012
Category: Miscellaneous Hacks -
Version: 3.7.x
Rating:
Released: 02-02-2008
Last Update: Never
Installs: 50
Uses Plugins Template Edits
No support by the author.
Poster's local time and date in postbit and profile for vBulletin 3.7.0 beta 4
Version 1.0.1
(By Boofo)
What does this product do?
This product will add the local time and date of posters 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.
Note: This will also show the correct time and date of the poster to guests. You do not have to be logged in to know what time it is in someone else's world.
Credits:
Thanks goes out to KirbyDE for pointing me in the right direction for the profile time and helping to verify the original code. And thanks goes out to Chen Avinadav for making the first local time hack for vB2 and allowing me to release it for vB3, vB3.5 and now vB3.7.0 beta 4. A special thanks goes out to Dismounted, a distinguished member of the vb.org Staff, for catching my newbie mistake of not checking for new hook placements.
Version Information:
Version 1.0.1 --Initial release
Installation overview:
Templates to edit: (3)
--postbit
--postbit_legacy
--memberinfo_block_ministats
Products to install: (1)
--product-local_time_bh.xml
Installation Intructions:
Import the product in your Admin CP, do the template edits and you're all set!
NOTE: If you do not click install, you do not need support.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Dear Boofo, I imported the XML with the notion that I'll be able to use the variable $userinfo[localdate] for date calculations in a PHP module. However, it returns null.
Can you help me please to figure out how to derive user's local date?
This hack is only going to work in the postbit and profile. You could use the date("m-d-y") to get today, but it wouldn't be according to their timezone. It would be according to the server's timezone.
Made mine look wacky too. It put everything on the left hand side. (Using postbit) Must be conflicting with another mod. (Used TMS). Let me try adding the temp. mods manully and see if that makes a difference.
Thank you, Boofo, very much for trying. Please let me know should something comes to your creative mind. I can even pay for it.
Quote:
Originally Posted by Boofo
This hack is only going to work in the postbit and profile. You could use the date("m-d-y") to get today, but it wouldn't be according to their timezone. It would be according to the server's timezone.