Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP 2.2 beta 2 member-type selectable by member

  • @chubbycrow

    Participant

    This new member-types feature is looking really great so far. I noticed though that a member can change their own member-type on the extended-profile back-end page. Is this intended to remain the default behavior?

    I can see reasons for both approaches (either under admin-, or under member-control), but I would think that allowing members to choose their own type might have undesired results. For example, in the ‘student’/’teacher’ scenario, presenting a page that lists teachers might need regular oversight. What do you think?

Viewing 11 replies - 1 through 11 (of 11 total)
  • @r-a-y

    Keymaster

    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.

    @chubbycrow

    Participant

    Thanks for the reply, r-a-y. I’ll give it a shot.

    @r-a-y

    Keymaster

    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

    @youmin

    Participant

    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 .

    @r-a-y

    Keymaster

    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.

    @youmin

    Participant

    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

    @shanebp

    Moderator

    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.

    @youmin

    Participant

    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

    @chubbycrow

    Participant

    Thanks very much for the notification, @r-a-y. Good to read all the feedback from the ticket.

    @frappi

    Participant

    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

    @frappi

    Participant
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘BP 2.2 beta 2 member-type selectable by member’ is closed to new replies.
Skip to toolbar