BuddyBoss Home – Web › Support Forums › Themes › BuddyBoss theme › Avatar Replacement Question
Tagged: avatar, gravatar, theme-functions.php
- This topic has 22 replies, 7 contibutors, and was last updated 9 years, 1 months ago by Anonymous.
Question
February 7, 2015 at 1:15 pm #35568@jgwolfensbergerHi 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.jpgI 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
Answers
February 11, 2015 at 10:11 pm #35842@
AnonymousThis 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.
February 12, 2015 at 9:40 pm #35883@alyssa-buddyboss
AlyssaParticipant@jgwolfensberger once you upgrade please post back and let me know if it is working 🙂
February 14, 2015 at 11:32 am #35936@jgwolfensbergerHi @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
February 14, 2015 at 1:16 pm #35945@alyssa-buddyboss
AlyssaParticipant@jgwolfensberger gravatar could have a cache of these images. Right now the group image works for me, waiting on the members right now.
February 14, 2015 at 1:24 pm #35948@jgwolfensbergerOk, thanks TJ – I don’t mind waiting to see if gravatar clears up. Makes sense to me! 🙂
February 14, 2015 at 1:29 pm #35949@milenaI 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.
February 17, 2015 at 2:14 pm #36099@
Anonymous@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.
February 18, 2015 at 4:21 am #36128@milena@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.
March 3, 2015 at 2:17 pm #36759@jgwolfensberger@milena have you had any luck with this yet? It’s been weeks and I still can’t get my custom avatars to display.
March 4, 2015 at 12:40 am #36768@milenaHi @jgwolfensberger, no, no change on my site.
March 4, 2015 at 11:05 am #36789@alyssa-buddyboss
AlyssaParticipantI’m getting an update from the devs now.
March 7, 2015 at 6:37 am #36930@frankwarwickI have the same issue
March 12, 2015 at 6:33 pm #37205@frankwarwickA 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
March 13, 2015 at 9:15 pm #37275@alyssa-buddyboss
AlyssaParticipant@frankwarwick We have a backlog of issues. Please give us time, rest assured they are working on this.
- The question ‘Avatar Replacement Question’ is closed to new replies.