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.

Pirate45 06-02-2007 07:22 PM

Ok, I'll uninstall. If you ever do any more with this, please post.

Thanks.

harmor19 06-02-2007 07:50 PM

I tested it on my site with both postbit and postbit_legacy and they both work.

DiSpy 06-02-2007 08:44 PM

Is it possible to change this to show the date in a different format than the way I have it set for every other place on the forums?

In other words, on posts and such I want it to show:

Sat June 2nd, 2007 @ 12:50 pm

But i'd like to change the last active date to look like:
06/02/07 @ 12:50 PM

This way it's not so long and doesn't have to wrap.

Any ideas??

harmor19 06-02-2007 09:55 PM

You'll have to edit the plugin XML.

momo2 08-14-2007 04:15 PM

worked excellent on both style and on 3.6.8

pauloo 08-16-2007 08:36 PM

Nice thank you

kingvillain 08-23-2007 12:10 PM

Works fine on 3.6.8

Thanks *Installed*

MickDoneDee 04-17-2009 01:06 PM

How do I add lastactivitydate to the post $post[postid] popup menu? I've tried but can't get it to work. Does anybody have any suggestions?

MickDoneDee 04-18-2009 04:52 AM

If you wish to place the Last Activity Date in the Postbit Popup Menu, instead, import the attached XML file as a plugin.

The following code should be added to both postbit and postbit_legacy templates:

Search template for $template_hook[postbit_user_popup]. Immediately above that line insert:
Code:

<!-- Show Last Activity Date -->
        <tr><td class="vbmenu_option">$vbphrase[last_activity]: $post[lastactivitydate]</td></tr>
<!-- End Show Last Activity Date -->

Now save it. Refresh your browser (F5). The result should look like the screenshot in the attached image.


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

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.01260 seconds
  • Memory Usage 1,790KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete