How to sync WP role to phpBB group?

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1 MiB.

Expand view Topic review: How to sync WP role to phpBB group?

Re: How to sync WP role to phpBB group?

by axew3 » Sun Oct 21, 2018 1:27 pm

Yes it is +-, list of your existent groups and their IDS appear on plugin admin page (where option about phpBB groups) but think we are not on same page unfortunately! As said, mapping groups and translating the result can't be achieved until no code added about: the unique result possible at moment, is to add users into specified group (as option into plugin admin page) when they register or multiple if you like.

p.s but i will take a look to add this option that seem a cool feature of course ...

Re: How to sync WP role to phpBB group?

by tlagren » Sun Oct 21, 2018 10:29 am

Hi again, the best would be a role-to-group-mapping function in the admin settings or similar where the WP Admin could choose which roles should be mapped to phpBB groups.

/Tomas

Re: How to sync WP role to phpBB group?

by tlagren » Sun Oct 21, 2018 8:56 am

The default group in phpBB would be REGISTERED (id 3059).

Here are two examples of while role in WP that should be mappet to phpBB group.

WP role klubbmedlem should match phpBB group tacs_medlemmar (id 265).
WP role styrelsemedlem should match phpBB group styrelsemedlem (id319).

/Tomas

Re: How to sync WP role to phpBB group?

by axew3 » Fri Oct 19, 2018 7:17 am

Please specify which groups the wp user need to be added into, between existent in phpBB, and which of those you want resulting as the default group for users. List groups names and the default one you want.

Re: How to sync WP role to phpBB group?

by tlagren » Thu Oct 18, 2018 7:23 pm

Thanks for spending your time on this. I understand this may not be a common use case so I have full respect if you answer that this is out of the scope of your plugin. A workaround for us would be to use your plugin to add the WP users into phpBB and then manually in phpBB add them to correct groups.

I've sent you a mysqldump of the groups table in a private message.

/Tomas

Re: How to sync WP role to phpBB group?

by axew3 » Wed Oct 17, 2018 11:06 pm

I migrated a same scenario days ago, after all the rest done jet, i'll migrate some of lacking posts/topics between the old domain and the new domain on coming Saturday night, to adjust the new board adding all latest posts/topics done on the old domain forum in between update time in the other domain, and just before presentation to site owners. They have just registered users.

To add an user into phpBB and more then one group is required to add a line of code in places i indicate on above post.
To code something that can be switched between different memberships configurations may isn't complicate, offering options about this for any scenario, i need to take a more deep look into before to be sure about the fact that would be easy offer options on plugin admin page about this.

If you want synchronized in the way that, let say x example an user register in wp and is added in phpbb (also in more then one group), but after the user is promoted to some other group in Wordpress and you need it also updated to related group in phpBB, not possible with code as is.
As is, the plugin code completely ignore groups except in the time they register, or they are transferred. An exception is for WP users, that if deactivated in phpBB side, then same deactivated users, when visiting/login wp side are switched to belong to no group in WP and consequently logged out if the case. If reactivated in phpBB, they are reactivated in WP as registered when the will visit as logged or login wp side.

In the while you should may show mysql dump of the phpbb_groups table, structure and data, and maybe something else, but it depend on how you configured phpBB.
If you provide the above here, may i will try to give you the solution.

(if needed more advanced assistance or features, you'll may need to contact me in different way because the plugin not contain code for scenario like the example i mentioned above, almost at this time. By the way i will put on queue and i will take a look to implement if possible by default, but i can't grant about when this feature will be in case added).

Top