phpBB WordPress integration extension v2

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

phpBB WordPress integration extension v2

Post by axew3 »

The (awesome) w3all phpBB WordPress extension v2

Should work into any Php 5.6> and phpBB 3.2 or >
Anyway it has been coded/tested under Php 8.1 and (last release at date of this post) phpBB 3.3.9. Also fix bug on previous (versions) about unwanted redirect to WP, sometime firing when an user's session was renewed, and redirect option was active.

If the URL setting is not set, the extension only will work to update email/password/Url and (if option active) to check if the email exist in WP, before to update/register an user in phpBB.

- If already installed a previous version, disable it, delete the extension's data into ACP, then delete the old phpBB Wordpress extension folder phpbbwordpressintegration into

Download the new version

Copy the folder w3all with inside the extension phpbbwordpress
into the root phpBB ext folder, so you'll have:

Go to ACP -> Customise and enable the extension
Go to ACP -> Extensions phpBB WordPress settings and setup db connection values and options.
Note that if you set wrong DB connection values, on saving settings you'll get phpBB db error. In case, just return back with your browser and setup correct db connection values.

What it do?
When an user email will be updated, the same will happen for the same user with same old user email in WordPress. Both ACP and UCP.
Same goes for password and profile URL option.
Also, when an user register(and option active) the user will be added at same time into WordPress, if used in conjunction with the WordPress wp-w3all-phpbb-integration plugin: ... tegration/

Note that redirects options DO NOT need to be activated if the phpBB display as iframed into a WP page by using the template integration options. As result (and obvious) you'll get a WP iframe loaded into a WP page when a redirect happen.
This will be easily fixed on next versions, detecting if the phpBB is loaded into an iframe.

Out of the contest of this topic, may worth to mention that as soon the user will login into the iframed phpBB and the phpBB auth cookie is released, the added overall_footer JS code (iframe integration) will cause the parent WP forum page reload: so at this time the user that do not exist into WP will be automatically added (and logged) into WordPress (even without this extension installed into phpBB).

Note also that the value of the option URL to WordPress, require the final trailing slash / if the integration extension is used to add users in WP when they register in phpBB because the option is active.
https://localhost/wp/ or https://localhost/wp/mypage/ -> OK
https://localhost/wp -> NOT Ok, will not work (WP will not get/process the cURL POST request from phpBB)


Download phpBB extension:
(23.35 KiB) Downloaded 142 times

Follow read more below *
ACP_phpBB WordPress integration.png
ACP_phpBB WordPress integration.png (75.87 KiB) Viewed 1299 times

*What it change into my phpBB?
Nothing, it only update user's data and execute redirects or cURL calls to WordPress (it depend by activated options you'll use) when required.
*Is it secure?

*Note: you could choose to not activate the option that will add user's in WP as they have been registered in phpBB. You could just use the redirect after login. A logged in phpBB user that visit WP and that do not exist in WP, will be added "on fly" into WordPress by the (if installed into WP) WP_w3all WP phpBB plugin.