wp_w3all 1.3.8 and Ajax frontend login widgets plugins
Posted: Sun May 22, 2016 10:44 pm
About Fix compatibility with ajax login plugins, ReCaptcha on frontend widget and remember me logins: from 1.3.8 >
Easy explain :
If login is done by an ajax plugin via his front-end widget and not via wp-login.php classic wp login page, and the $_POST array have been reset by some of his function, $_POST['rememberme'] var will be empty onlogin: so the function phpBB_user_session_set() on wp_w3all will never set a remember me cookie for phpBB.
Unique solution in this case, for those that like to use by the way an ajax front-end widget that maybe reset $_POST, is to comment, on wp_w3all function phpBB_user_session_set() inside file class.wp.w3all-phpbb.php, the two instructions that start with:
Will be added as option on next versions for those that like to use in any case an ajax front-end widget and that reset $_POST, without editing nothing manually. If any help needed in the while, just post.
Easy explain :
If login is done by an ajax plugin via his front-end widget and not via wp-login.php classic wp login page, and the $_POST array have been reset by some of his function, $_POST['rememberme'] var will be empty onlogin: so the function phpBB_user_session_set() on wp_w3all will never set a remember me cookie for phpBB.
Unique solution in this case, for those that like to use by the way an ajax front-end widget that maybe reset $_POST, is to comment, on wp_w3all function phpBB_user_session_set() inside file class.wp.w3all-phpbb.php, the two instructions that start with:
Code: Select all
if (! empty( $_POST['rememberme'] )){
....
}