The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Permissions based on non vB-setting?
Hey!
I have a problem where i need to assign permissions based on a value in a user field (a membership ID number). The ID is at the moment checked towards an external database. If the ID is good I assign a Session value that gives access to certain forum IDs. For this I've written a PHP plugin, and a simple template based <if> statement). But I would like to know if I can assign a user a certain Usergroup IF the given ID is good. That way I can create a usergroup that is allowed access to a forum based on the built in vBulletin permissions settings. This gives me a better overall control. Because right now the posts in a forum is still shown in Get new posts and other locations. Not until users click on the thread they are given the Message that they need to be authorized in order to view the thread / post in question. I hope someone here knows what I mean and have a solution for me. |
#2
|
|||
|
|||
If I understood it:
First, create an usergroup in vBulletin that has the priviliges you want. Then (I assume you're checking aganist valid id in your script), do your checking. If it's valid go like this: PHP Code:
You can check the member group id in CP, under Usergroups -> Usergroups manager. Remember that you will need to connect to database which vBulletin forum is using, otherwise code will not work. |
#3
|
||||
|
||||
Thank you, that was what I was looking for. I've tuned the details for my needs.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|