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)

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



All times are GMT. The time now is 04:11 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.01334 seconds
  • Memory Usage 1,762KB
  • 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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