The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Show Permission
While looking and editing the Nav bar, i came across:
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. Does this mean i could limit who sees the articles/blog based on their user group? And if so, does that mean only they can see the button or could everyone see it but just not access the content? Thanks |
#2
|
|||
|
|||
You *could* use that feature to control which usergroups can see the Article or Blog tabs, if there were a $show variable that was either true or false. You'd need a plugin to check a user's group and set a variable in $show.
But that only controls the display of the tabs or other navigation elements. It wouldn't stop a user from going there if there's a link somewhere else (or if they know the url). |
Благодарность от: | ||
CaptainAwesome |
#3
|
|||
|
|||
Thanks for the info
|
#4
|
||||
|
||||
you would add our plugin and use the hook location
Code:
load_show_variables Code:
if (is_member_of(vB::$vbulletin->userinfo, 6, 7, 2, 5)) { $show['xxxxx'] = true; } HTH |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|