Re: Problem with new registered users
Posted: Sat Apr 29, 2017 11:43 pm
so, could you try out this solution, that maybe will be also added as default to prevent many other situations and also because the logic can be more complete in this way, but not completely.
open file
search for line:
immediately BEFORE add this code:
should work. The user will be activated in phpBB when login the first time WP.
I say it is not a complete solution, in the sense that the user will not be able to login phpBB side, until will not login almost one time before, into WP.
The user need to login almost one time WP to be activated. This will be maybe what an user will d0 99% of cases. In the other case, when will try to login phpBB and will get no result, may will try to login WP side ... maybe
So we can say it is acceptable, and very ok, but not completely ok.
Let know
open file
search for line:
Code: Select all
if ( ! $user_id && $phpbb_user[0]->user_type != 1 ) {
Code: Select all
$wp_urole = implode(', ', $user_info->roles);
if( $phpbb_user[0]->user_type == 1 && !empty($user_info->wp_capabilities) ){ // activate this deactivated phpBB user
$user_email_hash = self::w3all_phpbb_email_hash($user_info->user_email);
$w3phpbb_conn->query("UPDATE ".$phpbb_config_file["table_prefix"]."users SET user_type = '0' WHERE user_email_hash = '$user_email_hash'");
}
I say it is not a complete solution, in the sense that the user will not be able to login phpBB side, until will not login almost one time before, into WP.
The user need to login almost one time WP to be activated. This will be maybe what an user will d0 99% of cases. In the other case, when will try to login phpBB and will get no result, may will try to login WP side ... maybe
So we can say it is acceptable, and very ok, but not completely ok.
Let know