To change roles for users added from phpBB into WP in wp_w3all and you want custom configuration about this:
open
phpbb_groups table on your phpBB database
Look for
Group_Name field, related the group you want refer to.
So change as above explained, use the
group name to check against before insert users into wordpress, into:
addons/
ext_plugins_fixes.php file (1time)
and 2 times on
class.wp.w3all-phpbb.php file
the code to search for on files is:
if ( $phpbb_user[0]->group_name == 'ADMINISTRATORS' ){
$role = 'administrator';
} elseif ( $phpbb_user[0]->group_name == 'GLOBAL_MODERATORS' ){
$role = 'editor';
.....
Just search for string ADMINISTRATORS, to get immediately these three portions of code (1time into ext_plugins_fixes.php and two times into class.wp.w3all-phpbb.php
All this about users permissions, could be coded to be friendly and changed with more easy, maybe in a single dedicated function?
[edited]
To change roles for users added from phpBB into WP in wp_w3all and you want custom configuration about this:
open [i]phpbb_groups[/i] table on your phpBB database
Look for [i]Group_Name[/i] field, related the group you want refer to.
So change as above explained, use the [b]group name[/b] to check against before insert users into wordpress, into:
addons/[i]ext_plugins_fixes.php file[/i] (1time)
and 2 times on [i]class.wp.w3all-phpbb.php[/i] file
the code to search for on files is:
[quote] if ( $phpbb_user[0]->group_name == 'ADMINISTRATORS' ){
$role = 'administrator';
} elseif ( $phpbb_user[0]->group_name == 'GLOBAL_MODERATORS' ){
$role = 'editor';
.....
[/quote]
Just search for string ADMINISTRATORS, to get immediately these three portions of code (1time into ext_plugins_fixes.php and two times into class.wp.w3all-phpbb.php
All this about users permissions, could be coded to be friendly and changed with more easy, maybe in a single dedicated function?
[edited]