WordPress phpBB integration 2.4.0-dev

User avatar
axew3
w3all User
w3all User
Posts: 2061
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: WordPress phpBB integration 2.4.0-dev

Post by axew3 »

Waiting for confirmation, but bug into these mixed external plugin configuration has been resolved. This kind of problems can be easily resolved if will come out for any other front end plugin and into any configuration or different passed vars adding few lines.

The 2.4.0-dev6 will be released soon, or, if no bugs come out while deeply re-testing all things, beginning from a default wordpress, passing by buddypress and then WP MUMS, the new 2.4.0 will be so released.

Even if not all functions have been checked, many bugs, and i think any of the past historical that i can remember, have been fixed in the while.

The dev 2.4.0-dev6 should probably be a valid bug free "Release Candidate", anyway while re-testing all things into various configurations, may more fixes and code reduction will be appplied.

If anybody find out something, would be also useful to know any 2.3.9 bugs if exist, so to check that 2.4.0 resolved it.

Stay tuned lovely and cool people! 2.4.0 is coming soon

User avatar
axew3
w3all User
w3all User
Posts: 2061
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: WordPress phpBB integration 2.4.0-dev

Post by axew3 »

Logging problems and how have been resolved.


!important MEMO LOG (add into wp mums help install):


While deeply testing WordPress as MUMS (multisite) i see there are many problems in the case users are coming from phpBB with usernames like this:
SewreU Yes-_
It is a not possible username on mums, since usernames can only:
"Usernames can only contain lowercase letters (a-z) and numbers."
then in this case, if on WP multisite, the plugin code will detect not possible usernames, and reject any further process for the user in wordpress side. It is a valid username on default WordPress (NO MUMS)

would be possible to resolve this issue on MUMS?
Do not know, we should see, i just see that this problem come out in mums now, not sure if it was the same on previous wp versions (but i assume yes!): if an user coming in wp as logged in phpBB, then the plugin was adding him in Wordpress, despite his username is not suitable for mums.

And a loop for this come out, with no errors: the user is added, the cookie released in wp, but a loop start, and there is no error to start from: the plugin find a valid cookie, set session, wp nullify... loop. No time here, to check and resolve another way, assuming that it would be possible

If you try to login an username like this, despite it exist in wp mums, it return that the user do not exist.
Unknown username. Check again or try your email address.
If you then try to login the user by email, even with integration plugin disabled, the user is logged in at first time, cookie released, but then immediately logged out by wordpress, without any error.

The applied result, both if try to login in WP or coming as phpBB logged in, with illegal usernames will be this:

localhost-wp5-wp-loginMUMS.png
localhost-wp5-wp-loginMUMS.png (31 KiB) Viewed 231 times

User avatar
axew3
w3all User
w3all User
Posts: 2061
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: WordPress phpBB integration 2.4.0-dev

Post by axew3 »

In the few time i can dedicate these days, i deeply tested wp mums in any way several times, by default wp mums, and mums with 2 front end profile plugins, and all seem to work as expected, i have try to cover any found possible problem with easy.

2.4.0 will be by email not username: let explain the point.
Until it was by username, and phpBB setup with the option "Allow username changes:" SET TO NO and "Allow email address re-use:" SET TO NO, when profile update happen, no problem on find out if there is or not another email, associated with another username. An username can never change, both in wp and phpBB.

But since 2.4.0, since functions will search for email, and an email of an user can be updated to something else, then will be impossible to leave users update their email and register into both cms: it is necessary to choose. Registrations and email updates, only in phpBB or WordPress.

Anyway, i think i will start to try out the new 2.4.0 rc1 here online with these mixed setting, that will work fine (i want this way in this example, using phpBB to manage user's registrations):

let register users in phpBB
but disable phpBB profile email update module (so users can register in phpBB, and with "Allow email address re-use:" SET TO NO, and no possibility to update email in phpBB side, i'll be sure that email re-use do not will happen, nor change after registered, and since before to start (or follow) with the users integration, we are sure that username/email pairs are unique, we can be sure all will work as required.

Then i will leave registration in wordpress disabled, but users will have access to their wordpress profile:
where their email can be updated.

This will work nice, and this is the unique possible example on how could be setup the integration, mixing things (could be the contrary, register in wp, do not change email in wp, but allow email change in phpBB, but not registration):

or it is mandatory to choose: registration and email updates, only in wordpress or phpBB side.


Anyway the plugin code, will follow to check for duplicate emails or usernames, when these actions done:
profile updates or registrations, both if updates or users additions done via wp admin, or front end.
This to avoid any possible problem, for common installations. Low cost, so leaved in place.

But these functions can be easily disabled, to little speed up code execution when user's profile updates occurs. So may on some 2.4.0> will be provided the way to exclude some filter/action hook, getting an even more professional integration, that reduce to the very minimum code execution. It will be like to comment out something, but presumably will be provided by option to be activated (so when we really understood how the integration work, and when we are sure all setup/going fine, we'll activate it).

2.4.0 resolve all and any lowercase/upper case problem, that has been possible to occur, when old wp user's transferred from wp to phpBB, when integration start.

It also resolve the problem that an user Tester was treated differently by TesTeR (and may some loop occurring logging in with these users)

The 2.4.0 will be deeply re-tested again now, under default wordpress and into a wp+buddypress, then after all result with no errors and fixed, released ... it will be really soon!

User avatar
DjPorkchop73
User ww
User ww
Posts: 32
Joined: Thu Aug 20, 2020 6:45 pm
Location: Egyptian Valley of Illinois

Re: WordPress phpBB integration 2.4.0-dev

Post by DjPorkchop73 »

Hello!

It has been a few weeks since I last visited due to life getting real busy. I been meaning to try this new update out and test as well. I have a WAMP server setup that I can test on as well. If that sounds good to you I would love to give it a try. I will gladly report what I find and let you know all versions of software the server is running.

Ray
If I could I would. If I don't, it's because I am lazy!

User avatar
axew3
w3all User
w3all User
Posts: 2061
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: WordPress phpBB integration 2.4.0-dev

Post by axew3 »

Hi Ray, just over in the night to fix something and doing some tests
Here in attach, let name it, the RC1, latest i'm over.

It resolve many aspects that have been fixed, especially about usernames and email lowercase/Uppercase, login flows, correct messages when errors occurs etc etc.

Many things changed, i hope that still there are not much errors.
Transfer processes is the part i patched, but without testing it so far, and that i'm sure i have to fix more, so may skip it whenever you have the idea to proceed on it, this part still need to be checked

[attach removed]

User avatar
axew3
w3all User
w3all User
Posts: 2061
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: WordPress phpBB integration 2.4.0-dev

Post by axew3 »

I'm sorry, often is late night when i come on for answers, so i removed the attachment of rc1 because after i've find out many errors and fixes to be applied.
I applied, and while doing, i realized that:
probably, the 2.4.0 will support any phpBB user addition, with any char, and the integration will work for users even if usernames different because ...
i realized a thing that maybe now can result clear, big like the sun ... but i have not think on until now:

IF AN USER IS LOGGED IN, due to login on phpBB or wordpress, then:
THERE IS the phpBB USER ID STORED INTO the PHPBB COOKIE and a SESSION userID


What stupidity, to not think on this before lovely and cool people.
The concept of the resolved problem is about email/usernames pairs that are not matching when an update occur on profile.
With a phpBB id on hands into wordpress side, we can do magic and FAST things when user is logged in!


2.4.0 is coming, little more time to test and fix all based on this concept.
It will be awesome

User avatar
DjPorkchop73
User ww
User ww
Posts: 32
Joined: Thu Aug 20, 2020 6:45 pm
Location: Egyptian Valley of Illinois

Re: WordPress phpBB integration 2.4.0-dev

Post by DjPorkchop73 »

Hello.

I have been very busy in life lately but I just now got the file and am going to install it on my local host server and test it out as best I can. I will be more than happy to report back what I find. ;)
If I could I would. If I don't, it's because I am lazy!

User avatar
axew3
w3all User
w3all User
Posts: 2061
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: WordPress phpBB integration 2.4.0-dev

Post by axew3 »

2.4.0 will support by default, latin and cyrillic, but it can be switched with easy to become compatible with any alphabets.
And should resolve with easy any previous issue.

2.4.0 important considerations are here, please if testing, consider what here reported:
https://www.axew3.com/w3/forums/viewtop ... f=2&t=1598

If integrating leaving users register into phpBB, and leaving phpBB to accept any char for usernames, consider the above, and lately, the fact that an existent username like this in phpBB $£$$%% is NOT added into wordpress, because after sanitized by wordpress, it return an empty value, so the wp user's addition fail, and as code is on this RC1, simply do not add the user nor display any message to him. Going to fix this today.
User's transfers options still needs to be fixed, so please do not consider this part while testing.

2.4.0 change a lot, and if configured as suggested, lead to awesome results, not all immediately arguable.

2.4.0 i'm working on, that will be deeply tested into default wp now, then with buddypress and mums again, is this:

Check LAST POSTS in reply for last development releases

User avatar
DjPorkchop73
User ww
User ww
Posts: 32
Joined: Thu Aug 20, 2020 6:45 pm
Location: Egyptian Valley of Illinois

Re: WordPress phpBB integration 2.4.0-dev

Post by DjPorkchop73 »

So a quick question that has come up;

On most installs people tend to create a new admin WordPress user after the initial install, give the original admins posts and comments to the new admin and then the original admin is deleted from the WordPress system. Is that at all possible with this plugin?

I thought about it originally when I installed the last version on my production site but I never asked. But now I am real curious as I test this new version out.

Oh, for the record here is my test environment stats:

WAMP Server

MySQL: 5.7.28
MariaDB: 10.4.10
php : 7.4
Apache 2.4.41

WordPress 5.5.3
phpBB 3.3.2


Thanks for your hard work on this. I really enjoy using it and getting to test it as well.
If I could I would. If I don't, it's because I am lazy!

User avatar
DjPorkchop73
User ww
User ww
Posts: 32
Joined: Thu Aug 20, 2020 6:45 pm
Location: Egyptian Valley of Illinois

Re: WordPress phpBB integration 2.4.0-dev

Post by DjPorkchop73 »

Please disregard my last post. I actually figured out how to accomplish the task I asked about. As it stands it is not possible to do unless the admin swap is done prior to installing phpBB3. This can be done in any version of this plugin. How silly of me to not realize this. Oops lol
If I could I would. If I don't, it's because I am lazy!

Post Reply