Different profile types and different user roles – Part II
- 
		I tried to follow your instructions: https://buddypress.org/support/topic/resolved-different-profile-types-and-different-user-roles/ 1st: I installed WP Roles at Registration plugin. 2nd: I choose there: http://1a-spielwiese.de/wp-admin/options-general.php?page=wp-roles-at-registration ‘subscriber’ and ‘contributor’ and as ‘Label’ I decided for: ‘Mitglieder-Kategorie (Wähle als Team: Contributor; und als Fan: Subscriber)’ (Member-Category [Choose as Team: Contributor; and as Fan: Subscriber]). It works: http://1a-spielwiese.de/wp-content/uploads/2014/09/Reg_Form_with_User_Roles.jpg —– En passant: Is there any way for truly renaming the user roles from ‘contributor’ to ‘team’ and from ‘subscriber’ to ‘fan’, sothat I could keep the ‘Label’ simple (i.e.: without explaining: ‘Choose as Team: Contributor; and as Fan: Subscriber’)? —– 3rd: I installed Buddypress-xProfiles-ACL as well and commented the following part out (Cfr. your instruction: ‘ xProfiles ACL needs to be hacked – see this support thread .’ and there: https://wordpress.org/support/topic/plugin-buddypress-xprofiles-acl-show-profile-fields-to-everyone?replies=4#post-2651753): /* function filter_xprofile_groups_with_acl() { global $bp, $profile_template, $current_user; get_currentuserinfo(); foreach($profile_template->groups as $key => $profile_group) { if( ! in_array($profile_group->id, $this->user_allowed_xprofile_groups) ) { unset($profile_template->groups[$key]); } } } */4th: I created two new profile field groups: one for teams (with one question) and another for fans (with two questions): http://1a-spielwiese.de/wp-content/uploads/2014/09/new_profile_field_groups.jpg So far, it works as well – but now the problems start. 5th: a) There is a user kampfsportlerinnenneuwied with the user role ‘author’ = ‘team’. http://1a-spielwiese.de/wp-content/uploads/2014/09/kampfsportlerinnen_author.jpg b) Neverthess that user get displayed both profile filed groups (‘Frage an Teams’ as well as ‘Fragen an Fans’): http://1a-spielwiese.de/wp-content/uploads/2014/09/both_fied_groups_for_kampfsport.jpg (But the text of second question of the ‘fan’-field group [‘Falls ja: Welche Sportarten?’] is not displayed.) When I leave the aboved mentioned code un-commented both field groups disappear from the page and the below (section 6th) mentioned redirection error disappears as well… c) Continuing with the commented code version: If this user answers (only) the “team-question” and tries to save the change, the message is displayed: ‘Bitte überprüfe vorm Speichern ob Du alle notwendigen Felder für diese Profilgruppe ausgefüllt hast.’ (Please check before saving, whether all required field groups are filled in.) I guess it’s, because the “fan-question” requires as well an answer; but it is not answered, because that member is a team (not a fan). 6th: Even worse, when I click there: http://1a-spielwiese.de/members/kampfsportlerinnenneuwied/ http://1a-spielwiese.de/wp-content/uploads/2014/09/profile_edit.jpg on ‘Bearbeiten’ (Edit), I receive a redirection error message: http://1a-spielwiese.de/wp-content/uploads/2014/09/redirection_error.jpg How can I resolve this problems? And finally: How I can get displayed other profile field groups than the base group on the registration page? 
- The topic ‘Different profile types and different user roles – Part II’ is closed to new replies.