Page 1 of 3

How to sync WP role to phpBB group?

Posted: Tue Oct 16, 2018 5:49 pm
by tlagren
Hi and thanks for your work with this plugins. I've been struggling with the sync of WP roles to phpBB groups for a few days without luck.
I haven't found anything special about this in the docs so I guess it's just supposed to work if the groups are named identical in phpBB as the role in WP or have I missed something? I tried to name my custom role in WP to the same as the phpBB group and the create a new WP user which are assigned that role. The user are created in phpBB, but not assigned to the specified custom group.

Any ideas?

/Tomas

Re: How to sync WP role to phpBB group?

Posted: Tue Oct 16, 2018 6:05 pm
by axew3
Sure that you instead have not forget to setup the correct phpBB users group where add registered wp users, into wp_w3all config page?
By the way since i noted a behavior into a site i'm working on about integration, i've edit the code of
file class.wp.w3all-phpbb.php. The new one is this one in attachment
class.wp.w3all-phpbb.zip
(30.67 KiB) Downloaded 247 times
P.s the same should be done also into transfer file process code if needed.

Re: How to sync WP role to phpBB group?

Posted: Tue Oct 16, 2018 6:37 pm
by axew3
change committed on repository, plugin patched at date of this post:
updated files:
class.wp.w3all-phpbb.php
and
views/wp_w3all_users_to_phpbb.php

download and replace on respective folders.

Re: How to sync WP role to phpBB group?

Posted: Wed Oct 17, 2018 8:23 pm
by axew3
Hi and thanks for your reply, you did lock the thread so I couldn't comment back to you.
I have now tried your updated files but the same behavior exists. I have selected the correct group to add new users into at the w3all config page as you asked about.

Just to be clear, the plugin does add the new user into the "registered users" group as configured at the config page, but it's impossible to get the plugin to add a phpbb users into more groups, matching the WP Users role.
Perhaps I have misunderstood the functions, is there a function to make the users member of other groups based on role membership in WP?

If it's supposed to work, how does the plugin select these groups? Is it looking into the rolename and search for a groupname with the same naming as the role?

Thanks in advance.

/Tomas

Re: How to sync WP role to phpBB group?

Posted: Wed Oct 17, 2018 8:37 pm
by axew3
Hello Thomas,
Re-opened

Code: Select all

Just to be clear, the plugin does add the new user into the "registered users" group as configured at the config page, but it's impossible to get the plugin to add a phpbb users into more groups, matching the WP Users role.
Perhaps I have misunderstood the functions, is there a function to make the users member of other groups based on role membership in WP?
You mean the transfer process? You would like to add users with proper role, if admin admin, if editor moderator etc?
Something like this?
Or you would like that users are added into more then one phpBB group when they register?

Re: How to sync WP role to phpBB group?

Posted: Wed Oct 17, 2018 8:40 pm
by axew3
P.s about more then one user group, which wordpress plugin setup this kind of members configuration? Because this is not a possible option to have more then one role per user into a default wordpress if i'm not wrong.