The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vB3.5 Local time and date in post and profile Details »» | |||||||||||||||||||||||||||
vB3.5 Local time and date in post and profile
Developer Last Online: Jun 2012
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) Show Your Support
|
Comments |
#72
|
|||
|
|||
Quote:
Look at post #60 in this thread. I showed the problem with the birthday and the full fix. It has exactly where to put the code and the slight modification to it to make it work there. The problem with using it next to the current birthday statement is because it is inside an If statement, and if the user has no additional info, it doesn't show up. |
#73
|
||||
|
||||
Boofo, just wanted to let you know that this works with 3.5.2, incase you wanted to change the version at the top of the thread
|
#74
|
|||
|
|||
Quote:
We jazed the code up a bit to make it look nicer. It didn't make much sense to have it say "Additional Information - N/A" and then list information like the time and date, so we fixed it like this: Find: HTML Code:
<else /> <em>$vbphrase[n_a]</em> </if> </div> ...and replace it with: HTML Code:
<phrase 1="$userinfo[username]">$vbphrase[time_date_intro]</phrase> Now go to Phrase Manager > Add New Phrase. Under Varname add: HTML Code:
time_date_intro HTML Code:
Local time and date for {1}: We also changed the bold part around to match the rest of the profile. Simply remove the bold from the headings and add it to the output of each command and that's it. You can also add fieldset to the code if you want (we didn't because we are designing an entirely new profile section for our board) but otherwise fieldset will blend the old style in closer. Check it out, it looks much better now and is personalized. Enjoy :nervous: |
#75
|
||||
|
||||
Maybe a pic to show us how it looks now?
|
#76
|
|||
|
|||
Quote:
This screenshot is how the code above will make it look. I will jazz it up more later with fieldsets that have a mouseover effect and other goodies. I'll post more about this as time permits :up: |
#77
|
|||
|
|||
Love it, love it, love it!!
|
#78
|
|||
|
|||
thanks u kindly
|
#79
|
|||
|
|||
Is there a way.. well of course there is, but could someone do it..
It would be cool to show the local time the post is made in each post! (Actually I was kinda hoping to get that and didn't read everything through so well but of course after installing this I realized it shows always the users current local time/date...) |
#80
|
|||
|
|||
Works on 3.5.4 :banana:
I'm really a big fan of your hacks, Boofo. But in In MEMBERINFO template I add it above this and it works fine. PHP Code:
Thanks a lot Sir. |
#81
|
||||
|
||||
Quote:
You can put it wherever it looks good to you in the profile. It should work almost anywhere in there. I just added the instructions of where I had mine. I will make a suggestion, though. I would add the local date in the postbit along with the time. The reason is that sometimes you will get someone that is a day behind you in time or a day ahead, depending on what time of the day it is. It can be confusing to members trying to figure out what day it would be for that person and if they were ahead or behind in time. Just a suggestion. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|