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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 


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 03:26 PM.


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.05353 seconds
  • Memory Usage 2,912KB
  • Queries Executed 12 (?)
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)bbcode_php
  • (10)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (18)post_thanks_box
  • (2)post_thanks_box_bit
  • (18)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (18)post_thanks_postbit_info
  • (18)postbit
  • (18)postbit_onlinestatus
  • (18)postbit_wrapper
  • (1)showthread_list
  • (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_threadedmode.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete