Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 15 Jun 2015, 08:18
Ksb2050's Avatar
Ksb2050 Ksb2050 is offline
 
Join Date: May 2007
Real name: Kyle
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??
Reply With Quote
  #2  
Old 15 Jun 2015, 08:23
ForceHSS's Avatar
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Dont think that can be done for default vb but can be coded am sure someone will give you the coding for it soon
Reply With Quote
  #3  
Old 15 Jun 2015, 10:42
Daniel's Avatar
Daniel Daniel is offline
 
Join Date: Jul 2005
Real name: Daniel
You will need to make a plugin

Product: vBulletin
Name: Only unregistered sees link in navbar
Hook location: global_state_check

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Plugin is Active: Yes

--

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.
__________________
Daniel
Reply With Quote
  #4  
Old 15 Jun 2015, 16:11
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
Cleaner php for the same thing would be:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 03:58.

Layout Options | Width: Wide Color: