PDA

View Full Version : changing passwords / deleting users via the datamanger


ghostrifle
04-03-2007, 08:38 AM
Hi there,

how can I change the password(and or email-address) of a user and how can I delete a user via the datamanger ??

I know how to add a user via the dm.... but not the above two things.

Example for adding a user:
$userdm=& datamanager_init('User', $vbulletin, ERRTYPE_ARRAY);
$userdm->set('username', $username);
$userdm->set('email', $email);
$userdm->set('password', $password);
$userdm->set('usergroupid',2);
$userdm->set('ipaddress', '');
$userdm->set('timezoneoffset', '');
$userdm->set_bitfield('options', 'adminemail', '1');
$userdm->set_bitfield('options', 'showemail', '1');

$newuserid = $userdm->save();

Could someone point me in the correct direction ?? By the way, I don't want to send an email when I change the password (and or the email address)

Bye, Alex

ghostrifle
04-04-2007, 01:47 PM
does no one knows any help for me ??