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 :
PHP Code:
$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.