259 pointsWPMU DEV ExpertI'm helpful
AltisonaMedia
Member
—
19th October 2010 18:58
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.
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.
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.
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.
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.
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.
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!
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.
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.
Responses (6)
Sales & Support Lead — 20th October 2010 02:03 #
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 — 20th October 2010 08:04 #
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 — 21st October 2010 09:41 #
Has anyone managed to do this successfully?
Member — 21st October 2010 17:15 #
Am I asking the wrong questions?
Sales & Support Lead — 22nd October 2010 00:22 #
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 — 22nd October 2010 11:08 #
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