![]() |
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 |
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. |
Thank you Kh99 for your reply
But, What i really want is some code (if possible) to create a user group. Best regards Ahmed |
Can someone help me, or confirm that this is not possible with vBulletin current APIs?
Thnaks in advance |
It can be done - it's done in admincp/usergroup.php, in the section that starts with
Code:
// ###################### Start insert / 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. |
All times are GMT. The time now is 10:53 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:
|