Skip to:
Content
Pages
Categories
Search
Top
Bottom

Avatars reset to default when activating BuddyPress


  • etavio
    Participant

    @etavio

    Hey guys,

    I am diving into creating a community for my workplace and buddypress rocks! I am running into an issue with avatars and it’d be great to get some guidance. Our wordpress site is installed on an IIS server and we use a custom plugin to link our Active Directory to the user table and provide Single SignOn upon accessing the site. Active Directory also handles all our staff photos, and this same custom plugin associates these photos as avatars and show up automatically when users comment, etc on the wordpress site. However, when I enable BuddyPress it seems that this association is lost and avatars revert back to the default wordpress anonymous avatar. When I deactivate BuddyPress, the association between our Active Directory photos and wordpress avatars is automatically restored. No other functionality appears to be compromised when enabling BuddyPress, just this piece of the integration baffles me.

    I am running the latest version of buddypress and wordpress

    Any thoughts are greatly appreciated!

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

  • danbp
    Moderator

    @danbp

    Hi,

    you have to check your custom plugin. Or even to deactivate it, as it is no more necessary when you use BP. Problem seems to be that you created something related to members handling before BP was installed.

    BuddyPress handles members and their avatars via the buit-in WP avatar function.

    If you need more help, please give details about your config, theme and custom code. Thxs 😉


    Henry Wright
    Moderator

    @henrywright

    Hi @etavio

    Your custom plugin is most likely filtering get_avatar to display your custom images. BuddyPress actually bypasses that filter through the use of bp_core_fetch_avatar().

    Ref: https://github.com/buddypress/BuddyPress/blob/master/src/bp-core/bp-core-avatars.php#L192

    You will need to use a different filter.

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