To be honest, I actually just want to be able to use the vBulletin API to create users without email addresses. This should be possible, since you can create users without email addresses in the admin control panel.
At the moment, I have this:
PHP Code:
$new_user = &datamanager_init('User', $vbulletin, ERRTYPE_ARRAY);
$new_user->set('username', $user_details['username']);
$new_user->set('email', $user_details['email_address']);
$new_user->set('password', $user_details['password']);
$new_user->set('usergroupid', $m2w_registered_user_group_id);
$new_user->pre_save();
However, if the email is set to "" (IE: an empty string), then an error occurs on $new_user .
How can I get around this?
Thanks,
Nick
--------------- Added [DATE]1241647354[/DATE] at [TIME]1241647354[/TIME] ---------------
I found a somewhat-dirty way of accomplishing this. By setting the user's "adminoverride" value to true, the user's email address isn't validated:
PHP Code:
$new_user->adminoverride = true;
Are there any other ways of accomplishing this?
-Nick