vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Permissions for tabs in the nav bar (https://vborg.vbsupport.ru/showthread.php?t=311751)

msmayz 05-29-2014 02:18 AM

Permissions for tabs in the nav bar
 
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 (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?
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...rray-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.

PHP Code:

$show (array)  Forum.php  Memory64 B  (TBWORLD)
-----------------------------------------------------
$show['activemembers']             = Boolean(1TRUE
$show
['addfriend']                 = Boolean(0FALSE
$show
['admincplink']             = Boolean(1TRUE
$show
['avatarlink']             = Integer(11
$show
['bbmenu']                 = Integer(10
$show
['birthdays']                 = Boolean(0FALSE
$show
['browsers']                 = Boolean(0FALSE
$show
['canviewcalendar']         = Boolean(1TRUE
$show
['canviewforums']             = Integer(11
$show
['cmsattach']                 = Integer(11
$show
['collapsebutton']         = Boolean(0FALSE
$show
['communitylink']             = Boolean(1TRUE
$show
['contactus']                 = Boolean(1TRUE
$show
['detailedtime']             = Boolean(0FALSE
$show
['dismiss_link']             = Boolean(1TRUE
$show
['dst_correction']         = Boolean(0FALSE
$show
['editor_css']             = Boolean(0FALSE
$show
['emaillink']                 = Boolean(0FALSE
$show
['externalrss']             = Boolean(0FALSE
$show
['forumdescription']         = Boolean(1TRUE
$show
['foruminfo']                 = Boolean(0FALSE
$show
['forumleaders']             = Integer(11
$show
['forumsubscription']         = Boolean(0FALSE
$show
['friends_and_contacts']     = Boolean(1TRUE
$show
['guest']                     = Boolean(0FALSE
$show
['homepage']                 = Boolean(0FALSE
$show
['icon']                     = Boolean(0FALSE
$show
['languagechooser']         = Boolean(0FALSE
$show
['lastpostinfo']             = Boolean(1TRUE
$show
['loggedinusers']             = Boolean(1TRUE
$show
['member']                 = Boolean(1TRUE
$show
['memberslist']             = Boolean(1TRUE
$show
['modcplink']                 = Boolean(1TRUE
$show
['nojs_link']                 = String(21"/forum.php?nojs=1"
$show['nopasswordempty']         = Integer(10
$show
['notices']                 = Boolean(1TRUE
$show
['notifications']            = Boolean(0FALSE
$show
['old_explorer']             = Boolean(0FALSE
$show
['passwordexpired']         = Boolean(0FALSE
$show
['pmlink']                 = Boolean(1TRUE
$show
['pmmainlink']                = Boolean(1TRUE
$show
['pmsendlink']             = Integer(250
$show
['pmstats']                 = Boolean(1TRUE
$show
['pmtracklink']             = Integer(11
$show
['pmwarning']                 = Boolean(0FALSE
$show
['popups']                 = Boolean(1TRUE
$show
['profilepiclink']         = Boolean(1TRUE
$show
['quick_links_albums']     = Boolean(1TRUE
$show
['quick_links_groups']     = Boolean(1TRUE
$show
['quickchooser']             = Boolean(1TRUE
$show
['quicksearch']             = Boolean(1TRUE
$show
['registerbutton']         = Boolean(1TRUE
$show
['remotejquery']             = Boolean(1TRUE
$show
['remoteyui']                 = Boolean(0FALSE
$show
['remoteyuicombo']         = Boolean(0FALSE
$show
['rtl']                     = Boolean(0FALSE
$show
['search_engine']             = Boolean(0FALSE
$show
['searchbuttons']             = Boolean(1TRUE
$show
['sidebar']                 = Boolean(1TRUE
$show
['sidebarposition']         = String(5"right"
$show['siglink']                 = Integer(41024
$show
['spacer']                 = Boolean(1TRUE
$show
['subforums']                 = Boolean(0FALSE
$show
['threadinfo']             = Boolean(0FALSE
$show
['todaysevents']             = Boolean(1TRUE
$show
['viewarticles']             = String(1"1"
$show['viewblog']                 = String(1"1"
$show['wgo_members']             = Boolean(0FALSE
$show
['wollink']                 = Integer(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

Quote:

Originally Posted by msmayz (Post 2499918)
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

Quote:

Originally Posted by msmayz (Post 2499921)
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). :)


All times are GMT. The time now is 06:04 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01153 seconds
  • Memory Usage 1,802KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete