Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • @mgpix

    Participant

    Hi,

    I just tested the modified plugin on a classical WP install 2.9.2 with a bp-default child theme. Seems to work just fine.

    Thanks !

    @mgpix

    Participant

    Ok, I eventually found a workaround.

    The below code will update firstname and lastname fields in the BP member profile upon user registration :


    add_action('user_register', 'my_user_register');
    function my_user_register($user_id)
    {
    if ( function_exists( 'xprofile_set_field_data' ) ) {
    $firstname = get_usermeta( $user_id, 'first_name' );
    $lastname = get_usermeta( $user_id, 'last_name' );
    xprofile_set_field_data( 'firstname', $user_id, $firstname );
    xprofile_set_field_data( 'lastname', $user_id, $lastname );
    }
    }

    @mgpix

    Participant

    Sadly, my coding skills are just above the sauropods’ ones

    I might eventually create a plugin but It will take me time and won’t be really good :-)

    But who knows… in time of needs, one can learn pretty fast.

    I’ll have a look at how to extend groups then.

Viewing 3 replies - 1 through 3 (of 3 total)
Skip to toolbar