Skip to:
Content
Pages
Categories
Search
Top
Bottom

Disable Avatar Crop

  • @slayerking

    Participant

    Is there a way to disable avatar crop feature of buddypress ?

Viewing 11 replies - 1 through 11 (of 11 total)
  • @mfmsw2youth

    Participant

    I’m also interested in the answer to this question

    @djpaul

    Keymaster

    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?

    @mfmsw2youth

    Participant

    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.

    @modemlooper

    Moderator

    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

    @mfmsw2youth

    Participant

    That would be great! Looking forward to the plugin as soon as possible. Thanks

    @mfmsw2youth

    Participant

    I will like the plugin to still give the website administrator an option to allow or disallow avatar croping in any case. Thanks

    @modemlooper

    Moderator

    Do you want avatars to be uploaded? If there is no user cropping then an image will get cropped on upload.

    @mfmsw2youth

    Participant

    yeah that will be great if the avatar can be auto-crop to default buddypress size without mandatory the user to do it.

    @mfmsw2youth

    Participant

    @modemlooper we are still looking forward to your plugin

    @henrywright

    Moderator

    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.

    @mfmsw2youth

    Participant

    @henrywright your code not working. Thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Disable Avatar Crop’ is closed to new replies.
Skip to toolbar