Support Forum
Denis: There was at least one version of BuddyPress that did not correctly call the WP API after a new member registered but I really do not know which version it was. We seemed to get reports of this probably a year ago - maybe a little longer. I really don't know, of course, but it might just be that simple - that your BP isn't doing things correctly and needs to also be upgraded.
Adewale: New users are notified to SP via the WP API - new user sign-up is supposed to call the necessary WordPress hooks which Simple:Press and other plugins tie into the get the news. If this is not happening then either your membership plugin or your own code is not making these calls.
YELLOW
SWORDFISH
|
Yellow Swordfish: Thanks for the prompt response.
Let me give you the code I call on when users buy a membership package and their payment is confirmed. I run something like:
......
$user = new WP_User( $user_id );
if( ! $user ) continue;
if( $download['id'] == 340 ) { // Add custom role $user->add_role( 'members_level1' );
}
}
Of course the role members_level1 has been created already, and I just want add the user group to the usergroup forum_level1 at the point I am adding the members_level1 role.
So how do I go about this?
Adewale, stepping back a second... you are just changing the role of user? have you mapped this role to a specific usergroup with the permissions you want?? if you change subscriber to level1, what sp user group is level 1 mapped to??
you do the wp role to sp user group mapping on forum - user groups - map users to user groups...
Visit Cruise Talk Central and Mr Papa's World
no, the bp version is fine... still no clue why its seemingly firing wp hooks for you... we have tons of BP users so seems something one off... have not had chance to test BP myself now...
Visit Cruise Talk Central and Mr Papa's World
Mr. Papa, you are right. I am actually just changing roles. I have everything set up right. There is only one question, does user group name allow space in between?
To answer your question above, members_leve1 role in WP is assigned to Members Level 1 in SP. Could the space in between the usergroup name be responsible?
1 Guest(s)