The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Remove user manually using data manager
Need script for removing users from db.
What's wrong ? <?php define('VB_AREA', 'External'); define('SKIP_SESSIONCREATE', 1); define('SKIP_USERINFO', 1); define('CWD', '/blabla/forum'); require_once(CWD . '/includes/init.php'); $user =& datamanager_init('User', $vbulletin, ERRTYPE_ARRAY); $exist = array('userid' => 12345); // 12345 - existing user id in user table $user->set_existing($exist); var_dump($user->delete()); // $user->delete() returns int(0), nothing deleted ?> |
#2
|
||||
|
||||
Did you try looking at how it is done in the admin cp from the user.php page - look under do=delete and then do=pruneuser. I don't think you can delete them through a one line datamanager call as there are too many things to look into when deleting a member.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|