Log in

View Full Version : How do I merge an admin into another member and not delete the origianl admin account


indiamike
05-13-2006, 03:52 PM
Okay here is the scenario-

I have user number the admin account and I wish to move all of the posts to another account so a new person can takeover as the admistrator (I am retiring) and want to be able to merge the accounts without the main account (member #1) getting deleted.

I have looked at the source code of usertools.php and it looks like if I just edit out the lines
// Remove remnants of source user
$userdm =& datamanager_init('User', $vbulletin, ERRTYPE_SILENT);
$userdm->set_existing($sourceinfo);
$userdm->delete();
unset($userdm);



that I will be able to merge the accout and not have the origianl account deleted.

Does this look right? Or is there another method? I cannot do a backup and it's very urgent since I am switching owners.

Thanks in advance.

Mike

Paul M
05-13-2006, 03:55 PM
Maybe I'm missing the point, but why do you want to move the posts to another account but not delete it, what harm will deleting it do ? (for that matter, why not merge the other way, merge the other account into your account).

Marco van Herwaarden
05-13-2006, 04:08 PM
Just rename the current Admin account.

indiamike
05-13-2006, 04:32 PM
Maybe I'm missing the point, but why do you want to move the posts to another account but not delete it, what harm will deleting it do ? (for that matter, why not merge the other way, merge the other account into your account).

I am selling my site and the new owner want's user 'number one' as his account and I am leaving but want to keep my posts under another account name for so they can archive and still view the information.

It's no problem switching the username but its a problem merging the threads into another account without deleting the admin account. So looking at the usercptools.php if I comment out those lines can I still merge it without it being deleted.

Marco van Herwaarden
05-13-2006, 05:02 PM
Why he wants userid=1??

It is just an internal number with no meaning.