PDA

View Full Version : Show Thread Enhancements - Last Active in Postbit


harmor19
05-28-2007, 10:00 PM
Requested Here (https://vborg.vbsupport.ru/showthread.php?t=148412)

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

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

Add Below
<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.

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


<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:
<!-- 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.