The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I'm looking for a small script which adds a user to a by me specified usergroup. (additional usergroup, not the main one)
Help would be appreciated
|
|
#2
|
||||
|
||||
|
Could you elaborate a bit on that?
|
|
#3
|
|||
|
|||
|
Ok.
A user goes to a certain page, and clicks a link. That link will change the user's secondary usergroup to usergroupid 11 (just an example). Hope thats clear enough ![]() That same code, but to change the primary usergroup, I also need
|
|
#4
|
|||
|
|||
|
[sql]
UPDATE user SET usergroupid = 11 WHERE userid = 1 [/sql] you need to run that sql query to change user groups in whatever user you want. just put the variables you need in the right places.. |
|
#5
|
|||
|
|||
|
Ah, thanks a lot
.EDIT: Ok, I got it to work .I'll give you credit in the hack, if you want. (vBMA) |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|