Sounds like a bug.
Can you post a ticket here?
https://buddypress.trac.wordpress.org/newticket
Use the same credentials you use here on buddypress.org.
Thanks for the reply, r-a-y. I’ll give it a shot.
Bill, there has been some replies to your ticket.
You’ll probably be interested in this code snippet for now:
https://buddypress.trac.wordpress.org/ticket/6145#comment:4
i have a question for r-a-y, is it not possible to make it one time select able (for users), i mean locking down after selecting once or twice.
but admin can change it on user request ?
or making it available on registration form only ?
i also saw the ticket above mentioned but its just hiding the box from user, i dont think its a perfect solution. i will be good to hide after selecting a member type by a user .
BP 2.2 is introducing a barebones API for member types mostly for developers to get their hands on it. We haven’t done any deep UI integration into the registration or edit profile pages, but 2.3 will make further inroads into this.
thanks for quick reply, and i really appreciate your hard work and dedication (Dev’s).
bp_register_member_type( 'student', array(
'labels' => array(
'name' => 'Student',
'singular_name' => 'student',
'role' => 'subscriber'
),
) );
}
add_action( 'bp_init', 'bbg_register_member_types' );
will this third parameter in array assign user role?
and how to out put selected member type ‘name’ below profile avatar ( as meta ) or as it is .
thank you
The 3rd parameter won’t do anything.
To display the member type:
Create a template overload of this file:
buddypress\bp-templates\bp-legacy\buddypress\members\single\member-header.php
and add this where you want it:
$member_type = bp_get_member_type( bp_displayed_user_id() );
echo $member_type;
Codex page.
yes it wont do any thing, but devs love to play with codes to a new idea lets see what happens. i have raised a ticket .
https://buddypress.trac.wordpress.org/ticket/6154#ticket
thanks shanebp its working perfect
Thanks very much for the notification, @r-a-y. Good to read all the feedback from the ticket.
Hello,
Could you please tell me if BP 2.4.3 offer a possibility to integrate BP user profile in UI registration process or profile edit ?
Thank you, Florent