PDA

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


DiageoLiam
08-05-2009, 12:00 AM
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-05-2009, 12:09 AM
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-05-2009, 12:31 AM
Yes! thank you :)