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)

mcyates 09-04-2005 06:59 AM

I take it this hack is dead then.

Boofo 09-04-2005 05:59 PM

Not necessarily.

Boofo 09-06-2005 06:06 AM

Uploaded new version that should fix the time being off for many people. Please let me know if it works for you all now. ;)

Scooterpig 09-06-2005 06:50 AM

It works Boofo, well done, thank you..:)

Intrepid clicks Install..:)

Boofo 09-06-2005 06:53 AM

You're very welcome, sir. Sorry it took so long for the fix. ;)

Xplorer4x4 09-06-2005 10:45 AM

Looks liek you got that one hour problem fixed boofo. Thanks.

Boofo 09-06-2005 10:54 AM

And the times shouldn't change when you are logged out now. ;)

peterska2 09-07-2005 09:53 PM

/me clicks install

Xplorer4x4 09-26-2005 10:18 AM

It is running 5 hours behind for me now. :( I will verify my server and main vb tiem zone match up but I believe it is a proble due to RC3.

Boofo 09-26-2005 10:26 AM

Quote:

Originally Posted by Xplorer4x4
It is running 5 hours behind for me now. :( I will verify my server and main vb tiem zone match up but I believe it is a proble due to RC3.

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. ;)

Crow 09-28-2005 03:54 AM

clicks install.. nice one! :mad:

Xplorer4x4 09-28-2005 04:14 AM

Quote:

Originally Posted by Boofo
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.

Boofo 09-28-2005 04:20 AM

Ahh, so you did something to it in editing it. ;)

Xplorer4x4 09-28-2005 05:14 AM

Yes I did! :p But the thing is it was working fine after the edit, not sure how long though. Then i noticed it was off the other day.

Here is the section of my member info template:
PHP Code:

    <td><img src="$userinfo[avatarurl]$userinfo[avatarsizealt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td>
   <else />
    <
td>&nbsp;</td>
   </if>
   <
td class="smallfont" valign="bottom" align="$stylevar[right]">
<!-- 
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 -->
    <if 
condition="$show['lastactivity']">
     <
div>$vbphrase[last_activity]: $userinfo[lastactivitydate] <span class="time">$userinfo[lastactivitytime]</span>&nbsp;</div>
    </if>
    <if 
condition="$show['currentlocation']">
     <
div>$userinfo[action$userinfo[where]<if condition="$show['detailedtime']"> - <else /> @ </if> $userinfo[time]&nbsp;</div>
    </if>
</
td>
  </
tr>
  </
table>
 </
td>
</
tr>
</
table>
<!-- / 
main info avatarprofilepic etc. --> 

I assume removing the line breaks is causing a problem?

Boofo 09-28-2005 05:28 AM

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.

Xplorer4x4 09-29-2005 03:50 PM

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?

dieselpowered 09-29-2005 04:17 PM

Well done, I like it!!

**clicks install**

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?

Boofo 09-30-2005 01:28 AM

Quote:

Originally Posted by xtremeoff-road
Well done, I like it!!

**clicks install**

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. ;)

Xplorer4x4 10-15-2005 05:14 AM

My code worked fine. Just reinstaled the plug in.

Jacqueline 12-04-2005 12:19 PM

Quote:

Originally Posted by Boofo
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 -->


Jacqueline 12-05-2005 09:38 PM

My members are absolutely raving over this mod. They love it! Thank you very much.

Boofo 12-05-2005 10:32 PM

Quote:

Originally Posted by Elleth Faewen
My members are absolutely raving over this mod. They love it! Thank you very much.

Thank for the kind words. It's a must have on my site, also. ;)

Bubble #5 12-05-2005 11:20 PM

The instructions say:

Quote:

In MEMBERINFO template:

Find:
<if condition="$userinfo['birthday']">
We don't have that condition listed :( all we show is:

Quote:

<if condition="$show['birthday']">
Is that the same thing, or will it work? :ermm:

Boofo 12-05-2005 11:24 PM

Quote:

Originally Posted by Bubble #5
The instructions say:



We don't have that condition listed :( all we show is:



Is that the same thing, or will it work? :ermm:

Try it and see. ;)

It should work fine.

ManagerJosh 12-05-2005 11:45 PM

Long Live Chen's Hack! :D

Bubble #5 12-06-2005 12:00 AM

Quote:

Originally Posted by Boofo
It should work fine.

Umm... nope :( Nothing is showing up in profile.

Boofo 12-06-2005 12:06 AM

Quote:

Originally Posted by Bubble #5
Umm... nope :( Nothing is showing up in profile.

Did you import the product file and make sure it is enabled?

Try another spot in there and see if that works. You can put it anywhere you like. ;)

Boofo 12-06-2005 12:07 AM

Quote:

Originally Posted by ManagerJosh
Long Live Chen's Hack! :D

Exactly! ;)

Bubble #5 12-06-2005 12:17 AM

Quote:

Originally Posted by Boofo
Try another spot in there and see if that works.

BINGO! :D

Thanks Boofo! Big fan of your work :)

Boofo 12-06-2005 12:18 AM

Quote:

Originally Posted by Bubble #5
BINGO! :D

Thanks Boofo! Big fan of your work :)

Glad you got it working. Enjoy! ;)

Jacqueline 12-07-2005 08:33 AM

Quote:

Originally Posted by Bubble #5
BINGO! :D

Thanks Boofo! Big fan of your work :)

Bubble,
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.

dieselpowered 12-07-2005 03:19 PM

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 :)

Bubble #5 12-07-2005 05:07 PM

Quote:

Originally Posted by Elleth Faewen
Bubble, Look at post #60 in this thread.

Thanks Elleth, (beautiful name by the way ) :nervous:

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
Under Text add:

HTML Code:

Local time and date for {1}:
Click Save.


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:

Boofo 12-07-2005 05:49 PM

Maybe a pic to show us how it looks now? ;)

Bubble #5 12-07-2005 06:56 PM

Quote:

Originally Posted by Boofo
Maybe a pic to show us how it looks now? ;)

LOL. Say pppppppplease :nervous:

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:

BabyNameAddict 03-09-2006 01:15 AM

Love it, love it, love it!!

jacx 03-14-2006 05:51 PM

thanks u kindly

JaniU 03-19-2006 06:01 PM

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...)

Stop 05-11-2006 09:03 AM

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:

<if condition="$show['birthday']"



Thanks a lot Sir.

Boofo 05-11-2006 09:21 AM

Quote:

Originally Posted by Stop
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:

[b]<if condition="$show['birthday']">[/b]
[
b][/b

Thanks a lot Sir.

Thank you for the kind words, sir. ;)

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. ;)


All times are GMT. The time now is 06:23 AM.

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.01436 seconds
  • Memory Usage 1,855KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_html_printable
  • (4)bbcode_php_printable
  • (17)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
  • (40)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