PDA

View Full Version : Only certain usergroups can see a link in navbar


misterfade
06-24-2005, 12:04 AM
Like the title says, I want to have only certain usergroups able to see a certain link in the navbar, how would I do that? I know it's the navbar template but I can't get the code right with <if>. Can anyone help me out?

Thanks.

deathemperor
06-24-2005, 03:22 AM
try

<if condition="in_array($bbuserinfo['usergroupid'], array(1,2,3,4,5,6,7)">navlink</if>

misterfade
06-24-2005, 01:40 PM
Hmmm that doesn't work. It gives me a parse error when I submit the code. Any suggestions?

Princeton
06-24-2005, 01:58 PM
try <if condition="in_array($bbuserinfo['usergroupid'], array(1,2,3,4,5,6,7))">
navlink
</if>

misterfade
06-24-2005, 03:38 PM
Aha! Forgot that last ")"! Thanks, works great now.