Custom Avatar Images Size Issue
-
I am using the following code to input a custom avatar for my groups; however; the size attributes that I have assigned in the theme are not being pulled. It seems that it is just pulling the default size for the thumbnail and the image, but on a page where one should be displayed as full-size and another thumbnail, they are both being pulled as full-size.
`function my_default_get_group_avatar($avatar) {
global $bp, $groups_template;
if( strpos($avatar,’group-avatars’) ) {
return $avatar;
}else {
$custom_avatar = get_stylesheet_directory_uri() .’/images/avatars/community.jpg’;if($bp->current_action == “”)
return ‘group->name ) . ‘” />’;
else
return ‘group->name ) . ‘” />’;
}
}
add_filter( ‘bp_get_group_avatar’, ‘my_default_get_group_avatar’);`You can view the issue here:
http://www.achieveopediabeta.com/communities/the-family-network/
- The topic ‘Custom Avatar Images Size Issue’ is closed to new replies.