Log in

View Full Version : how to make onenavbar link only vissible for one usergroup ???


schneberger
02-14-2008, 07:48 PM
hey .

i am a little bit new to this with php.. but i have a link in my navbar that goes to a newssite where i can add articles.. i only want thos link to be vissible to s administrators.. how should i doe to code to achive that..

i tried with <if condition"$show=['usergroupid6']"> but that didnĀ“t work

Mosh
02-14-2008, 07:58 PM
Try enclosing your link code with this:

<if condition="is_member_of($bbuserinfo, 6)">###YOUR LINK CODE HERE ###</if>

schneberger
02-14-2008, 08:02 PM
thanks.. that made the trick..

Mosh
02-14-2008, 08:06 PM
No worries, glad it worked :)