PDA

View Full Version : CMS Tabs question


Gamelobby
01-12-2013, 08:47 PM
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:
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.