Quote:
Originally Posted by New Joe
How to make it work for vB4?
|
I just tested it on my upgrade testing site and it works with vB4 too. You only need to change code you put in postbit (legacy or new one, which I don't use).
My code looks like this (and just to let you know, I use last time user posted in postbit):
HTML Code:
<vb:if condition="is_member_of($bbuserinfo,5,6,7,11)"><dt>Zad.Akt</dt> <dd>{vb:raw post.lastseen_date} {vb:raw post.lastseen_time}</dd></vb:if>
<vb:if condition="is_member_of($bbuserinfo,5,6,7,11)"><dt>Zad.Post</dt> <dd>{vb:raw post.lastpost_date} {vb:raw post.lastpost_time}</dd></vb:if>
To explain:
This part
HTML Code:
<vb:if condition="is_member_of($bbuserinfo,5,6,7,11)">
checks if the user is part of this usergroups (I allow it just for moderators and up to see this info). You can check for different conditions.
This is where actual message is written in postbit:
HTML Code:
<dt>Zad.Akt</dt> <dd>{vb:raw post.lastseen_date} {vb:raw post.lastseen_time}</dd>
. This part:
HTML Code:
<dt>Zad.Akt</dt>
, you put your own text respectively, what you want users to see as description for info. Don't forget to close if statement, do it with:
I don't used any phrasing, it's a bit different if you want to use phrases. You'll need to create phrase and use it.
This add-on can be put to vB4 section with no problem.