Page 1 of 3
Bad group assignement
Posted: Thu Sep 08, 2016 8:39 pm
by Ghostrider
Hello
PHPBB version 3.1.9
Wordpress : 4.6.1
w3all phpbb : version 1.4.9
Whith a new user subsciption on wordpress, this user is created on "moderator group" on the Phpbb ....
But Subscriber on wordpress ..
Anyway to change the default group on phpbb .?..
Re: Bad group assignement
Posted: Thu Sep 08, 2016 10:36 pm
by axew3
Hello, yes, very easy/fast to fix, will be resolved as soon.
At moment, any phpBB user is added in WP as Subscriber.
In the while 1.5.0 with all the about avatars is ready and working ok, but the evil have come out.
I realize this, due to wrong way i've choose to resolve with manual config and addition of the wp-content/plugins/wp-w3all-phpbb-integration/phpbb/config.php file into wp_w3all plugin folder.
The problem is: on plugin update, the wp-content/plugins/wp-w3all-phpbb-integration/phpbb/config.php file will be deleted. So, it will be necessary to setup any time the manual config.php, on plugin update, if we had set path on WP_w3all to include the wp-content/plugins/wp-w3all-phpbb-integration/phpbb/config.php (manual config as suggested!), and not the phpBB root config.php.
I'm sorry, there is no hook in WP to avoid this and there are two solutions:
1) add on wp_w3all config, the manual config form to setup values for phpBB db connection.
The code about this is ready, as i had start it, and after abandoned, choosing instead to add a manual config.php into (wp-content/plugins/wp-w3all-phpbb-integration/phpbb/config.php).
2) change the way manual config work, adding a folder somewhere out the WP_w3all plugin folder, with inside the config.php that will not so be deleted onplugin update.
Maybe the first.
Think to postpone the release of 1.5.0 fixing maybe before almost this point.
Re: Bad group assignement
Posted: Sun Sep 11, 2016 9:58 pm
by axew3
OK it has been resolved already on coming 1.5.0, by the way, defaults phpBB users groups are:
GUESTS, REGISTERED_COPPA, REGISTERED, GLOBAL_MODERATORS, ADMINISTRATORS, BOTS and NEWLY_REGISTERED.
So what has been added, as it make sense, is about REGISTERED, GLOBAL MODERATORS and ADMINS.
Now phpBB users that are added into WordPress, are added as:
REGISTERED = subscriber in wp
GLOBAL_MODERATORS = editor in wp
ADMINISTRATOR = admin in wp
For custom groups, it is possible to add a simple how to as it is very easy thing to adjust in case. It could be possible also to create default groups names ready to be used in WP_w3all, directly on code: in this way, you'll know that if you name some groups in phpBB as specified, users that belong to this group in phpBB, are added in WP with specific role. This is very easy to achieve, all is already available on code as is.
Within tomorrow WP_w3all 1.5.0 will be released.
Re: Bad group assignement
Posted: Mon Sep 12, 2016 1:05 pm
by Ghostrider
thx a lot !!!!!
Re: Bad group assignement
Posted: Mon Sep 12, 2016 2:12 pm
by Ghostrider
just to be sure
My problem was with users created directly via wordpress proccess from WP register popup .
The default group on PHPBB of this news users was phpbb moderator, not simple member (as required)
Re: Bad group assignement
Posted: Mon Sep 12, 2016 2:21 pm
by axew3
... 1.5.0 just released ... the opposite infact, so not well understand where exactly the problem you want solved, with this that of course was requested to be fixed: on adding user from WP admin ... ok we will fix on soon released 1.5.1.