Page 1 of 1

phpBB WordPress wp_w3all 1.3.8 released

Posted: Sun May 22, 2016 1:29 am
by axew3
1.3.8:
* Fix compatibility with ajax login plugins, ReCaptcha ...
* More very important fixes

About Fix compatibility with ajax login plugins, ReCaptcha on frontend widget and remember me logins ...

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 $_REQUEST array is reset by some of his function, $_POST['rememberme'] 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'] )){
....
}
This very easy feature, can also be added as option on next version for those that like to use in any case an ajax front-end widget that reset $_POST, without editing nothing manually.

Other solution is: use an ajax plugin login widget that DO NOT reset $_POST onlogin.
And there are much more possibility and ways, not only for this feature: i just try tto maintain a line that seem to be to me the more logic at moment adding piece by piece any feature. This line can be changed as necessary and time by time, while features are added to improve the plugin.