Skip to:
Content
Pages
Categories
Search
Top
Bottom

WP User Avatar Not Showing in BuddyPress


  • mmurguia
    Participant

    @mmurguia

    Hi all,

    My user accounts in wordpress have user avatar images. When I look at the profiles in BuddyPress user profile pages, the default “blank” avatar is shown, and it is not using the worpress avatar image of the user.

    Thanks in advance for your help!

    Website: http://www.overlandbound.com

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

  • shanebp
    Moderator

    @shanebp

    BP uses a different system for avatars.
    They will reside in the uploads folder.
    For example, this is the path for a member whose ID = 1
    .../wp-content/uploads/avatars/1/
    And in that directory there will be a thumb-size image and a full image.
    But first, that user has to upload an avatar via their profile.


    mmurguia
    Participant

    @mmurguia

    Thank you for the response, I really appreciate it!

    Is it true then that Buddypress will not use existing wp avatars ? Is there any way to do this?

    Thank you!

    M


    shanebp
    Moderator

    @shanebp

    BP will not use WP avatars and there is no viable way to do it.


    mmurguia
    Participant

    @mmurguia

    Holy $H1T

    What an oversight.

    Thanks,

    M


    Paul Gibbs
    Keymaster

    @djpaul

    That isn’t accurate, or fair. For starters, WordPress does not provide a user avatar UPLOAD option inside its user profiles in wp-admin. It’ll show the Gravatar image associated with the current user’s email address (“You can change your profile picture on Gravatar.”).

    If your WordPress lets you upload a picture there with BuddyPress disabled, then you have some custom code somewhere that’s offering that feature. I am willing to bet that that plugin doesn’t have a correct implementation, otherwise BuddyPress should be working with it.


    sharmavishal
    Participant

    @sharmavishal

    @mmurguia couple of avatar plugins which would help you fix this


    mmurguia
    Participant

    @mmurguia

    Hey @djpaul we probably misunderstand each other. I’m just saying that if a WordPress account has an avatar image, BuddyPress should use it.


    mmurguia
    Participant

    @mmurguia

    @sharmavishal OK, I’ll look.


    mmurguia
    Participant

    @mmurguia

    To be clear @sharmavishal and @djpaul,

    I have thousands of wp users that have avatar images. I want buddypress to use them. Is there a plugin that does this?

    Thanks!

    M


    danbp
    Moderator

    @danbp


    mmurguia
    Participant

    @mmurguia

    @danbp, thanks, I’ll check it out now!


    mmurguia
    Participant

    @mmurguia

    @danbp,

    This is not exactly what I need. Accounts are not created with buddypress or wordpress. They are created by Xenforo. This creates an account in wordpress, and also imports the users avatar correctly in wordpress. so it is a valid wp account with user avatar. I’d like Buddypress to use the wordpress avatar. Is this possible?

    Thanks!

    M


    r-a-y
    Keymaster

    @r-a-y

    So what you’re looking for is to use a custom user avatar instead of BuddyPress’?

    Try the following code snippet in your theme’s functions.php or wp-content/plugins/bp-custom.php:

    remove_filter( 'get_avatar', 'bp_core_fetch_avatar_filter', 10, 6 );

    Update – That code snippet only reverts the avatar in WordPress posts and comments.

    To override BuddyPress avatars in BuddyPress content with a custom avatar solution, you would have to hook into the 'bp_core_fetch_avatar' filter:
    https://buddypress.trac.wordpress.org/browser/tags/2.5.3/src/bp-core/bp-core-avatars.php?marks=534-549#L534

Viewing 13 replies - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.
Skip to toolbar