Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 29 Apr 2019, 21:23
I.G.O.T.A.'s Avatar
I.G.O.T.A. I.G.O.T.A. is offline
 
Join Date: Mar 2011
Real name: JJ Smith
Navigation Permissions?

What is the easiest way to set one specific group to view a tab on the navigation bar?

When I add the group in the (Show Permission Name) it doesn't work.

Any ideas?

Thank you,
JJ Smith
Reply With Quote
  #2  
Old 29 Apr 2019, 23:39
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
If you want specific usergroups only to see a navbar tab, then create a plugin hooked at "gloabl_bootstrap_init_complete" with code like this:


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

Where I have "groupid1, groupid2, ..." you want to put the comma delimited list of usergroups by id that you want to have access to the tab.

And then in the Navigation Manager, in the field labeled "Show Permission Name" put:

mynavtab

You should use your own name for "mynavtab" that indicates the nature of the tab. Make sure they are the same in the plugin and in the Navigation Manager.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #3  
Old 30 Apr 2019, 00:23
I.G.O.T.A.'s Avatar
I.G.O.T.A. I.G.O.T.A. is offline
 
Join Date: Mar 2011
Real name: JJ Smith
Originally Posted by MarkFL View Post
If you want specific usergroups only to see a navbar tab, then create a plugin hooked at "gloabl_bootstrap_init_complete" with code like this:


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

Where I have "groupid1, groupid2, ..." you want to put the comma delimited list of usergroups by id that you want to have access to the tab.

And then in the Navigation Manager, in the field labeled "Show Permission Name" put:

mynavtab

You should use your own name for "mynavtab" that indicates the nature of the tab. Make sure they are the same in the plugin and in the Navigation Manager.
Awesome!

Thank you,
JJ Smith
Reply With Quote
Reply


Tags
navbar, permissions


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 02:54.

Layout Options | Width: Wide Color: