Well we need to make it take the username and pass from the Mybb_users tbale instead of Adopt_users table. We then need it to take the salt from the database where the UID = the one we want. Then it needs to add the salt to the password we enter, and encode it in MD5. Then it matches that to the Password string in the Mybb_users table :D
So, Im guessing in login.php:
This:
PHP Code:
$password = md5($password);
should become this:
PHP Code:
$salt = "SELECT salt FROM mybb_users WHERE username = '$username'";
$password = md5($salt.($password));