The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Creating Permissions using the plugin system
I made a product that creates a template and options in vbulletin options, I want it to set a permission option in the vbulletin options where the user could enter the usergroup id/ids that they want access to the page.
I'm a newbie at writing Plugins and product and self thought and its pain sometime when you are teaching yourself. Thanks! |
#2
|
||||
|
||||
I would suggest using bitfields instead,( see https://vborg.vbsupport.ru/showthrea...eld+permission ).
But if you insist on using $vbulletin->options do like so: In your template html: <If condition="is_member_of($bbuserinfo, 5)"> You are admin... So cool you are! <Else /> No coolness for you! </if> |
#3
|
||||
|
||||
Quote:
I got it to work, now I have a question. How could I get the no permission default window to pop up when a usergroup is denied? Finially got it all together. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|