Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-29-2014, 02:18 AM
msmayz msmayz is offline
 
Join Date: May 2014
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 05-29-2014, 02:26 AM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 05-29-2014, 04:37 AM
msmayz msmayz is offline
 
Join Date: May 2014
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the assurance, ForceHSS -- I tried the mod, and that took care of both of my questions.
Reply With Quote
  #4  
Old 05-29-2014, 05:04 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 05-29-2014, 05:57 AM
msmayz msmayz is offline
 
Join Date: May 2014
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 05-29-2014, 06:09 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 05-29-2014, 07:01 AM
msmayz msmayz is offline
 
Join Date: May 2014
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Holy crap, so helpful! Thanks so much! (And I'm a gal, just FYI.)
Reply With Quote
  #8  
Old 05-29-2014, 07:04 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by msmayz View Post
Holy crap, so helpful! Thanks so much! (And I'm a gal, just FYI.)

Oops, so sorry!
Reply With Quote
  #9  
Old 05-29-2014, 07:13 AM
msmayz msmayz is offline
 
Join Date: May 2014
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No worries! I think most of the people who post here are probably dudes, so it's understandable.
Reply With Quote
  #10  
Old 05-29-2014, 07:19 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by msmayz View Post
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).
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 11: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.04558 seconds
  • Memory Usage 2,316KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete