Version: 1.0.1, by Boofo
Developer Last Online: Jun 2012
Category: Profile Enhancements -
Version: 3.5.8
Rating:
Released: 08-22-2005
Last Update: 09-05-2005
Installs: 77
Uses Plugins Template Edits
No support by the author.
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
This modification may not be copied, reproduced or published elsewhere without author's permission.
Then you have something else interfering with it then. There's no way it can be off with the code Kirby fixed. I'm also running it on RC 3 and it is right on the dot.
:ermm: Well I guess I will have to disable some hacks to test it again. I did do come slight modification to remove the <BR> tags because i wanted to place this in a diffrent section of the member profile. When I placed it above the last activity code it would break the labels and time/date into diffrent lines. It has been working fine up untill a few days ago.
I have no idea what is going on. It has to be something you either added or chnanged from when it was working fine before. Just backtrack to that time and leave it at that and you should be ok.
I will test some hacks and see if there casuing a problem.
PHP Code:
<!-- Local Date and Time in Profile -->$vbphrase[bf2_local_time]:$userinfo[localtime]<br/>$vbphrase[bf2_local_date]: $userinfo[localdate] <!-- Local Date and Time in Profile -->
But there should be no problem with this cide right?
Forgive me for a second, however, was it intentially done so that if someone does not have their b-day filled out that this does not show on MEMBERINFO?
Forgive me for a second, however, was it intentially done so that if someone does not have their b-day filled out that this does not show on MEMBERINFO?
The b-day has nothing to do with this mod. You must have included it in an if statement for the b-day by accident.
The b-day has nothing to do with this mod. You must have included it in an if statement for the b-day by accident.
I wound up doing this too when I followed the instructions in 3.5.1. The birthday phrase it said to look for wasn't there exactly, but one close to it was. It said to look for this:
Code:
<if condition="$userinfo['birthday']">
, which did not exist.
I found this instead.
Code:
<if condition="$show['birthday']">
This wound up putting it inside the If statement so that if there was additional userinfo, it showed, but if not, it did not show and just put an N/A in the field.
To fix it, I looked for this code:
Code:
<else />
<em>$vbphrase[n_a]</em>
</if>
</div>
Then put this code after it:
Code:
<!-- Begin Local Date and Time in Profile -->
<span class="fieldset">
<table>
<tr>
<td><strong>$vbphrase[bf2_local_time]</strong>:<br />$userinfo[localtime]</td>
</tr>
<tr>
<td><strong>$vbphrase[bf2_local_date]</strong>:<br />$userinfo[localdate]</td>
</tr>
</table>
</span>
<!-- End Local Date and Time in Profile -->