Log in

View Full Version : Forum Closed for certain user groups


Trent
03-22-2005, 11:40 PM
Not sure if this can be done, but what i want to do is close a forum to specific user groups, so they can still access the forum but can only view information and not post or reply (basicly a read only forum).

Now i know i can set the forum permissions/access masks etc so the user can not post in a specific forum, the problem with that is the icon "Reply" and "Quote" still appears.. (it just gives a message if a user tries to post) i want to get rid of the icon all together, however if a different user group logs in there it still needs to be there. (Ie. so an Admin or Mod can post new informration into the forum).

Thanks.

Jolten
03-23-2005, 12:26 AM
You'll need to edit templates and add something like:


<if condition="(in_array($bbuserinfo['usergroupid'], array(X,XX,XX)))">
the reply or new thread button here
</if>


Replace the Xs with the usergroupid numbers you DO want to see the buttons.

Or, conversely use :

<if condition="!(in_array($bbuserinfo['usergroupid'], array(X,XX,XX)))">
the reply or new thread button here
</if>

and replace X with the usergroupids you DO NOT want to see the buttons.


Untested, but I believe that's correct.