![]() |
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! |
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> |
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. |
All times are GMT. The time now is 05:38 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|