I’m also interested in the answer to this question
There is not a built in way to disable the cropping part, no. Interested to find out why you seem to want to allow avatar uploads but not let people size them?
croping avatar on mobile phone not supported on all mobile browsers especially operal mini and the mini versions of other mobile browsers. Also low end smartphones cannot handle this thereby, given the user no ability to change their avatar on mobile phone.work great on PC, but as we all know these days users uses their mobile phone to access internet more than PC. It would have been great if buddypress was coded specifically to allow croping on mobile phone media library before uploading to the web just like the way whatsapp does. In whatapp user must first crop the image in media library before uploading.This is the reason why I will like disable avatar croping in buddypress avatar upload.
Whatsapp is native and doesn’t need to deal with browser inconsistencies so you can’t really compare it to BuddyPress
I’ll create a plugin to make the crop work on mobile and have an upload image only in browsers that jcrop won’t work on
That would be great! Looking forward to the plugin as soon as possible. Thanks
I will like the plugin to still give the website administrator an option to allow or disallow avatar croping in any case. Thanks
Do you want avatars to be uploaded? If there is no user cropping then an image will get cropped on upload.
yeah that will be great if the avatar can be auto-crop to default buddypress size without mandatory the user to do it.
@modemlooper we are still looking forward to your plugin
You could try adding this to your theme’s functions.php:
remove_action( 'wp_head', 'bp_core_add_cropper_inline_js' );
It’s a quick and dirty approach – just removes the script necessary for the cropping to happen. You’ll still be shown the image crop step – they’ll just be no way for the user to actually do the cropping.
Note: Untested.
@henrywright your code not working. Thanks