Look for a file in wp-content/plugins/bp-custom.php
this contains the code to set the avatar sizes.
Those sizes are already set there:
<?php
// Resizes avatars
define ( 'BP_AVATAR_THUMB_WIDTH', 86 );
define ( 'BP_AVATAR_THUMB_HEIGHT', 50 );
define ( 'BP_AVATAR_FULL_WIDTH', 1920 );
define ( 'BP_AVATAR_FULL_HEIGHT', 1111 );
define ( 'BP_AVATAR_ORIGINAL_MAX_WIDTH', 2000 );
define ( 'BP_AVATAR_ORIGINAL_MAX_FILESIZE', 5120000 );
// Changes default avatar
define ( 'BP_AVATAR_DEFAULT', esc_url( home_url( '/' ) ).'wp-content/themes/ihg2014/images/avatar.jpg' );
define ( 'BP_AVATAR_DEFAULT_THUMB', esc_url( home_url( '/' ) ).'wp-content/themes/ihg2014/images/avatar_thumb.jpg' );
//Removes automatic links in user profiles
remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 );
I am wanting to create image sizes additional to these.
Is there a way of doing that in bp-custom.php?
BP only has a thumb avatar and a full size avatar, there’s no other avatar images it uses.
With the sizes set as they are on the site that’s rather limiting.
Is there any way around this?
Also it seems that something has created an additional size (600 x 200 in our case, no idea why it has been created), see screenshot of an avatar image directory:
Any explanation for that?
That’s interesting, I’m not aware of how you would get BP to create and use a third avatar size, maybe you have a third party plugin/code that is creating that?
It is possible that a 3rd party plugin is doing that – there’s certainly a lot on the site!
Now if only I could work out which one and make proper use of it that would be great…
I’ve got a plugin called BP Profile Shortcodes Extra that has a shortcode to display the value of an xprofile field, you could take a look at how I did that and use that as a basis for your code?
whoops, wrong thread, please ignore my last comment.