Page 1 of 1

phpBB WordPress - phpBB integration extension. The integration unchained

Posted: Wed Mar 17, 2021 8:17 am
by axew3
To always download the last updated version
go here

https://www.axew3.com/w3/2022/02/phpbb- ... extension/




The following is obsolete

Here we go lovely and cool people.

This is the phpBB WordPress Integration Common Tasks extension.

Any kind of features will be added to it along the time.
Fast and light. Can be used also as standalone.

At this first stage/release, it will accomplish easily with this:

when an user update his email in phpBB profile, password or site url in phpBB ucp or acp, the same will happen into the linked WordPress, for the WordPress user with same email.

How to use/configure it?

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

Open file:
/ext/w3all/phpbbwordpressintegration/custom/wp_dbconfig.php
add WordPress db connection values of the WordPress database you want linked with phpBB.
Save the file.

Activate the extension.

Now, when an user or an admin, will go to change/update email or password or profile url in phpBB, the same, for the same user with same email, will happen into WordPress. This, as can be argued, change all about integration. Users can now again register (but note that actually this code do not add the user immediately into wp when register into phpBB, it will be added on next coming soon 1.0.1, so user will be added into wordpress only when will visits as logged or will login into wp (if the integration plugin is active)) login and update profile email and password, both in phpBB or WP at same time, and without leaving the wordpress admin with obscure situations about users, if the integration let users register/update into phpBB (so that user's info aren't updated into WP until the same user do not visits as logged, or login, into WordPress). This aspect is now completely surpassed and we can move to the next step.

This is the first version, the next coming very soon, will add the capability/options to add the user into wordpress as soon the user register in phpBB (without any redirect to wordpress) or will add only when the user will activate his phpBB account. It will add add also the autologin when user confirm. Activation/deactivation at same time. User's deletion, and much more (all what it is possible to imagine).

The phpBB WordPress extension, will allow to simplify again and much more, the WP_w3all plugin and move to unexpected and awesome integrations results. Fast and Easy integrations of any kind.

An admin will not have to care about nothing. Users will be ever correctly linked and managed behind the scene, with easy.

Are you ready to unchain phpBB WordPress integration? Here we go!

NOTE: version 1.0.1 has been released. It can work like version 1.0.0 as standalone and add more options. To activate options about user addition in WordPress (with or without redirect), it require WP_w3all plugin version 2.4.5 > installed into WordPress:
viewtopic.php?p=5347#p5347



This is old version 1.0.0

New version 2.0 > has been released
go here

viewtopic.php?t=1783

The following is obsolete

Re: phpBB WordPress - phpBB integration extension. The integration unchained

Posted: Thu Dec 09, 2021 7:10 am
by floxshifu
Really good job!

Do you have any screenshots of the ACP settings, functions, or some returns by users about the phpBB ext?

If I'm already using the WordPress plugin, can I use the ext too? Do we need to uninstall and delete all the features of the plugin before installing the phpBB ext?

Thanks for your answers, and thanks for your awesome work.

Re: phpBB WordPress - phpBB integration extension. The integration unchained

Posted: Thu Dec 09, 2021 8:45 am
by axew3
Hello! You can install this into phpBB without worry about nothing.
It just run in phpBB when an user or an admin, updates email or password or url (acp or ucp).
It so just connect to the linked WP database, and update at same time the same email or pass (or url field) into wordpress.

You need to think to phpBB and WordPress as standalone, so there is no extension in phpBB, or plugin in wordpress, that can interfere the one with the other.

The wordpress integration plugin in wordpress yes, but it, just change passwords, set cookies, login users, and add users into phpBB when they register in wordpress, or in wordpress, if users presents a valid cookie from phpBB and into wordpress this user still do not exist, but all this is based just into a cookie and/or after a check done via sql queries.
Once you disable the integration plugin, all return standalone as it was. Only passwords into wordpress, in this case, may are not recognized anymore once the plugin disabled, so users will have to reset their password in wordpress (or as promised, will be provided the simple plugin, just few lines of code that will allow wp to follow on recognize passwords in any way, also the phpbb way, then at one time in the future may removed).
It can also be a very simple code snippet to add somewhere. Both will be provided asap.

2.4.5 is coming to fix several issues

Re: phpBB WordPress - phpBB integration extension. The integration unchained

Posted: Wed Dec 22, 2021 2:12 pm
by axew3
I just hope, that my explain here will be clear for all (this will be the new extension config.php file):
the extension 1.0.1 is ready to be released, within the WordPress phpBB integration plugin
(so anyone can install it)

Code: Select all

<?php
	defined( 'IN_PHPBB' ) or die( 'forbidden' );

/** Setup WordPress database connection values **/
// NOTE IMPORTANT:
// If only db connection values are active, the extension will only work to UPDATE email, password and url fields into the linked WordPress 
// and can run as standalone
//////////////

$wp_w3all_dbhost = 'localhost';
$wp_w3all_dbport = '';
$wp_w3all_dbname = 'wp';
$wp_w3all_dbuser = 'root';
$wp_w3all_dbpasswd = 'aaXXee2008';
$wp_w3all_table_prefix = 'wp_';


// NOTE IMPORTANT:
// If the following options are not activated
// the extension will only work to UPDATE email, password and url fields into the linked WordPress, and can run as standalone.
// Activating the options here below, may require that the WordPress phpBB integration plugin is installed and active into your WordPress
// or only redirects will happen as expected (not users insertion into WordPress, as obvious may it is, because the cURL joke (without visible errors) will fail if the integration plugin is not installed in WP)
////////////// 

/** 
    Setup User Addition in WordPress option using cURL or Redirect options. 
    Activate Or Disable available options removing the prepending // chars
    Read hints
**/

//////////////
// --> Curl 
// WordPress URL
// this will be also the page were the user will be redirected to, if the next options '--> Redirect to WordPress' are active
// NOTE that it is REQUIRED any valid URL that point to the linked WordPress

// Remove prepeding // to activate USERS ADDITION into WordPress as soon when users register into phpBB
// NOTE IMPORTANT: if this option is not enabled or empty, the addition into WordPress at same time using cURL is disabled
// and the extension will run/work only for: password, email and url update.

// $wp_w3all_wordpress_url = 'https://axew3.com/wp/index.php/welcomePage/'; // example1
$wp_w3all_wordpress_url = 'https://localhost/wp/'; // example2


// DO NOT activate following REDIRECTS if using template IFRAME integration

//////////////
// --> Redirect to WordPress ONLY after user has been created in phpBB and autologin happen (because no email confirmation required)
// WARNING: DO NOT activate this if using template IFRAME integration! Or you'll have wp iframed into wp as result, when the phpBB redirect happen
// NOTE IMPORTANT: to activate the follow, it is REQUIRED that the previous '$wp_w3all_wordpress_url' option is also active
// Remove prepending // on next define() to redirect the user into wordpress as soon when the user is added into phpBB

define("W3ALLREDIRECTUAFTERADD", true); // Redirect only after autologin: DO NOT activate this if using template IFRAME integration

//////////////
// --> Redirect EVER users to WordPress after they login in phpBB (ACP exluded)
// NOTE IMPORTANT: to activate the follow, it is REQUIRED that the previous '$wp_w3all_wordpress_url' option is also active

define("W3ALLREDIRECTEVERAFTERLOGIN", true); // Always redirect to the WordPress Url, after the login in phpBB (ACP exluded): DO NOT activate this if using template IFRAME integration

Re: phpBB WordPress - phpBB integration extension. The integration unchained

Posted: Wed Dec 22, 2021 2:39 pm
by madoma73
great !
I cannot wait to test it :-)

Re: phpBB WordPress - phpBB integration extension. The integration unchained

Posted: Sun Dec 26, 2021 5:27 pm
by axew3
Version 1.0.1 has been released but to fully work with all options, it require WP_w3all plugin version 2.4.5 > installed into WordPress:

New version 2.0 > has been released
go here

viewtopic.php?t=1783