View Full Version : Permissions for tabs in the nav bar
msmayz
05-29-2014, 02:18 AM
Hi! We "downgraded" from VB 5.1.1 to VB 4.2.2 a few days ago and couldn't be happier -- we are absolutely loving it. I do have two questions, though, about permissions for the tabs in the top navigation bar.
There are two tabs that I want viewable only to moderators, super moderators, and administrators. I tried using the solution suggested in this related vbulletin.com thread from 2012 (http://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/414886-navigation-manager-show-permission) (inserting moderators.admincplink in the Show Permission Name field), but it's not working. Would the phrases modcplink.admincplink or, perhaps, forumleaders do the trick?
There is one tab that I want to be viewable only to usergroups 5 (super mods), 6 (admins), 7 (mods), 9 (custom group), and 10 (custom group). How can I set up those permissions?
Would a mod like this (https://vborg.vbsupport.ru/showthread.php?t=233629&page=89) work?
Do I need to create a plugin? This is the only information I've been able to find (http://vbwarez.net/showthread.php?397-4-2-0-Navigation-Manager-Tabs-colors-Tab-Permissions) about a plugin of this variety, but I'm not sure if it's accurate or will work on VB 4.2.2.
Thanks for your help! I really appreciate it.
ForceHSS
05-29-2014, 02:26 AM
Did try the plugin first as it says in the 2nd post. There is also a plugin I have seen around that will do this for you but can't remember the name of it maybe someone else can post a link for you
msmayz
05-29-2014, 04:37 AM
Thanks for the assurance, ForceHSS -- I tried the mod, and that took care of both of my questions. :)
tbworld
05-29-2014, 05:04 AM
When you are ready, you can do all of that with vb4.2.1, vb4.2.2 without a modification. It can all be handled in the navigational manager. It is a little difficult for a vbulletin beginner to grasp, but once you understand vBulletin terminology it is surprisingly simple.
msmayz
05-29-2014, 05:57 AM
Thanks, tbworld. I didn't find any difficulty in setting up the tabs themselves, but there doesn't seem to be any way to edit the viewing permissions without going into the code or installing a mod. How do I do it without a mod? I'm up for the challenge. I can read/find code and generate just enough of it to be dangerous. :)
tbworld
05-29-2014, 06:09 AM
Good man! Let me find you a few references (hopefully) and then I can assist you from there if needed. If you do not like the way it works you can always go third party, but you will not need to. I have recently put it through it's paces and was satisfied.
--------------- Added 29 May 2014 at 00:41 ---------------
Use these canned variables in the "Show Permission Name" when create a Tab, Menu or Link. (See Navigational Manager)
Please read the help tab on the row item in the navigational manager. It will make more sense now.
You can easily create show variables for user-groups or any other custom condition with a simple plugin. Just remember that you can place a condition on a tab, but it might only be hidden from the menu. In order for the code to be restricted the same show variable needs to wrap your code.
The show variables below already do both. If you are having trouble finding what you need. Just ask most of us around here know how to reference these variables.
Reference: List of show variables
http://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/420978-where-can-i-find-list-of-show-array-variables
This is just a dump of the $show variables off a vanilla version of 4.2.1 on my development system.
Of course you can simply create your own show variable. I will address that in the next post.
$show (array) Forum.php Memory: 64 B (TBWORLD)
-----------------------------------------------------
$show['activemembers'] = Boolean(1) TRUE
$show['addfriend'] = Boolean(0) FALSE
$show['admincplink'] = Boolean(1) TRUE
$show['avatarlink'] = Integer(1) 1
$show['bbmenu'] = Integer(1) 0
$show['birthdays'] = Boolean(0) FALSE
$show['browsers'] = Boolean(0) FALSE
$show['canviewcalendar'] = Boolean(1) TRUE
$show['canviewforums'] = Integer(1) 1
$show['cmsattach'] = Integer(1) 1
$show['collapsebutton'] = Boolean(0) FALSE
$show['communitylink'] = Boolean(1) TRUE
$show['contactus'] = Boolean(1) TRUE
$show['detailedtime'] = Boolean(0) FALSE
$show['dismiss_link'] = Boolean(1) TRUE
$show['dst_correction'] = Boolean(0) FALSE
$show['editor_css'] = Boolean(0) FALSE
$show['emaillink'] = Boolean(0) FALSE
$show['externalrss'] = Boolean(0) FALSE
$show['forumdescription'] = Boolean(1) TRUE
$show['foruminfo'] = Boolean(0) FALSE
$show['forumleaders'] = Integer(1) 1
$show['forumsubscription'] = Boolean(0) FALSE
$show['friends_and_contacts'] = Boolean(1) TRUE
$show['guest'] = Boolean(0) FALSE
$show['homepage'] = Boolean(0) FALSE
$show['icon'] = Boolean(0) FALSE
$show['languagechooser'] = Boolean(0) FALSE
$show['lastpostinfo'] = Boolean(1) TRUE
$show['loggedinusers'] = Boolean(1) TRUE
$show['member'] = Boolean(1) TRUE
$show['memberslist'] = Boolean(1) TRUE
$show['modcplink'] = Boolean(1) TRUE
$show['nojs_link'] = String(21) "/forum.php?nojs=1"
$show['nopasswordempty'] = Integer(1) 0
$show['notices'] = Boolean(1) TRUE
$show['notifications'] = Boolean(0) FALSE
$show['old_explorer'] = Boolean(0) FALSE
$show['passwordexpired'] = Boolean(0) FALSE
$show['pmlink'] = Boolean(1) TRUE
$show['pmmainlink'] = Boolean(1) TRUE
$show['pmsendlink'] = Integer(2) 50
$show['pmstats'] = Boolean(1) TRUE
$show['pmtracklink'] = Integer(1) 1
$show['pmwarning'] = Boolean(0) FALSE
$show['popups'] = Boolean(1) TRUE
$show['profilepiclink'] = Boolean(1) TRUE
$show['quick_links_albums'] = Boolean(1) TRUE
$show['quick_links_groups'] = Boolean(1) TRUE
$show['quickchooser'] = Boolean(1) TRUE
$show['quicksearch'] = Boolean(1) TRUE
$show['registerbutton'] = Boolean(1) TRUE
$show['remotejquery'] = Boolean(1) TRUE
$show['remoteyui'] = Boolean(0) FALSE
$show['remoteyuicombo'] = Boolean(0) FALSE
$show['rtl'] = Boolean(0) FALSE
$show['search_engine'] = Boolean(0) FALSE
$show['searchbuttons'] = Boolean(1) TRUE
$show['sidebar'] = Boolean(1) TRUE
$show['sidebarposition'] = String(5) "right"
$show['siglink'] = Integer(4) 1024
$show['spacer'] = Boolean(1) TRUE
$show['subforums'] = Boolean(0) FALSE
$show['threadinfo'] = Boolean(0) FALSE
$show['todaysevents'] = Boolean(1) TRUE
$show['viewarticles'] = String(1) "1"
$show['viewblog'] = String(1) "1"
$show['wgo_members'] = Boolean(0) FALSE
$show['wollink'] = Integer(1) 1
msmayz
05-29-2014, 07:01 AM
Holy crap, so helpful! Thanks so much! (And I'm a gal, just FYI.) ;)
tbworld
05-29-2014, 07:04 AM
Holy crap, so helpful! Thanks so much! (And I'm a gal, just FYI.) ;)
Oops, so sorry! :)
msmayz
05-29-2014, 07:13 AM
No worries! I think most of the people who post here are probably dudes, so it's understandable. :)
tbworld
05-29-2014, 07:19 AM
No worries! I think most of the people who post here are probably dudes, so it's understandable. :)
I won't hold it against you. :)
You are right, I just assumed. Lynne, one of our 'Administrators' here at vBulletin.org was a dude for a couple of weeks before I clued in. Even though she had a kitty as an avatar. In my defense I am a guy (clueless). :)
Zachery
05-29-2014, 07:43 AM
Dude is a non gendered pronoun.
tbworld
05-29-2014, 07:46 AM
Dude is a non gendered pronoun. LOL
Zachery
05-29-2014, 08:08 AM
LOL
http://en.wikipedia.org/wiki/Dude
Lynne
05-29-2014, 05:24 PM
Dude is a non gendered pronoun.
Hmmm, then what is Dudette?
(Sorry to the OP for continuing the hijack. Welcome to vbulletin.org! It's nice to have more women here. :) )
ForceHSS
05-29-2014, 05:52 PM
Hmmm, then what is Dudette?
(Sorry to the OP for continuing the hijack. Welcome to vbulletin.org! It's nice to have more women here. :) )
http://www.internetslang.com/DUDETTE-meaning-definition.asp (http://www.urbandictionary.com/define.php?term=dudette)
tbworld
05-29-2014, 06:47 PM
http://www.internetslang.com/DUDETTE-meaning-definition.asp (http://www.urbandictionary.com/define.php?term=dudette)
Okay, everyone else has ruined the thread so I am jumping in.
1.
dudette (http://www.urbandictionary.com/define.php?term=dudette&defid=773104)
A girl dude. A female.
That's an oxymoron. If a 'dude' = male!
So now we have "a girl male. A female."
If I wasn't confused about girls already, I am now. :)
Lynne
05-29-2014, 08:14 PM
Okay, everyone else has ruined the thread so I am jumping in.
1.
dudette (http://www.urbandictionary.com/define.php?term=dudette&defid=773104)
A girl dude. A female.
That's an oxymoron. If a 'dude' = male!
So now we have "a girl male. A female."
If I wasn't confused about girls already, I am now. :)
Yes, exactly what I was meaning!
(So, sooo sorry to the OP! If you need more help, just ask and we will shut up about Dudes/Dudettes and help you.)
msmayz
05-29-2014, 09:04 PM
Bwahaha. You guys can argue semantics all you want -- doesn't bother me.
Dude is a non gendered pronoun.
Yes, it certainly can function that way! But it still definitely retains a relatively strong connotation of maleness, in general. If someone says to you, "Look at that dude over there!" who are you going to look for: a girl or a guy? Regardless, everyone knew exactly what I meant as soon as they read the word in my post; so in that sense, there's nothing to dispute about whether I used the word correctly. ;)
(Sorry to the OP for continuing the hijack. Welcome to vbulletin.org! It's nice to have more women here. :) )
Thanks, dudette! :D
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.