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:

Re: WordPress phpBB integration 2.4.0-dev

Post by axew3 »

Detected bugs:

1) The transfer process is not working fine when transferring users from wp to phpBB.
2) The phpBB ban function need to be fixed to work faster and more precise.
3) If an user is logged in phpBB with another username, and at same time as another in wp on different tabs, users follows as logged into both as different.
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!
all assertions on prev post should be now covered

test following these rules:
https://www.axew3.com/w3/forums/viewtop ... 4933#p4933

The w3_phpBB ban function has been fixed, to be executed fully, and not skipped in certain cases
It has not been really optimized, anyway now, run just the strict necessary, once, and just in time when required.

The main verify_credentials query has been shorted and the ban check, if presenting session, will check only for an explicit ban due to email or username phpBB ban, not for IP. The complete ban check, is instead done when user login on WP. A message will display (on both cases) informing about ban. It could return exactly the reason of the ban, anyway at moment, like before, it return a generic ...username, email or ip are banned into our forum... message

let's go with
w3all-phpbb-integration 2.4.0 RC3 3
released more below
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 »

Wrong 1 line addition, on last rc3 leads to a loop in the case usernames mismatch.
So when it should work fine for users with different usernames, it will lead to a loop.
RC3 3 is coming within today
also wp to phpBB transfer need to be fixed since adding users in phpBB not belonging to any users group
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 »

Just changed three lines on class.wp.w3all-phpbb.php
leading to a loop when usernames mismatching.
The correct code look like this. Now all works smooth, when an user come into wordpress, and his wp email do not match the one presented by another possible phpBB session, due to a login in phpBB, may done into another browser's tab

Code: Select all

if( $current_user->user_email != mb_strtolower($phpbb_user_session[0]->user_email,'UTF-8') ){
    wp_destroy_current_session();
    wp_clear_auth_cookie();
    wp_set_current_user( 0 );
}
....
w3all-phpbb-integration 2.4.0 RC3 3


also adjust the user's transfer to phpBB, since was adding users into phpBB, belonging to no group at all, due to commented instructions for debug leaved in place, sorry!

To test and use 2.4.0, remember that you have to follow these rules: https://www.axew3.com/w3/forums/viewtop ... 4933#p4933

w3all-phpbb-integration 2.4.0 RC3 4
released more below on this topic
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 »

Fixes for main verify_credentials, and more errors fixed all around, still there is something to adjust into a query about mchat.
The code has been shorted again, and all should be now quite ready

w3all-phpbb-integration 2.4.0 RC3 4

wp-w3all-wordpress-to-phpbb-install-and-how-to



Attachment removed: RC3_5 PRE RELEASE has been published here in reply!
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 »

Hey!
This is RC3_5 cleaned UP and now all fixed, except for a specific option that only affect mChat integration.

Ready to welcome 2.4.0!?

Php8> ready, WP5.6> ready
, Cyrillic usernames ready, and ready to be used into any other than Latin chars with easy and few changes.
Should fix all, and any front-end plugins logins and profiles custom pages profile updates flows, when they respect default WP hooks rules, and/but most of the times, even when not.

READ:
https://www.axew3.com/w3/wp-w3all-wordp ... nd-how-to/

and may this
phpBB WordPress 2.4.0 integration: 1001 ways, 1001 logs - how to

which will be increased with examples and explains
Locked