The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How do you implement varname from new settings in custom php script?
Hello everyone, I have been trying to figure those out on my own for the whole weekend with no avail, I hope someone has some ideas as to what I can do to solve my concern.
I just created my first option for my custom script (first one! ) through debug mode in settings panel in admincp. It's called "Can View Contests" (of new group " Contest Of The Week") and I set the default value to be 6 as the usergroup allowed to view these pages by default. The option also has a varname which I created (oftw_can_view). Aside from the values of the new settings created how I do Implement now this new option into my custom pages? I want to be able to restrict with this option the ability to see these pages of my script to only usergroup 6 (for now by default).?? Please if anyone has any ideas or can shed any light please share. I can control who sees each page by a simple if condition within the php code of each page but I want to be able to control it globally and not have to edit each page every time I want to allow another usergroup. Best Regards, Equinox Hope everyone had a great weekend. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|