The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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?? |
#2
|
|||
|
|||
Dont think that can be done for default vb but can be coded am sure someone will give you the coding for it soon
|
#3
|
||||
|
||||
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) { $show['unregistered'] = true; }else{ $show['unregistered'] = false; } -- 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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|