It was exactly the problem.
It can be solved in this way:
Open file
ext_plugins_fixes.php on folder
wp-content/plugins/wp-w3all-phpbb-integration/addons/
search for this line:
Code: Select all
function wp_w3all_detect_login(){
global $w3all_check_ext_login, $w3all_uap, $phpbb_k_val_yn;
immediately after add this:
Code: Select all
// pre check for others login plugins like Userpro ... that may reset also the post array
$phpbb_config = WP_w3all_phpbb::wp_w3all_phpbb_config_init();
$u = $phpbb_config["cookie_name"].'_u';
if ( is_user_logged_in() && !isset($_COOKIE[$u]) OR is_user_logged_in() && $_COOKIE[$u] < 2 ) {
$current_user = wp_get_current_user();
WP_w3all_phpbb::phpBB_user_session_set_res($current_user);
//wp_redirect( get_edit_user_link() );
wp_redirect( home_url() . '/profile' );
exit;
}
// END pre check
Save.
NOTE: users are redirected to there profile after login, as the code is, to get the login work ok.
NOTE: default admin (and maybe others admin users, i’ve not try out) can’t login from Userpro login. While they can login ok, through wp-login.php default login or wp_w3all login widget. I’ve not investigate in deep the reason why of this different behavior on users roles and userpro plugin. But they can, as others, after the login, edit there profile on UserPro.
More custom fields updated on phpBB, need to be added to the code in case.
It was exactly the problem.
It can be solved in this way:
Open file [b]ext_plugins_fixes.php[/b] on folder [i]wp-content/plugins/wp-w3all-phpbb-integration/addons/[/i]
search for this line:
[code]function wp_w3all_detect_login(){
global $w3all_check_ext_login, $w3all_uap, $phpbb_k_val_yn;[/code]
immediately after add this:
[code] // pre check for others login plugins like Userpro ... that may reset also the post array
$phpbb_config = WP_w3all_phpbb::wp_w3all_phpbb_config_init();
$u = $phpbb_config["cookie_name"].'_u';
if ( is_user_logged_in() && !isset($_COOKIE[$u]) OR is_user_logged_in() && $_COOKIE[$u] < 2 ) {
$current_user = wp_get_current_user();
WP_w3all_phpbb::phpBB_user_session_set_res($current_user);
//wp_redirect( get_edit_user_link() );
wp_redirect( home_url() . '/profile' );
exit;
}
// END pre check[/code]
[b]Save.[/b]
NOTE: users are redirected to there profile after login, as the code is, to get the login work ok.
NOTE: default admin (and maybe others admin users, i’ve not try out) can’t login from Userpro login. While they can login ok, through wp-login.php default login or wp_w3all login widget. I’ve not investigate in deep the reason why of this different behavior on users roles and userpro plugin. But they can, as others, after the login, edit there profile on UserPro.
More custom fields updated on phpBB, need to be added to the code in case.