View Full Version : Changing a Users Usergroup?
Deaths
02-19-2005, 11:34 AM
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 :)
Colin F
02-19-2005, 11:54 AM
Could you elaborate a bit on that?
Deaths
02-19-2005, 12:13 PM
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 :)
Guy G
02-19-2005, 01:09 PM
UPDATE user SET usergroupid = 11 WHERE userid = 1
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..
Deaths
02-19-2005, 01:15 PM
Ah, thanks a lot :D.
EDIT:
Ok, I got it to work :).
I'll give you credit in the hack, if you want. (vBMA)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.