Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'crop'

Viewing 25 results - 226 through 250 (of 1,245 total)
  • Author
    Search Results
  • #235869
    mcpeanut
    Participant

    This seems to be a continuous problem for buddypress users and its a problem that crops up ALOT on these forums maybe there should be a sticky thread about this css button issue people are having with various themes and installs? It might stop this same question being asked over and over again by new users? I know it does not happen to everyone but it does happen on quite alot of themes and alot of people are confused how to initially fix this issue.


    @rosyteddy
    can i ask you a question? do you live on these forums? hehe. I thought i spent enough time knocking around here haha.


    @kissui
    after a brief search for you i came across this i aint sure if this can help about the resize issue you have http://stackoverflow.com/questions/26581807/how-to-prevent-a-specific-animate-from-running-via-a-seperate-jquery-script

    #235147
    kyxsune
    Participant

    Found it, Jetpack and specifically the photon module within jetpack was causing a dynamic resize of the generated thumbnails that failed.

    Thanks for your consideration, I hope this helps someone else down the line.

    Same solution as given here: https://buddypress.org/support/topic/avatar-cropping-errors/

    #233975
    Hugo Ashmore
    Participant

    So this ‘dropdown menu’ is not the WP adminbar just the themes main WP menu bar?

    Have you checked with the theme authors whether this is something they’re aware of?

    These issues, although I understand the apparent common denominator seeming to be BP, will tend to be something that perhaps the theme, plugin or whatever third party code was doing wrong or didn’t account for, BP tends to be pretty well tested, as there are quite a few of us working with it and the trunk code day in day out and bar the inevitable minor issues that crop up after a release there tend to be few major ones.

    #233500

    In reply to: Cannot Crop Avatars

    modemlooper
    Moderator

    not sure how they do the set up but sometimes if its an auto install of WP file permissions are off and the crop can break

    #232964
    ouegy
    Participant

    Hi @henrywright

    I’ve taken a slightly different approach as I couldn’t figure out customising the s2member form.

    What now happens is the user registers and is assigned a restricted membership level (level_1) and automatically logged in and redirected to /profile/change-avatar.

    At the point that the user clicks

    <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php esc_attr_e( 'Crop Image', 'buddypress' ); ?>" />

    in change-avatar.php, is there some sort of event hook that could fire on this to change the user’s role eg. make them a full member (level_2)

    It’s a requirement that the user uploads a photo to become a member of the community.

    Thanks again

    #232951
    Henry Wright
    Moderator

    There’s a lot more to uploading an avatar than just saving the meta. Check out xprofile_screen_change_avatar() to see how BuddyPress handles the process.

    Along with saving meta info, you’ll need to handle the actual file and save it to your file system (just as BuddyPress does). Then there’s cropping to think about too.

    Hope this info helps.

    #230066
    danbp
    Participant

    @icaroferreira,

    avatar size are defined in WP settings. And BP use a default size of respectively 50px and 150px.
    With some theme, you have to increase these default size.

    To do so you can add this to your bp-custom or child theme functions.php file.

    /* AVATAR MAX CROP SIZING */
    define ( 'BP_AVATAR_THUMB_WIDTH', 60 );
    define ( 'BP_AVATAR_THUMB_HEIGHT', 60 );
    define( 'BP_AVATAR_FULL_WIDTH', 175 );
    define( 'BP_AVATAR_FULL_HEIGHT', 175 );
    #229787
    cybervang
    Participant

    I’ve had that issue before. I found out a plugin was causing the upload and crop issue.
    Have you tried juggling plugins on and off?

    #206309
    danbp
    Participant

    @mugwumpman,

    you already reported around this in the past, but apparently you didn’t follow the answers. 😉

    https://buddypress.trac.wordpress.org/ticket/5182

    Open a new ticket if you cinsider there is something incorrect with cropping.

    #206293
    Matt
    Participant

    Further update: I’ve narrowed it down to the $aspect_Ratio variable in bp-core-cssjs.php on line 163 which I’ve used a hack to fix the variable for the time being.

    158	<script type="text/javascript">
    159		jQuery(window).load( function(){
    160			jQuery('#avatar-to-crop').Jcrop({
    161				onChange: showPreview,
    162				onSelect: updateCoords,
    163				aspectRatio: 1.72817, // NEW HACKED LINE WITH FIXED-RATIO
    164// ORIGINAL LINE		aspectRatio: <?php echo (int) $aspect_ratio; ?>,
    165				setSelect: [ <?php echo (int) $crop_left; ?>, <?php echo (int) $crop_top; ?>, <?php echo (int) $crop_right; ?>, <?php echo (int) $crop_bottom; ?> ]
    166			});
    167			updateCoords({x: <?php echo (int) $crop_left; ?>, y: <?php echo (int) $crop_top; ?>, w: <?php echo (int) $crop_right; ?>, h: <?php echo (int) $crop_bottom; ?>});
    168		});
    #206274
    Matt
    Participant

    Update: I added
    <?php echo "Avatar size: ".bp_core_avatar_full_width()."x".bp_core_avatar_full_height()." (".bp_core_avatar_thumb_width()."x".bp_core_avatar_thumb_height()." thumb)"; ?>
    to change-avatar.php and it output “Avatar size: 1920×1111 (86×50 thumb)” next to the crop, which is still only allowing a square ratio crop. (View screenshot)

    That means it must be to do with the cropper itself then, right?

    #198012

    In reply to: Add an alt @user_name

    mcpeanut
    Participant

    @ChiefAlchemist I agree with alot of what you said above, however i havent tested 2.1 yet as im still on 2.0.3, i am a little bit wary of updating at the min after reading various problems already cropping up for people. but surely the best way around this would be to let the new @ mentions only show users friends?

    I mean if you could only show friends when mentioning someone then the admin account would never be visible to anyone unless the admin started adding friends lol, if you wanted to mention someone that was not your friend you would have to just type ther full username? what do you think?

    Infact i would prefare it only to visibly show my friends when mentioning someone instead of the whole site members lol, this way if you was mentioning someone that wasnt a friend you would have to know exactly who you wanted to mention like i just did with you.

    so to sum up what i just said.
    1. auto suggest should only show friends
    2. mentioning someone outside of you friends should require you to know exactly who you wanted to mention

    #192891
    @mercime
    Participant

    .. profile avatars. They used to be circular and now they seem to be square and cutting off on the profile.

    Your avatar in your profile pages are all circular. Have you tried clearing cache?

    also noticed that when trying to change the avatar i cannot crop it :/

    Can’t say what the issue is as the profile pages of the throw-away account is disabled, i.e., pages related to the account lead to 404 pages.

    #192890
    avitmusic
    Participant

    user: thomas
    password: 1234567890

    well i can see the problem when i inspect the element but i am not sure how to correct even the margin problem on the avatar.

    also noticed that when trying to change the avatar i cannot crop it :/

    #189663
    rynoesco
    Participant

    Yes, I understand that css could potentially break js. I was just referring to simple styling within css, not changing class names or anything like that. Thank you for the links. I’ll take a look at them and see if those will help with my avatar cropping issue.

    #189645
    danbp
    Participant

    If you think it is not CSS who breaks the js query working in the background, i guess you think false.

    For example if you changed some class name, the script can’t correctly handle the cropping.

    Here a very old topic, related to a css problem with avatar. Nothing to do with yours today, but to make you understand that playing with CSS is not a innocent game.

    You could also read this related to avatar customization on the codex.

    Have you deactivate the actual theme and tried with 2014 ?

    Now, at least, as you use a premium theme, you have to ask on the theme support if you encounter issues. We cannot help much for such themes, as we have no access to them.

    #189003
    danbp
    Participant

    @juanmgonzalez,

    thank you for your reply !
    The php GD2 library is necessary on your server to handle images.

    To all readers:

    In case of issues with common image handling and/or image cropping, ensure that your php has GD library enabled.

    On hosted servers, it is generally the case, but not on local with WAMP for example.

    Making a phpinfo will help you.

    Read also here about other server requirements (required or optionnal)

    #189000
    Juan M. Gonzalez
    Participant

    I had this same error, “There was a problem cropping your avatar”. After trying many things, what finally worked was installing php5-gd and do a restart.

    On Debian:

    apt-get install php5-gd

    After this, usually people restart Apache server. But in this case there was Nginx server instead, and restarting it wasn’t enough. A PHP restart was needed.

    So, I went to Webmin control panel to restart the Nginx PHP fcgi server:

    System > Bootup and Shutdown > php-fcgi-…

    And avatar cropping started to work for BuddyPress groups, profiles…

    #188877
    Learner
    Participant

    Hi !

    I recently changed my WordPress Theme to ” Customizer ” and this error message crops up at the bottom of every page thereafter.

    Disabling the plugin : Social Login ” of Login Radius makes it go away…

    So, either the theme or the [plugin is causing this….

    Alll solutions appreciated !

    #187699
    elshobokshy
    Participant

    Okay so I created a file named bp-custom.php and uploaded it here: wp-content/plugins/bp-custom.php
    And wrote this code in it:

    define ( ‘BP_AVATAR_THUMB_WIDTH’, 50 );
    define ( ‘BP_AVATAR_THUMB_HEIGHT’, 50 );
    define ( ‘BP_AVATAR_FULL_WIDTH’, 50 );
    define ( ‘BP_AVATAR_FULL_HEIGHT’, 50 );
    define ( ‘BP_AVATAR_ORIGINAL_MAX_FILESIZE’, 5120 );
    define ( ‘BP_AVATAR_DEFAULT’, ‘http://animalsfunnypictures.com/wp-content/uploads/2014/08/cropped-Untitled-1.png&#8217; );
    define ( ‘BP_AVATAR_DEFAULT_THUMB’, ‘http://animalsfunnypictures.com/wp-content/uploads/2014/08/cropped-Untitled-1.png&#8217; );

    But nothing changed in my site.. any ideas why?

    giorgosnl
    Participant

    @mercime Thanks for pointing this. In my case it is a theme issue as it is already redirecting to the admins profile before crop is done. It is redirecting already when I click on upload.
    Patch is solving the redirect after crop is done. I notified the theme author.

    as mentioned in ticket 5580:

    It’s a great idea, but very annoying if you are an admin editing a different user’s avatar. Instead of getting redirected to their profile after the avatar crop, you get redirected to your own profile every time

    #184502
    @mercime
    Participant

    Why is there no “Profile” page listed among the “Pages” portion of this plugin???? … Please help me understand why I cannot upload or crop avatar images.


    @gt-director
    RE Profile pages missing: probably theme issue or BP missing files in upload. So Change to the Twenty Fourteen theme to see if issue is resolved. If not, keep Twenty Fourteen activated and re-upload BuddyPress plugin manually.
    RE cannot upload or crop avatar uploads: Did you enable avatar uploads in Settings > BuddyPress > Settings? https://mercime.files.wordpress.com/2013/12/bpsettings1.png

    #184492
    GT Director
    Participant

    I’m very sorry. This is all so confusing for me – I didn’t realize that there was a difference between the WordPress “Dashboard”, (which is the v3.4.4 that I initially referred to when I started this thread) and the “WordPress” that I have installed (Which is v3.9.1). This version of WP should be more than compatible. 🙂 Please help me understand why I cannot upload or crop avatar images. Thank you for your help.

    #184446
    juhanib
    Participant

    I was able to get the avatar form to show up with this snippet:

    
    function setup_custom_nav() {
      global $bp;
      bp_core_new_subnav_item( array(
        'name' => __( 'Change Avatar', 'buddypress' ),
        'slug' => 'change-avatar',
        'parent_url' => $bp->loggedin_user->domain . 'settings/',
        'parent_slug' => 'settings',
        'screen_function' => 'ca_screen_function',
        'position' => 30,
      ) );
    }
    
    add_action( 'bp_setup_nav', 'setup_custom_nav');
    
    function ca_screen_function() {
      add_action( 'bp_template_content', 'change_profile_picture_screen_content' );
      bp_core_load_template( apply_filters( 'xprofile_template_change_avatar', 'members/single/plugins' ) );
      xprofile_screen_change_avatar();
    
    }
    
    function change_profile_picture_screen_content() {
      bp_get_template_part( 'members/single/profile/change-avatar' );
    }
    

    But when I try to upload a new avatar the resizing/cropping screen doesn’t show up.

    Tommy White
    Participant

    @frisch11 I have the same problem today! Can you tell me what you deleted? I removed the BP plugin, deleted all tables in the DB related to wp_bp and also wp_bb (forums). Removed the avatar folder in uploads for images but I still have the same problem ;(

    My problem is 100% the same as yours. Everything is set, upload and crop works fine but the image isn’t included in the HTML to appear.

Viewing 25 results - 226 through 250 (of 1,245 total)
Skip to toolbar