The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
change user permission
Hello all,
I'm new in vBulletin programming. I want to change user permssions to access certain forums in my vBulletin via PHP script. I can accept if i can create new user group or even update the permission for each user (Edit Access mask) I've read the manual, searched on the forum for help but i don't find any thing. Can someone helps me how to do that (if possible)? Thanks Ahmed |
#2
|
|||
|
|||
Here's a short test script that adds a secondary usergroup to a user:
PHP Code:
So you could create a user group that adds he necessary permission, then use something like this to add that group to a user as a secondary group. |
#3
|
|||
|
|||
Thank you Kh99 for your reply
But, What i really want is some code (if possible) to create a user group. Best regards Ahmed |
#4
|
|||
|
|||
Can someone help me, or confirm that this is not possible with vBulletin current APIs?
Thnaks in advance |
#5
|
|||
|
|||
It can be done - it's done in admincp/usergroup.php, in the section that starts with
Code:
// ###################### Start insert / update ####################### if ($_POST['do'] == 'update') { That code uses the values submitted from the adminCP usergroup form so you'd have to adapt it. For instance, some of the values are expected to be in $vbulletin->GPC['usergroup'], so you can easily replace that with your own array. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|