vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   CMS Tabs question (https://vborg.vbsupport.ru/showthread.php?t=293872)

Gamelobby 01-12-2013 08:47 PM

CMS Tabs question
 
When creating tabs it gives me an option to place "can_see_cms" in the Show Permission Name area, what does this mean.?

What should go in that spot.?

Also Tab Script(s), I believe it is the "THIS_SCRIPT"..?
Best place to see these in .php files.? (downloaded from server?)

I watched the video & read the articles, but in the video especially he just says "won't worry about that now" lol

When do we worry about them.? :)
Thanks

Lynne 01-13-2013 02:10 AM

I see no such option when I edit a tab in the Navigation Manager. Are you sure you aren't using a modification?

Tab Scripts is the THIS_SCRIPT variable.

Gamelobby 01-15-2013 03:22 AM

Sorry.. it's not an option persay, but it comes up when i click in the blank space for the "Show Permission Name" area.
Possibly a Google Chrome auto-fill thing, but curious to what it means.? (question #1)

Also my 2nd question is what is the best way to find out what should go into the Tab_Script area.?

Thanks (sorry for the confusion)

Lynne 01-15-2013 07:09 PM

This is from the help popup for the Show Permission Name area:
Quote:

Show Permission
This determines which variable(s) in the vBulletin $show array will be used to decide if the element should be displayed. For instance 'member' means it will only display if $show['member'] is true. Multiple variables can be specified by joining them with a dot. All of them must then be true for the element to display.
If you have a $show variable set to determine who sees the tab, then you would enter the name of the variable here.

Tab Scripts is the THIS_SCRIPT definition at the top of the script.

Gamelobby 01-15-2013 07:45 PM

Another question i have is, is what to put in the "Product" area.? (from the drop down menu)

Obviously if the tab is product related it should be listed there, but what if it isn't product related.. is leaving it blank, or putting vbulletin, or even the product name in there going to effect anything.? (i'm thinking not, but also wondering what the difference between vbulletin & leaving blank is)


Thanks again :up:

kh99 01-15-2013 08:04 PM

You should leave it as "vbulletin". On my forum there is no blank choice.


All times are GMT. The time now is 02:18 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.01012 seconds
  • Memory Usage 1,719KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete