![]() |
How to stop Groups link showing in navbar to unregistered users
vB 4.1.9
Unregistered users and some other usergroups don't have access to Groups.php. But it still shows to them in the navbar (there's a link there to Groups). How do I stop it showing to these users? Thanks. |
Code:
<vb:if condition="$bbuserinfo['userid'] != 0"> |
Thanks, Revelence, but where do I insert this if condition? In the navbar template? Any particular location in that template?
|
You should see a link for the groups in the navbar template and you would put that condition around it. The link is probably something like:
<vb:if condition="$show['quick_links_groups']"> <li><a href="{vb:link grouphome}">{vb:rawphrase social_groups}</a></li> </vb:if> (Are you sure it is showing for usergroups that have no permission to see the social groups? that condition implies otherwise.) |
Thanks for pointing me to where it is.
I moved this: Code:
<li><a href="group.php{vb:raw session.sessionurl_q}">{vb:rawphrase social_groups}</a></li> Code:
<vb:if condition="$show['pmmainlink']"> |
All times are GMT. The time now is 03:15 AM. |
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:
|