OK, here is the fix: (I updated the installer, but here is all you need to change.)
In the original install file, it says:
Code:
Find: (About Line: 330)
$DB_site->query("UPDATE " . TABLE_PREFIX . "user SET $newpassword $newemail usergroupid = " . intval($bbuserinfo['usergroupid']) . " WHERE userid = $bbuserinfo[userid]");
Replace With: (Make sure your "Awaiting Email Confirmation" usergroup id is equal to 3)
//Start Save Prior Email v1.0 // Written By: Glenn H. Shelton III
$DB_site->query("UPDATE " . TABLE_PREFIX . "user SET $newpassword $newemail $oldemail usergroupid = " . intval($bbuserinfo['usergroupid']) . " WHERE userid = $bbuserinfo[userid]");
//End Save Prior Email v1.0 // Written By: Glenn H. Shelton III
But Now it reads:
Code:
Find: (About Line: 330)
$DB_site->query("UPDATE " . TABLE_PREFIX . "user SET $newpassword $newemail usergroupid = " . intval($bbuserinfo['usergroupid']) . " WHERE userid = $bbuserinfo[userid]");
Replace With: (Make sure your "Awaiting Email Confirmation" usergroup id is equal to 3)
//Start Save Prior Email v1.0 // Written By: Glenn H. Shelton III
if ($bbuserinfo['usergroupid'] != 3)
{
$DB_site->query("UPDATE " . TABLE_PREFIX . "user SET $newpassword $newemail $oldemail usergroupid = " . intval($bbuserinfo['usergroupid']) . " WHERE userid = $bbuserinfo[userid]");
} else {
$DB_site->query("UPDATE " . TABLE_PREFIX . "user SET $newpassword $newemail usergroupid = " . intval($bbuserinfo['usergroupid']) . " WHERE userid = $bbuserinfo[userid]");
}
//End Save Prior Email v1.0 // Written By: Glenn H. Shelton III
@Bob: At this point it only stores the last confirmed email address. If there is enough of a request to store all email addresses of a user I will look into it. But the way it is now, once they confirm their account to post you know it is a valid email. When they change it the first time the "known good" email address is moved to the "emailold" spot and the new email is stored. If that account is not ever confirmed then the "known good" email stored in "emailold" will not be overwritten. If it is confirmed, it will over write the old "known good" with the new "known good" when they change it again.
Keep the feed back coming.