Skip to:
Content
Pages
Categories
Search
Top
Bottom

Disable Avatar Crop

  • Avatar of slayerking
    slayerking
    Participant

    @slayerking

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Avatar of sunnyj
    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?

    Avatar of sunnyj
    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.

    Avatar of @modemlooper
    @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

    Avatar of sunnyj
    sunnyj
    Participant

    @mfmsw2youth

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

    Avatar of sunnyj
    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

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

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

    Avatar of sunnyj
    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.

    Avatar of sunnyj
    sunnyj
    Participant

    @mfmsw2youth

    @modemlooper we are still looking forward to your plugin

    Avatar of Henry
    Henry
    Participant

    @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.

    Avatar of sunnyj
    sunnyj
    Participant

    @mfmsw2youth

    @henrywright your code not working. Thanks

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

You must be logged in to reply to this topic.