PDA

View Full Version : how to restrict guests, not able to see moderator posts


farsgsm
10-26-2010, 06:10 PM
Dear friends,
i will be gladfull if u can show me a hack that i can install for restriciting a usergroup to not be able to see other usergroups post..

for example:
guests not able to see moderators replies and posts

or

users not able to see super moderators replies and posts

MoMan
10-26-2010, 10:28 PM
Wrap a template conditional around the postbit:

<if condition="!$bbuserinfo['userid'] == 0 OR !is_member_of($post['usergroupid'],array(5,6,7))">

</if>

This is a quick-and-dirty approach, but it'll work, and that's probably what you're after. The proper way to do it would be by modifying the showthread query.

8thos
10-27-2010, 07:30 AM
I need this for vb4.