Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • sunnyj
    Participant

    @mfmsw2youth

    please somebody help me I want to remove avatar cropping process from my site. I would like to make it auto crop as it’s in userpro pluging. Thanks


    sunnyj
    Participant

    @mfmsw2youth

    The more reason I would like an android app for buddypress site is in the cropping of photo when changing the profile avatar. For sometime now this has been giving me a serious headache seeing my website filled up with the default mystery avatars, I sort to find out while and the response I got from everyone was that they could not crop their images on mobile especially when using mini version of some mobile browsers like opera mini, uc browser mini and others which of course is good for minimizing data usage.Even with the normal mobile browser the experience is still very poor. It’s time the developers at buddypress take the issue of mobile version a serious issue. It would be okay if the cropping process in buddypress can automatically detect when on mobile and use the phone hardware to crop the photo before upload. It’s generally best to crop on phone hardware than on mobile browsers, beta still to auto resize and upload would be great. I pray someone can develop a plugin for this.


    sunnyj
    Participant

    @mfmsw2youth

    @somethingelse Pls how do you manage to change it on the edit profile page itself, in the text I will like to do just that and I will be fine.


    sunnyj
    Participant

    @mfmsw2youth

    @henrywright your code not working. Thanks


    sunnyj
    Participant

    @mfmsw2youth

    @modemlooper we are still looking forward to your plugin


    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

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


    sunnyj
    Participant

    @mfmsw2youth

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


    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.


    sunnyj
    Participant

    @mfmsw2youth

    I’m also interested in the answer to this question


    sunnyj
    Participant

    @mfmsw2youth

    @Henry new bug has been found on the code.it fails to get the username
    e.g

    1.before the code we have:
    themeethurpe changed their profile picture 1 week ago

    2.after the code has been added we now have:
    changed his profile picture 2 days, 23 hours ago

    “themeethurpe” as in the above is the username which the code has omitted,however the code has successfully solved the initial problem it was intended to solve,but obviously with it inability to get the username shows that it needs to be reviewed.We appriciate your prompt contribution @Henry.


    sunnyj
    Participant

    @mfmsw2youth

    You’re best here boss


    sunnyj
    Participant

    @mfmsw2youth

    You rock Henry your code works perfectly. Thank you boss


    sunnyj
    Participant

    @mfmsw2youth

    @Henry
    hope it will be okay writing it like this for clearity in case of anything happen? Also do I need to put the php tag as shown below:

    <?php

    // filter gender field

    function custom_activity_text_change_avatar( $entry, $user_id ) {
    $gender = bp_get_profile_field_data( ‘field=Gender&user_id=’ . $user_id );

    if ( $gender == ‘Male’ ) {
    $entry = sprintf( __( ‘%s changed his profile picture’, ‘buddypress’ ), $userlink );
    } else if ( $gender == ‘Female’ ) {
    $entry = sprintf( __( ‘%s changed her profile picture’, ‘buddypress’ ), $userlink );
    } else {
    // the user hasn’t told us if they are male or female so do nothing
    }
    return $entry;
    }
    add_filter( ‘bp_xprofile_new_avatar_action’, ‘custom_activity_text_change_avatar’, 10, 2 );

    ?>


    sunnyj
    Participant

    @mfmsw2youth

    okay Thanks Henry I will try it and get back to you.


    sunnyj
    Participant

    @mfmsw2youth

    I will like to change it to HIS for male,HER for female and their for female I’m comfortable with that.As Henry explain above i think using a filter code like this will do the work only if i know how to correctly apply it in the buddypress core. Please lend your support. Thanks

    “if ( is a male ) {
    // the filter will be ‘his’
    } else if{
    //is a female, the filter will be ‘her’
    }
    else {
    // a group, e.g company; the filter will be ‘their’
    }”


    sunnyj
    Participant

    @mfmsw2youth

    Example:
    “themeethurpe changed their profile picture 4 days, 12 hours ago”

    In the above line of activity “themeethurpe” is a username of a guy who changes his profile picture, but as you can see, “their” above was surpose to be a singular pronoun “his” referring to a man not two or group of people. The same thing happens either for man or woman, I just wish buddypress could differentiate a man from woman in the activities stream using profile information just like facebook and other social network site instead of using plural pronoun “THEIR” for all.


    sunnyj
    Participant

    @mfmsw2youth

    Kindly help out Henry in fixing this filter my problem is not different I have created a profile field Namely gender using radio button in buddypress xprofile members now have opportunity to select their gender male or female. Happy new year friends.


    sunnyj
    Participant

    @mfmsw2youth

    Hi henrywright-1 please be more explicit a lot of us as a beginner are having the same problem. Thanks

Viewing 19 replies - 1 through 19 (of 19 total)
Skip to toolbar