We are using novastar's hack as mentioned above and it's working fine. However, adding users is one thing, updating is another .. which brings me to my next question:
Will this work to actually "update" an existing user, all we're trying to do is update an existing user in the forum to a new usergroup:
PHP Code:
$userdm = new vB_DataManager_User($vbulletin, ERRTYPE_ARRAY);
$userdm->set('username', $_POST['username']);
$userdm->set('usergroupid', "9");
$userdm->set('displaygroupid', "9");
$forumuserid = $userdm->save();
But before I execute and implement that code above, I just want to make sure this won't actually "insert/register or create" a user, I would like to just update.
Any clues? is there a $userdm->update(); instead of save? I noticed a pre_save() option and now it's got me a bit curious
Thanks in advance!
Okay I did some more reading.. would someone be able to verify the following code:
PHP Code:
$forumuserid = 10;
$userdm = new vB_DataManager_User($vbulletin, ERRTYPE_ARRAY);
$existing = array(
'userid' => $forumuserid,
'usergroupid' => 9,
'usertitle' => 'Licensed Member',
'customtitle' => 1
);
$userdm->set_existing(&$existing);
$userdm->save();
TIA