Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

  • igid26
    Participant

    @igid26

    I used the function <?php bp_adminbar_account_menu()?> This works but I do not know how to edit css.


    igid26
    Participant

    @igid26

    Thanks


    igid26
    Participant

    @igid26

    I changed `$gender = bp_get_profile_field_data(‘field=Gender’);`
    to
    `$gender = xprofile_get_field_data(‘Gender’, bp_get_member_user_id());`
    It helped only in Members Directory. Everywhere else it does not work

    Member Profile
    http://www.taraj.sk/member-profil.jpg

    Member Directory
    http://www.taraj.sk/member-directory.jpg

    Forum BBpress
    http://www.taraj.sk/bbpress.jpg


    igid26
    Participant

    @igid26

    Thank you for your answer. The member header works great. But when viewing members in Members Directory does not work. Displays all the avatars same. Sorry for my English.I used the code –
    `function myavatar_add_default_avatar( $url )
    {
    global $bp;
    $gender = bp_get_profile_field_data(‘field=Gender’);

    if ( $gender === ‘Male’) :
    return get_stylesheet_directory_uri() .’/images/default_avatar_male.jpg’;
    else:
    return get_stylesheet_directory_uri() .’/images/default_avatar_female.jpg’;
    endif;
    }
    add_filter( ‘bp_core_mysteryman_src’, ‘myavatar_add_default_avatar’ );`


    igid26
    Participant

    @igid26

    Works great thank you

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