If you wish to restrict the latest blog display to
only members in good standing, follow the instructions above but use the following code for postbit:
PHP Code:
<!-- latest blog hack for members in good standing only -->
<vb:if condition="!in_array($bbuserinfo[usergroupid],array(G1,G2,G3,G4,G5))">
<vb:if condition="$post['field6']">
<span class="smallfont">Recent Blog: <a href="{vb:raw post[field8]}" target="_blank">{vb:raw blogentry}</a></span>
</vb:if>
</vb:if>
<!-- end latest blog hack for members in good standing only -->
Replace "G1,G2,G3,G4,G5" by the usergroup ID numbers of any groups who should NOT show the latest blog.
For example, I restrict privileges for new members for the first 10 posts so they don't get to display their blogs. Similarly, I don't want blog titles and links displayed for banned members.
Therefore, I disable this for the following groups:
New member (Registered Members): 2
Probation: 22
Banned: 20
Blocked: 30
Post Moderation: 28
so I would use the following code in postbit:
PHP Code:
<!-- latest blog hack for members in good standing only -->
<vb:if condition="!in_array($bbuserinfo[usergroupid],array(2,20,22,28,30))">
<vb:if condition="$post['field6']">
<span class="smallfont">Recent Blog: <a href="{vb:raw post[field8]}" target="_blank">{vb:raw blogentry}</a></span>
</vb:if>
</vb:if>
<!-- end latest blog hack for members in good standing only -->