1.8.5 release!

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1 MiB.

Expand view Topic review: 1.8.5 release!

Re: 1.8.5 release!

by axew3 » Thu Mar 22, 2018 4:24 pm

Why you do not want let users login also via phpBB? ... by the way
you speak about phpBB login, so you can't achieve this via a WordPress plugin only, without adding code into phpBB also.
The effective way that will work with easy, without exploring more complicate and not effective ways ...

Same concept is here explained, but this is a good solution if you want let users login in phpBB, then redirect to WordPress:
Add user at same time into WordPress when register/login in phpBB side

But you want a redirect before, when user try to login in phpBB should be redirected to WP login.
This can be achieved with easy in two ways: pure Javascript or pure Php. Maybe both.

Javascript/jQuery:
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 -->
add the follow:

Code: Select all

<script type="text/javascript">
$(".quick-login").click(function(){
 window.location.replace("http://localhost/wp49/wp-login.php");
});
if(window.location.href.indexOf("mode=login") > -1) {
 window.location.replace("http://localhost/wp49/wp-login.php");
 }
</script>
change http://localhost/wp49/wp-login.php with the url you want to point to and remember to recompile the phpBB template.
First instruction:
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 (link your forum if not work and you can't get the name of this class), will be redirected to the assigned url.
Second instruction:
if the url point to upc.php with a var mode set to login, then redirect to the assigned url.

Now all this is very nice until Javascript is enabled on browser, while will have no effect if js is disabled. Then there are more, really several and elegant ways to force the correct redirect in any case.

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: like the second instruction js solution do, it 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 leaving the quick login form in place you can 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 just the above code will be sufficient for you.

Re: 1.8.5 release!

by Lantern » Thu Mar 22, 2018 1:02 pm

Hi axew3 thanks for the update.

I have still the problem that users directly login on http://www.<website>>/phpbb instead of http://www.<website>
i tried to make a redirect on my webserver (IIS) but that does not work very well. Is there a way that i can force users only to login on http://www.<website> page? or can this be build in the plugin? (long shot)

Keep up the good work !

Re: 1.8.5 release!

by axew3 » Tue Mar 20, 2018 4:15 pm

Ok boys, another time thank to @drauth, we go to make this 1.8.5 a stable release:
Test 1: Let's say I have a user session in WP and phpBB as User1. Then I go to the phpBB forums and log out. The user is correctly logged out on both WP and phpBB.

Test 2: I have a user session in WP and phpBB as User 1. I go the the phpBB forums and log out of User1's account. I immediately log in as User 2. When I go to WP, the admin bar still shows me as User1. However, immediately I click any link (so on the second page of my WP session) it then resets and correctly shows me as User2 in the admin bar. No damage can be done, but it's a very short inconsistency. I was wondering your thoughts on this?
class.wp.w3all-phpbb.php has been patched to fix also this issue, and now we can be quite sure, that all login/additions/logout flows are working fine.
https://plugins.trac.wordpress.org/expo ... -phpbb.php
replace it on folder:
/wp-content/plugins/wp-w3all-phpbb-integration/

1.8.5 at date of this post reply, can be defined a stable release.

1.8.5 release!

by axew3 » Tue Mar 20, 2018 9:08 am

Code: Select all

= 1.8.5 =
*Release Date - 20 Mar, 2018*
* Fix correct logout of user in WordPress, when logout done in phpBB side.
* Fix correct redirect of the user onlogin WordPress or adding/user/onlogin to proper page.
* Thank to @drauth bugs reports, all these reported issue have been now resolved and all should work very fine.
* Minor fixes.
Thank to @drauth bugs reports, all these reported issue have been now resolved and all should work very fine.
so ... please report if any bug!

All aspects of login/out/additions flow on both side have been tested working fine now.

Top