The same concept is here explained, but this is a good solution if you want let users login in phpBB:
Add user at same time into WordPress when register/login in phpBB side
You want a redirect before that the user try to login in phpBB, and should be redirected to WordPress login,
open your overall_footer.html
maybe just after this line to make it simple (but would be better on overall_header.html file for the second instruction, by the way it work fine also as is)
Code: Select all
<!-- EVENT overall_footer_body_after -->
Code: Select all
now when an user click on the quick login form fields, assuming your theme use as class name the default one, to wrap the quick login form, so quick-login (if not change with your class name) will be redirected to the assigned url.
if the url point to upc.php with a var mode set to login, then redirect to the assigned url.
this problem resolved via php, let with a quick login problem: with js, and the above code, when user go to click into quick login form pass or username field to digit his credentials, then will be redirected before he click on login button and possibly before he start to digit, to the proper page.
Via php it is not possible the same result in same way: like the second instruction js solution do, php can only detect when the page will load successively that is the ucp.php page and that point to login (when user will click into login button).
Then in this case: remove the quick login form from template OR leave the quick login form in place and get the result editing on template file, the quick login html form to point to the login url in wp, passing correct vars names as wp expect to receive.
I stop here at moment, and hope this will be sufficient clear! In effect it is rare that js have been disabled on browser, so may this will be sufficient for you.