AltisonaMedia
Expert
Just Getting Started
Member Likes (0)
I posted something along these lines on the tail-end of another post question. I need to find out if and how to make the changes to the default avatar in Buddypress theme Blogsmu ripple through to all uses of group avatars in the site theme.
At the moment I have uses Sarah Gooding recommended functions.php update (http://wpmu.org/how-to-add-a-custom-default-avatar-for-buddypress-members-and-groups/) to the child theme to set a new default avatar.
It has changed the display of the group avatar to the new default in the group directory and group details but the theme displays a widget of random groups which still show the old avatar.
I have opened up the site for viewing http://artsblurt.com/groups/third-test-group-889600580/
In addition to this when a new member creates a group they are presented with the old avatar as a default. I think I need to make deeper changes to affect the entire theme - or BP core itself. I am not sure how to go about this in the right way.
Can anyone help please?

Responses (6)
Member (joined April 2009) Likes (0)
Hiya Altisona,
First off, nice work! I'm still a sucker for the black, greys, and reds for colors so looks good to me :D
The random groups are pulled manually by an extra function in BlogsMU and that's why it's not grabbing up your new default.
Couple ways to handle it:
1. Replace the image at _inc/images/default.png
2. Change the function in functions.php line 220 to refer to a different image.
Either one should get the job done. Let us know how it goes!
Thanks!
Member (joined September 2010) Likes (0)
No joy...
I think there is something more fundamental going on. The default image was a static image (default.png) and I presume not being picked up anyway as each of the group icons in the 'Random Group' widget and the group creation process are in themselves random images.
I am not very familiar with php code but I think there is something that still calls and associates these random images with the group at some core level.
Could this be done through a bp-custom.php file?
This functionality to choose group avatars definitely seems to be something missing from the general settings in the buddypress admin.
Member (joined September 2010) Likes (0)
Has anyone managed to do this successfully?
Member (joined September 2010) Likes (0)
Am I asking the wrong questions?
Member (joined April 2009) Likes (0)
Hiya Altisona,
Might be a problem with how the code pulls the random theme. I'm able to change the default avatar for groups using this code:
http://buddypress.pastebin.com/QSWtCJMb
I've asked the theme designer to stop in and take a look. The code above does the trick on the groups page, but I'm still seeing the random gravatars in the sidebar for some reason.
We'll have an update out shortly for the new BuddyPress 1.2.6 as well.
Thanks for your patience.
Member (joined September 2010) Likes (0)
Thanks masonjames
I am already using the code you mentioned above. I will try this patience thing and wait for the designers response ;)
Become a member