Skip to:
Content
Pages
Categories
Search
Top
Bottom

Disable Avatar Crop

Viewing 11 replies - 1 through 11 (of 11 total)

  • sunnyj
    Participant

    @mfmsw2youth

    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?


    sunnyj
    Participant

    @mfmsw2youth

    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

    @modemlooper

    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


    sunnyj
    Participant

    @mfmsw2youth

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


    sunnyj
    Participant

    @mfmsw2youth

    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

    @modemlooper

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


    sunnyj
    Participant

    @mfmsw2youth

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


    sunnyj
    Participant

    @mfmsw2youth

    @modemlooper we are still looking forward to your plugin


    Henry Wright
    Moderator

    @henrywright

    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.


    sunnyj
    Participant

    @mfmsw2youth

    @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