Log in

View Full Version : IF STATEMENT: making a navbar link visible to select usergroups


DiageoLiam
08-04-2009, 11:00 PM
Hey,
One of the additional benefits VIP members receive on my forum is access to an arcade. I want a link to the arcade to be visible to these members only but I can't figure out the IF statement I would use? I came up with this but it doesn't work...

<if condition=$usergroup=['11']>
<li><a href="arcade.php$session[sessionurl_q]">Arcade</a></li>
</if>

Could somebody help please?
Thanks! :)

HMBeaty
08-04-2009, 11:09 PM
This should work...
<if condition="is_member_of($vbulletin->userinfo, 11)">
<li><a href="arcade.php$session[sessionurl_q]">Arcade</a></li>
</if>

DiageoLiam
08-04-2009, 11:31 PM
Yes! thank you :)