Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications

Reply
 
Thread Tools
Last Active in Postbit Details »»
Last Active in Postbit
Version: 1.00, by harmor19 harmor19 is offline
Developer Last Online: May 2023 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.4 Rating:
Released: 05-28-2007 Last Update: 05-28-2007 Installs: 39
Uses Plugins Template Edits
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-29-2007, 07:39 PM
rasp187 rasp187 is offline
 
Join Date: Dec 2005
Location: Ohio
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great! Thanks, man. Installed.
Reply With Quote
  #3  
Old 05-30-2007, 05:40 PM
Pirate45 Pirate45 is offline
 
Join Date: Apr 2006
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 05-30-2007, 06:01 PM
Pirate45 Pirate45 is offline
 
Join Date: Apr 2006
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope, I just can't get it to go.
Reply With Quote
  #5  
Old 05-30-2007, 06:18 PM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you edit the "postbit" or "postbit_legacy" template?
Reply With Quote
  #6  
Old 05-30-2007, 06:33 PM
Pirate45 Pirate45 is offline
 
Join Date: Apr 2006
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Legacy.
Reply With Quote
  #7  
Old 05-30-2007, 06:48 PM
Pirate45 Pirate45 is offline
 
Join Date: Apr 2006
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 05-30-2007, 06:53 PM
Pirate45 Pirate45 is offline
 
Join Date: Apr 2006
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 05-31-2007, 07:27 PM
Pirate45 Pirate45 is offline
 
Join Date: Apr 2006
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

harmor19, any ideas on this?

Thanks.
Reply With Quote
  #10  
Old 06-01-2007, 09:34 AM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:05 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04811 seconds
  • Memory Usage 2,327KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete