• Resolved Carin

    (@sparksfreebies)


    Sorry for so many posts, I thought this issue was resolved, but I was actually looking at two different ads, I did not see in the edit box where user can upload profile image, one user, one ad has avatar, the others don’t. I might have done something like upload one but I cant remember, bp profile does have an avatar, can you let me know how to make it show on all ads?
    Thanks!
    has avatar
    2017-08-18_1219

    no avatar
    https://www.screencast.com/t/RgKWCAHGO

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi, the avatars are loaded using Gravatar service, so the loaded avatar will depend on the email address entered in Contact Email field entered when posting an Ad.

    Currently replacing the avatar via API is not possible, you would need to open file wpadverts/templates/single.php find line

    
    <?php echo get_avatar( get_post_meta($post_id, 'adverts_email', true), 48 ) ?>
    

    and replace it with

    
    <?php $member_id = bp_core_get_userid( get_post( $post_id )->post_author ) ?>
    <?php echo bp_core_fetch_avatar ( array( 'item_id' => $member_id, 'type' => 'full' ) ) ?>
    
    Thread Starter Carin

    (@sparksfreebies)

    I replaced it, now nothing shows at all
    https://www.choresolution.com/advert/pet-sitter-reddick/

    Plugin Author Greg Winiarski

    (@gwin)

    I am not sure then, you would need to ask BP support how to get the link to user profile photo.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘bp avatars not resolved’ is closed to new replies.