PDA

View Full Version : User Permision <if>


BioFall
01-16-2010, 03:45 PM
1 Quick Questions,

I'm trying to add a link in my menu but I just want a certain user group to see it, I know it needs to look like this:

<if condition="$show['registerbutton']"><a href="games.php" rel="nofollow"> Custom Homepage</a> </if>

I just need to know what I'm supposed to put in place of ['registerbutton'] is it just the usergroup id? Any help would be appreciated.

Lynne
01-16-2010, 04:01 PM
This should work:
<if condition="is_member_of($bbuserinfo, x)">
code
</if>
Change x to the usergroup you are interested in.

BioFall
01-16-2010, 04:23 PM
Thanks works perfectly.