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
March 14, 2015 at 7:29 pm #37359@
Anonymous@jgwolfensberger @frankwarwick @milena @tjchester
This is now fixed, and will be included in the next release (later today).
Answers
June 1, 2015 at 1:26 am #40820@milena@tjchester, @michael, with version 4.2 the member avatar issue remains.
June 1, 2015 at 8:52 am #40835@alyssa-buddyboss
AlyssaParticipant@milena I have confirmed it works for the group image but not the members. I narrowed it down to line 1009 of theme-functions.php uses
get_template_directory_uri
instead ofget_stylesheet_directory_uri
change that code and we will have it fixed next release.June 28, 2015 at 2:20 pm #41826@milenayes, this works.
June 29, 2015 at 8:47 am #41850@alyssa-buddyboss
AlyssaParticipantGreat news, I’ll have the devs make this permanent.
August 18, 2015 at 6:54 pm #44672@alyssa-buddyboss
AlyssaParticipant@milena @frankwarwick @jgwolfensberger this issue should be fixed in the latest release. Please let me know if you continue to have issues.
October 15, 2015 at 8:39 pm #48818@mth75@tjchester
The default avatars won’t show for the friendship events.
user[1] and Profile picture of [user2] are now friends
Also a error
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.starry-night.nl/wp-content/themes/buddyboss-child/images/sn_avatar.jpg&s=20&r=G(which is the right location).
I use following code in the function.php to adjust the default avatar.
/** changing default buddypress avatar (mistery man) */ function buddyboss_addgravatar( $avatar_defaults ) { $myavatar = get_stylesheet_directory_uri() . '/images/sn_avatar.jpg'; $avatar_defaults[$myavatar] = 'Starry-Night Avatar'; return $avatar_defaults; } add_filter( 'avatar_defaults', 'buddyboss_addgravatar' );
October 19, 2015 at 1:09 pm #49122@
AnonymousThanks @mth75
- The question ‘Avatar Replacement Question’ is closed to new replies.