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.
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
BP will not use WP avatars and there is no viable way to do it.
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.
@mmurguia couple of avatar plugins which would help you fix this
Hey @djpaul we probably misunderstand each other. I’m just saying that if a WordPress account has an avatar image, BuddyPress should use it.
@sharmavishal OK, I’ll look.
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, thanks, I’ll check it out now!
@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
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