The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hiding certain link in the navbar from certain usergroups?
I recently installed a plugin that showed a list of banned members and it is only for admin and mod to see and the are the only ones with permissions to see it, but the link for the list is in Quick Links so I was wondering, how do I hide this link from certain usergroups?
|
#2
|
||||
|
||||
You would need to put a condition around the link. If it's in a template, then put this around it (change X, Y, Z to the usergroups you want to hide it from):
HTML Code:
<if condition="!is_member_of($bbuserinfo, X, Y, Z)"> link to show if you aren't a member of usergroups X, Y, Z </if> PHP Code:
|
#3
|
|||
|
|||
thanks for this lynne, made good use of it hiding all the sub-navtabs from guests..
as i force guests to register, i figure the only tab they should see is the forum one.. one thing though i believe the tags need to be </vb:if> and not </if> |
#4
|
||||
|
||||
Quote:
If you just want the condition for "guests" instead of having to write out the usergroupids, you can just use: HTML Code:
<if condition="$show['guest']"> stuff only to show non logged in users </if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|