WordPress phpBB integration 2.4.0-dev

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

WordPress phpBB integration 2.4.0-dev

Post by axew3 »

The integration plugin 2.4.0-dev0 2.4.0-dev01 2.4.0-dev02 2.4.0-dev03 here in attach has been tested fully working into default WordPress, WP MUMS Multisite and Buddypress.

Many fixes have been applied, and the code has been "stressed" and seem to work fine. Any possible scenario tested? I've try to cover in short all the possible, but of course it is required "more stress" to be sure that there are no bugs, and so if there is any brave around that like to test and in case report problems on the new 2.4.0-dev would be really appreciated.

Short how to use, that need to be translated into a new detailed Install Help Page

Since 2.4.0 release it is mandatory:

users can register into phpBB OR WordPress, you have to choose, it is not possible anymore to let register users both in WP and phpBB. It is possible to change and switch to one or other way anytime.
AND
users can update their email, ONLY in WordPress profile OR phpBB profile.

If you leave users update their email and register into phpBB
, then you'll have to take care of the fact that wordpress users DO NOT need to be allowed update their email and register in Wordpress.
If you let users register in phpBB, setup into phpBB ACP options to do not allow users re-use email or usernames for different accounts.

If you leave users update email and register in WordPress, then you have to avoid the same in phpBB, and to do this, just go to
ACP -> TAB System -> User Control Panel -> click into Profile -> Edit account settings, click into Disable to disable the user's account settings module. Then the Edit account settings , where it is possible to update user's email and password in phpBB ucp will not be accessible (while all the rest of phpBB profile options will be still available to phpBB users). Disable new registrations in phpBB, and you're up and running.

Based on this, someone could choose to hash passwords in phpBB way or WordPress way. Hints are on same option, into the integration plugin admin page. phpBB way used until now, and it is the default.

Default page-forum.php for the iframe mode has been updated, because the user ID1 in WP and UID2 in phpBB are not linked anymore, so a fix for this user, whenever he goes to navigate the forum in iframe mode, has been necessary. The old one will work fine for all users, but not for UID1 WP & UID2 phpBB, or they will fall into the "famous refresh loop" while visiting wp page-forum as logged in phpBB or WP.

new 2.4.0-dev03 release

Check LAST POSTS in reply for last development releases

Please add here in reply and bug found, reporting: environment, running plugins, and steps to reproduce the issue
pennymachines
User www
User www
Posts: 78
Joined: Mon Feb 06, 2017 9:51 pm

Re: WordPress phpBB integration 2.4.0-dev

Post by pennymachines »

Fantastic news. Thank you for integration 2.4.0, and for continuing to improve and develop this very useful plugin.

I just installed 2.4.0-dev0, checked my settings and tested on my MUMs setup. All seemed to go well, but I could no longer log into WP admin.
I'm not sure if this was caused by the plugin or something else. I reset the WP admin password and logged in, but was not logged into phpBB. I then went into phpBB admin and reset the password to make sure it was identical.

Currently I have to log in to phpBB and WP separately. Other users tested seem fine.

I still have issues with allowing users to register from the frontend (using Profile Builder plugin). The user account is created successfully in WP and phpBB and they can actually log on. (This was never possible in the previous integration versions. It always came up 'wrong username or password'). However, unfortunately, as soon as the user logs out the old problem returns. They cannot log back in again.

I appreciate that as I am using plugins to give my users a purely frontend experience of Wordpress, this may be beyond the scope of WP w3all. I'm willing to pay if this is something you think could be fixed.
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: WordPress phpBB integration 2.4.0-dev

Post by axew3 »

Hello David! Nice to listen news by you!
Currently I have to log in to phpBB and WP separately. Other users tested seem fine.
Yes! As said above the User ID1 in wordpress and phpBB user ID2 are NOT linked anymore.

And it is also mandatory the email update OR in phpBB OR WP, like the registration, only in phpBB or WP.
If on phpBB, setup option to not allow users re-use email or usernames for different accounts.

I will check any point you reported.
Yes i know about frontend, it seem to not fire with normal wp hook events, for example:
into mums, if you let register users in phpBB, then they are added in wp when they login or when as logged in phpBB, they will visits wp side.
It work all fine, by email or username using default wp login.
It do not work, if the user login in wp and need to be added. It return user do not exist, the hook related default wp login hook, do not fire.
Checking any aspect for 2.4.0-dev1 that will be finished surely before this week, so i will return here to report good news!
Please report if any problem in the while!
See you soon!
pennymachines
User www
User www
Posts: 78
Joined: Mon Feb 06, 2017 9:51 pm

Re: WordPress phpBB integration 2.4.0-dev0

Post by pennymachines »

axew3 wrote: Fri Oct 16, 2020 12:29 am Yes! As said above the User ID1 in wordpress and phpBB user ID2 are NOT linked anymore.
OK, understood. I guess that's not a problem then.
axew3 wrote: Fri Oct 16, 2020 12:29 am And it is also mandatory the email update OR in phpBB OR WP, like the registration, only in phpBB or WP.
I only allow email update and registration through WP, so I have those features turned of in phpBB, as instructed.
axew3 wrote: Fri Oct 16, 2020 12:29 am Yes i know about frontend, it seem to not fire with normal wp hook events, for example:
into mums, if you let register users in phpBB, then they are added in wp when they login or when as logged in phpBB, they will visits wp side.
It work all fine, by email or username using default wp login.
It do not work, if the user login in wp and need to be added. It return user do not exist, the hook related default wp login hook, do not fire.
I'm not sure I'm understanding this. My users register and log in via WP. The weird thing is, it now works fine UNTIL they log out. Then they cannot log back into WP or phpBB.
pennymachines
User www
User www
Posts: 78
Joined: Mon Feb 06, 2017 9:51 pm

Re: WordPress phpBB integration 2.4.0-dev0

Post by pennymachines »

I think I found a bug.

When creating a new user via admin subsite of mums I get this error:

Fatal error: Uncaught Error: Call to undefined method WP_w3all_phpbb::phpBB_password_hash() in ..../wp-content/plugins/wp-w3all-phpbb-integration/wp_w3all.php:937 Stack trace: #0 ..../wp-includes/class-wp-hook.php(287): w3all_wpmu_activate_user_phpbb(3236, 'jy7zgTxIUQQm', Array) #1 ..../wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #2 ..../wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 ..../wp-includes/ms-functions.php(1219): do_action('wpmu_activate_u...', 3236, 'jy7zgTxIUQQm', Array) #4 ..../wp-admin/user-new.php(199): wpmu_activate_signup('6494a31e0759861...') #5 {main} thrown in ..../wp-content/plugins/wp-w3all-phpbb-integration/wp_w3all.php on line 937
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: WordPress phpBB integration 2.4.0-dev0

Post by axew3 »

Perfect thank you! going to test/fix ... already detected someone else important and resolved this afternoon, if all will goes fine on next 2 3 hours of coding here, tomorrow we can start testing 2.4.0-dev2, and all about wp mums should be fixed already, also about front end plugins used on it.
Testing on wp-user-frontend, last installed for tests last time.
Think with the new way to manage users login, will fix all in one definitively! Let see ...

p.s do you think would be better to add users to all blogs when they register, or just in one?
Especially, when integration used via phpBB registration side: when user come to login in wo or as logged come to wp, should be added like now, only into the first visited blog or to all network sites?
Or also when user register into wordpress, offer same option: add new users to all network or not.
Should provide option maybe about this, may to be added like the define into wp-config, when in mums.

Exist a plugin that do this, that can be associated with no problems, anyway asking myself if would be better to add this easy feature, already embedded, may not with all features of the other plugin, but just: add new users to all sites network, or just to the first visited or registered site, like is now
Locked