Log in

View Full Version : Make link in navbar accessable by usergroup


Blackbeard
09-25-2005, 11:24 AM
What code do i have to input in the navbar template to only allow a usergroup like vip to gain access, only only visible to say all admin and mods and vips,

i take its a bit like this one for reg link

<if condition="$show['registerbutton']">
<td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>

but i cannot seem to sort it, please help.

Blaine0002
09-25-2005, 01:57 PM
this is not a how-to so it shouldnt be here.

Blackbeard
09-25-2005, 03:50 PM
please move to an area it can be please admin/mod

FD929
09-25-2005, 04:59 PM
Groups 5,6,7 are the default numbers for Super Mod, Admin, and Mod respectively. Replace '== X' with your vip usergroup id.
<if condition="$bbuserinfo['usergroupid'] == 5 || $bbuserinfo['usergroupid'] == 6 || $bbuserinfo['usergroupid'] == 7 || $bbuserinfo['usergroupid'] == X">
<td class="vbmenu_control"><a href="url" rel="nofollow">link text</a></td>
</if>

Blackbeard
09-25-2005, 05:15 PM
thankyou very much