The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
DataManager: How to delete a user based on userid ?
Hello,
How can we manually delete a user using the DataManager? We are looking for a function that replicates deleting a user from the AdminCP, but that does it manually using the DataManager and a given userid. Note that we do NOT wish to delete all the user's posts (I believe vB converts all deleted users posts to Guest Posts when deleting within the AdminCP, and we want to mimic that behavior). Please advise. Thanks! |
#2
|
|||
|
|||
If you look in admincp/user.php in the section that starts
Code:
// ###################### Start Kill ####################### if ($_POST['do'] == 'kill') { you can see that it just creates a User datamanager, sets the existing info, then calls delete(). The only other thing it does before that is to check for (social) groups owned by that user and transfers ownership to the admin doing the deleting. |
#3
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|