vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Show Thread Enhancements - Last Active in Postbit (https://vborg.vbsupport.ru/showthread.php?t=148416)

harmor19 05-28-2007 10:00 PM

Last Active in Postbit
 
Requested Here

Description
This will show when the user was last active on the site in their postbit.

How to Install
Download the product XML. Go into to your ACP --> Plugins & Products --> Download / Upload Plugins. Scroll to the bottom of the page. Browse to the plugin you have just downloaded and click "Import".


Go into your Administrator Control Panel.
Open: Postbit Templates -- > postbit(_legacy)

Find
PHP Code:

<div>$post[icqicon$post[aimicon$post[msnicon$post[yahooicon$post[skypeicon]</div

Add Below
PHP Code:

<if condition="$show['lastactivity']"
    <
div>$vbphrase[last_activity]: $post[lastactivitydate]<br />
&
nbsp;@ <span class="time">$post[lastactivitytime]</span>&nbsp;</div>
</if> 

================================================== ==========

rasp187 05-29-2007 07:39 PM

Works great! Thanks, man. Installed.

Pirate45 05-30-2007 05:40 PM

Excellent, but I can't get it working.

PHP Code:

<div class="smallfont">
                &
nbsp;<br />
                <if 
condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
                <if 
condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
                <if 
condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
                <
div>
                    
$vbphrase[posts]: $post[posts]
                </
div>
                <if 
condition="$show['lastactivity']"><div>$vbphrase[last_activity]: $post[lastactivitydate]<br />&nbsp;@ <span class="time">$post[lastactivitytime]</span>&nbsp;</div></if>  
                <if 
condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
                <if 
condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
                
$template_hook[postbit_userinfo_right]
                <
div>$post[icqicon$post[aimicon$post[msnicon$post[yahooicon$post[skypeicon]</div>
            </
div

I moved the insert code up a couple of lines from what you suggested but it doesn't seem to be working.

I imported the plugin as you said also.

Any ideas?

Pirate45 05-30-2007 06:01 PM

Nope, I just can't get it to go. :(

harmor19 05-30-2007 06:18 PM

Did you edit the "postbit" or "postbit_legacy" template?

Pirate45 05-30-2007 06:33 PM

Legacy.

Pirate45 05-30-2007 06:48 PM

From postbit_legacy:


PHP Code:

                <if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
                <if 
condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
                
$template_hook[postbit_userinfo_right]
                <
div>$post[icqicon$post[aimicon$post[msnicon$post[yahooicon$post[skypeicon]</div>
                <if 
condition="$show['lastactivity']"
    <
div>$vbphrase[last_activity]: $post[lastactivitydate]<br />
&
nbsp;@ <span class="time">$post[lastactivitytime]</span>&nbsp;</div>
</if>  
            </
div

See attached image showing plugin was installed. :confused:

Pirate45 05-30-2007 06:53 PM

I just installed it on a second vBulletin forum that I have access to and it does not work there either. The second forum has very few other plugins or products installed.

Pirate45 05-31-2007 07:27 PM

harmor19, any ideas on this?

Thanks.

harmor19 06-01-2007 09:34 AM

I'm sorry but I don't know why it's not working for you.


All times are GMT. The time now is 07:13 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.01185 seconds
  • Memory Usage 1,779KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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