![]() |
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?
|
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)"> PHP Code:
|
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> |
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']"> |
All times are GMT. The time now is 01:44 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|