Log in

View Full Version : add usegroup via external script


KingPin6
10-01-2007, 11:12 AM
I have an external script which does a few actions when it receives a set of parameters, currently I only know how to add people to the usergrouprequest table, so I have the following :

$vbulletin->db->query_first("INSERT INTO `".TABLE_PREFIX."usergrouprequest` (`userid`,`usergroupid`,`reason`,`dateline`) VALUES ('".$userid."', '32', '".$somedata."', '".$date."')");


so they get added to group #32 request automatically. I would like for them to be added to group 32 automatically instead of requesting it. I tried hitting google and VB.com and vb.org but so far haven't made much progress, any pointers or help is much appreciated.

KingPin6
10-19-2007, 07:03 PM
well I found I can explode and then implode the usergroups with the usergroup added in, but im not very clear on it if anyone has any points I would still appreciate anything u can throw in. than you :)