MyBB Community Forums

Full Version: [F] Merged Accounts and Join Date [C-StefanT]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When you merge members it takes the join date of the destination account. I would think it makes more sense to use the oldest date instead. This may or may not be counted as a bug and if not please move into suggestion area instead of bogus please.

Quote:Here you can merge two user accounts in to one. The "Source Account" will be merged in to the "Destination Account" leaving only the destination account. The source accounts posts, threads, private messages, calendar events, post count and buddy list will be merged in to the destination account.

I see nothing about warning that join date might be effected negatively.

Thank you for considering this.
btw also want to mention this makes more sense since if a member has a recent join date and yet you see posts from previous dates you'll wonder how that happened.
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

With regards,
MyBB Group
In admin/modules/users/user.php find:

$db->update_query("users", $updated_count, "uid='{$destination_user['uid']}'");

add after:

// Use the earliest registration date
if($destination_user['regdate'] > $source_user['regdate'])
{
	$db->update_query("users", array('regdate' => $source_user['regdate']), "uid='{$destination_user['uid']}'");
}

Ryan
Excellent...thanks.