View Full Version : How to check a user group?
xmitchx
Thu 1st Sep '05, 4:48pm
I remember there is a function isn't there to check if a user is in a specific group? I am trying to determine if a user is an administrator, how would I go about doing this with template conditionals?
KingSpade
Fri 2nd Sep '05, 2:41am
<if condition="is_member_of($bbuserinfo, 6)">
If the user is an admin, do this
<else />
Do this if s/he is not
</if>
If you need to check another usergroup, simply replace 6 with the ID of the usergroup in question.
xmitchx
Sat 3rd Sep '05, 12:07pm
Right, thank you that was the function I was looking for! :)
KingSpade
Sun 4th Sep '05, 3:58pm
No problem :)
Powered by vBulletin™ Version 4.0.2 Copyright © 2010 vBulletin Solutions, Inc. All rights reserved.