by axew3 » Mon Mar 06, 2017 10:31 pm
ok we should resolve with this, many things at once.
Open wp_w3all.php file
search for lines:
Code: Select all
// stuff about profile changes WP to phpBB
add_action( 'profile_update', 'wp_w3all_up_phpbb_prof', 10, 2 );
add_action( 'user_register', 'wp_w3all_phpbb_registration_save', 10, 1 );
add_action( 'delete_user', array( 'WP_w3all_phpbb', 'wp_w3all_phpbb_delete_user' ) ); // todo // just deactivated on phpBB, when deleted in WP
immediately after,
and before the char }
add the follow:
Code: Select all
add_action( 'set_logged_in_cookie', 'w3all_user_session_set', 10, 5 );
function w3all_user_session_set( $logged_in_cookie, $expire, $expiration, $user_id, $scheme ) {
$user = get_user_by( 'ID', $user_id );
$phpBB_user_session_set = WP_w3all_phpbb::phpBB_user_session_set_res($user);
return;
}
This should resolve really many things at once: it will be added on 1.6.5.
ok we should resolve with this, many things at once.
Open wp_w3all.php file
search for lines:
[code] // stuff about profile changes WP to phpBB
add_action( 'profile_update', 'wp_w3all_up_phpbb_prof', 10, 2 );
add_action( 'user_register', 'wp_w3all_phpbb_registration_save', 10, 1 );
add_action( 'delete_user', array( 'WP_w3all_phpbb', 'wp_w3all_phpbb_delete_user' ) ); // todo // just deactivated on phpBB, when deleted in WP
[/code]
immediately after, [b]and before the char }[/b]
add the follow:
[code] add_action( 'set_logged_in_cookie', 'w3all_user_session_set', 10, 5 );
function w3all_user_session_set( $logged_in_cookie, $expire, $expiration, $user_id, $scheme ) {
$user = get_user_by( 'ID', $user_id );
$phpBB_user_session_set = WP_w3all_phpbb::phpBB_user_session_set_res($user);
return;
}[/code]
[size=120][b]This should resolve really many things at once: it will be added on 1.6.5.[/b][/size]