![]() |
Menu Permission
I want to set a menu item to only show for guests. I want it to hide said menu item for any other usergroup.
I can see that if I go into the menu I can set "Show Permission Name". If I put "member" in the blank it only shows the menu item for those logged in. I need the complete opposite and I can't figure out how to do it. I've typed "guest" and "unregistered" and it hides the menu item instead for all usergroups. How can I achieve what I need to do?? :confused: |
Dont think that can be done for default vb but can be coded am sure someone will give you the coding for it soon
|
You will need to make a plugin
Product: vBulletin Name: Only unregistered sees link in navbar Hook location: global_state_check Code:
if($vbulletin->userinfo['usergroupid'] == 1) -- Now go back to your Navigation Manager Edit the link you want In show permission name type "unregistered" (no quotes) Note for other people: It doesn't have to be unregistered or usergroupid 1. Customize it for admins (usergroupid 6), registered users (usergroupid 2), etc. |
Cleaner php for the same thing would be:
Code:
$show['unregistered'] = !show['member']; |
All times are GMT. The time now is 01:54 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:
|