Hope that helps someone! Now after that, I have another very minor issue. When a user goes to upload or change their avatar, and if they upload – without clicking on the crop tool – then the image is uploaded off-center. But if they move the crop tool at all and then upload it is fine.
Any ideas how to align where buddypress crops the image from if they do not click the crop tool?
@mercime, I’ve been spending some time on it and think I figured it out, but now I have another minor issue.
So incase anyone has this same issue, it was as simple as editing the /wp-content/plugins/buddypress/bp-core/bp-core-avatars.php file to match my profile images (which are 120px and 50px) :
function bp_core_set_avatar_constants() {
if ( !defined( ‘BP_AVATAR_THUMB_WIDTH’ ) )
define( ‘BP_AVATAR_THUMB_WIDTH’, 50 );
if ( !defined( ‘BP_AVATAR_THUMB_HEIGHT’ ) )
define( ‘BP_AVATAR_THUMB_HEIGHT’, 50 );
if ( !defined( ‘BP_AVATAR_FULL_WIDTH’ ) )
define( ‘BP_AVATAR_FULL_WIDTH’, 120 );
if ( !defined( ‘BP_AVATAR_FULL_HEIGHT’ ) )
define( ‘BP_AVATAR_FULL_HEIGHT’, 120 );
if ( !defined( ‘BP_AVATAR_ORIGINAL_MAX_WIDTH’ ) )
define( ‘BP_AVATAR_ORIGINAL_MAX_WIDTH’, 120 );
I found out the culprit was ” if ( !defined( ‘BP_AVATAR_ORIGINAL_MAX_WIDTH’ ) )
define( ‘BP_AVATAR_ORIGINAL_MAX_WIDTH’, 120 ); – because before it had “,450” and if I uploaded a very large image then the size would be 450 but the box is only 120.