- This topic has 22 replies, 7 contibutors, and was last updated 9 years, 2 months ago by .
-
Question
Answers
- The question ‘Avatar Replacement Question’ is closed to new replies.
BuddyBoss Home – Web › Support Forums › Themes › BuddyBoss theme › Avatar Replacement Question
Tagged: avatar, gravatar, theme-functions.php
Hi guys –
My custom avatars were working a while but now BuddyBoss man is back.
Am I placing my avatar-group.jpg and avatar-member.jpg in the correct directories? These URLs will show you:
http://quiltersbug.com/wp-content/themes/buddyboss-child/images/avatar-member.jpg
http://quiltersbug.com/wp-content/themes/buddyboss-child/images/avatar-group.jpg
I have made certain to flush all caches repeatedly, and I don’t use CDN or CloudFlare. I’ve even allowed days to lapse in case it was some weird caching issue I could not identify.
I’ve triple (quadruple!) checked to make sure that the files are indeed my custom files, not overwritten in any way by a theme update or anything like that.
And also, I am still on BuddyPress 2.1.1 – haven’t upgraded to 2.2 yet.
Thanks for your help 🙂
James
This is fixed for the next release. Your setup is correct. Once you download the next version of Boss (probably will be pushed tonight) your child theme’s avatars should start working.
It is safe to update to 2.2, the theme has been tested with it.
@jgwolfensberger once you upgrade please post back and let me know if it is working 🙂
Hi @tjchester –
I’m afraid I still don’t see my custom avatars on the site, even though they are uploaded:
http://quiltersbug.com/wp-content/themes/buddyboss-child/images/avatar-member.jpg
http://quiltersbug.com/wp-content/themes/buddyboss-child/images/avatar-group.jpg
I purged caches multiple times over the past few days to ensure that it wasn’t some sticky caching issue. I don’t use CDN or CloudFlare.
James
@jgwolfensberger gravatar could have a cache of these images. Right now the group image works for me, waiting on the members right now.
Ok, thanks TJ – I don’t mind waiting to see if gravatar clears up. Makes sense to me! 🙂
I had this problem too for a long time. My group avatar always showed up, member didn’t , no matter how many times I cleared the browser’s cache. I followed this thread and updated to the latest theme version. Still the same- just the group avatar shows up. Member is still the gray buddyboss man, with ears.
@milena Clearing your browser cache won’t help this. The caching is actually happening at Gravatar. WordPress serves the member profile images via Gravatar and you have to wait for them to clear their cache. As far as I know this is out of your hands and could take several days or longer.
@michael I am wondering if maybe it’s better to copy this part of theme-functions.php and replace the source url to buddyboss-child/images/avatar-member.jpg, or something like that. This code is from the updated theme’s theme-functions.php
/**
* Replace default member avatar
*
* @since BuddyBoss 2.0
*/
if ( !function_exists('buddyboss_addgravatar') ) {
function buddyboss_addgravatar( $avatar_defaults ) {
$myavatar = get_template_directory_uri() . '/images/avatar-member.jpg';
$avatar_defaults[$myavatar] = 'BuddyBoss Man';
return $avatar_defaults;
}
add_filter( 'avatar_defaults', 'buddyboss_addgravatar' );
}
thank you.
@milena have you had any luck with this yet? It’s been weeks and I still can’t get my custom avatars to display.
Hi @jgwolfensberger, no, no change on my site.
I’m getting an update from the devs now.
I have the same issue
A new version came out but the issue still exists, I did not see any reference to it in the release notes … can you push an update for this please
@frankwarwick We have a backlog of issues. Please give us time, rest assured they are working on this.