View Single Post
  #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
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01269 seconds
  • Memory Usage 1,873KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete