PDA

View Full Version : Merge Users


iBaker
11-09-2012, 02:40 AM
Hi
I have a need to merge 2 users but not delete one of them after the merge as is currently the default.

So can anyone advise which file contains the function to perform the delete at the conclusion of a user merge so I can simply comment out the delete, run the merge and then un comment the delete part of the function...thanks

kh99
11-09-2012, 02:17 PM
What you're looking for is in admincp/usertools.php around line 1102:

// Remove remnants of source user
$userdm =& datamanager_init('User', $vbulletin, ERRTYPE_SILENT);
$userdm->set_existing($sourceinfo);
$userdm->delete();
unset($userdm);

iBaker
11-09-2012, 08:41 PM
Thanks KH99...so much appreciated

Commented out the delete line, ran the user merge, changed the delete line back and all done

The users were merged without one of them being deleted

Thanks again KH99