Page 2 of 3

Re: Bad group assignement

Posted: Mon Sep 12, 2016 7:53 pm
by Ghostrider
the situation expect :

user register via wordpress (no admin action) and with his wp login password can access to phpbb forum as simple member .
The new member role is Subscriber on Wp ( that's good)
But this new member (created by wordpress) is automaticly assigned to phpbb moderator group ... :?
and that s not good

Re: Bad group assignement

Posted: Mon Sep 12, 2016 8:10 pm
by axew3
to well understand, you have so register in WP, and so you are moderator in phpBB? (so this should be also here at axew3.com!)
Because as the code is, do not seem to be possible.
Instead, can be possible that you maybe have assign in phpBB to default registered groups, moderator's privileges?

Re: Bad group assignement

Posted: Mon Sep 12, 2016 9:37 pm
by Ghostrider
i think i have found
you must use group Id to select the right group to add user on phpbb
On my forum the group ID 2 is used by an old vbulletin group after migration to pbpbb so all member creation from WP 3 all are created on this old useless group
And creation miss the default "members group created by pbpbb, this one using id 59

Is there a way to manually change destination group ID ????

Re: Bad group assignement

Posted: Mon Sep 12, 2016 10:44 pm
by axew3
yes with easy, let me know (if different from above):
group name on WP and related ID group you wish assign users when added into phpBB.

please ... check, the ID Group you search for, on db table phpbb_groups, haven't a group_name assigned?
What is exactly?

Re: Bad group assignement

Posted: Thu Sep 15, 2016 7:26 pm
by Ghostrider
Wp group is subscriber
phpbb group : registred user group id is : 59

thx

Re: Bad group assignement

Posted: Sat Sep 17, 2016 4:01 pm
by axew3
i hope when you mean the group ID for your registered users group is 59, you have look into the correct place, i assume yes (but is no), so this is just the fix to your problem (the default user ID for registered users group in phpBB is 2, not 59). You are talking about a custom group maybe. By the way
open:
class.wp.w3all-phpbb.php
search for line:

Code: Select all

VALUES ('','$phpbb_user_type','2','','0','', '$wpur', '$wpul', '$wpunn', '$wpup', '0', '$wpue', '$user_email_hash', '', '', '', '', '', '', '0', '0', '0', '0', '0', '0', '0', 'en', 'Europe/Rome', 'D M d, Y g:i a', '1', '0', '', '0', '0', '0', '0', '-3', '0', '0', 't', 'd', 0, 't', 'a', '0', '1', '0', '1', '1', '1', '1', '230271', '', '', '0', '0', '', '', '', '', '', '', '', '0', '0', '0')");
change with:

Code: Select all

VALUES ('','$phpbb_user_type','59','','0','', '$wpur', '$wpul', '$wpunn', '$wpup', '0', '$wpue', '$user_email_hash', '', '', '', '', '', '', '0', '0', '0', '0', '0', '0', '0', 'en', 'Europe/Rome', 'D M d, Y g:i a', '1', '0', '', '0', '0', '0', '0', '-3', '0', '0', 't', 'd', 0, 't', 'a', '0', '1', '0', '1', '1', '1', '1', '230271', '', '', '0', '0', '', '', '', '', '', '', '', '0', '0', '0')");
save.
To apply the same to the wp_w3all transfer process, do the same thing into views/wp_w3all_users_to_phpbb.php file.