Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'crop'

Viewing 25 results - 1,126 through 1,150 (of 1,245 total)
  • Author
    Search Results
  • #44992

    Firstly I notice that your Avatar cropper javascript is failing on registration. Also looks like bits of your site are missing, and messing with the BuddyBar (sub-sub menus aren’t appearing on hover.)

    Otherwise, it’s working the way you have it setup. If what you’re asking is “why doesn’t my home theme look like testbp.org” it’s because you didn’t change your active home theme in WordPress. :)

    Not sure what’s up with your member theme though. Might be missing some files or have some funky CSS or JS somewhere. Haven’t really looked into it for you.

    #44946
    Marcin Biegun
    Participant

    I’m afraid that many things i changed could be written much more simplier using build in wpmu and buddypress functions so if anybody see such a situation, please write about it here.

    I think i finished enabling buddypress sitewide with same data for each site. Last changes i made were made in core files – can i move them somehow outside to leave core files as they are?

    Change to bp-core.php enabling buddypress dirs on additional sites:

    line 16:

    if ( !defined( 'BP_ROOT_BLOG' ) ) {

    global $current_blog,$wpdb;

    $blog_url = get_blog_option($current_blog->blog_id, 'siteurl' );

    $blog_url_pieces = explode("/", $blog_url);

    $blog_url_pieces = explode(".", $blog_url_pieces[2]);

    if (isset($blog_url_pieces[2]) && $blog_url_pieces[2]!='')

    $blog_url = $blog_url_pieces[1].'.'.$blog_url_pieces[2];

    else

    $blog_url = $blog_url_pieces[0].'.'.$blog_url_pieces[1];

    $query = "SELECT * FROM {$wpdb->blogs} WHERE domain='".$blog_url."'";

    $blog = $wpdb->get_row($query);

    define( 'BP_ROOT_BLOG', $blog->blog_id );

    }

    Change to bp-core-avatars.php solving issue with wrong avatars urls:

    In function bp_core_render_avatar_cropper()

    $src = str_replace( array(ABSPATH), get_blog_option( 1, 'siteurl' ).'/', $new );

    In function bp_core_get_avatar()

    $url =get_blog_option(1, 'siteurl' ) . '/' . $avatar_file;

    #44925
    nightstalker101
    Participant

    No one here, that has solution?

    #44431
    Ed Lass
    Participant

    I’m having a cropping issue. Also the images appear black. This is in both RC1 and 1.0 (skipped RC2).

    Uploading and cropping work in every browser we’ve tried except for IE.

    Dace, are you using IE by any chance?

    Is IE support a known issue?

    #44248

    In reply to: Avatars not working

    alunsina
    Participant

    my avatars used to work pre buddy press 1. after updating, i now have this same exact issue.

    able to upload images but cannot crop, after submitting, avatar image turns to black.

    i have followed all of the instruction/suggestion in this thread plus a couple more in others. and yes, i do have 777 on blogs.dir. and GD Image Lib.

    it is interesting since i thought buddy press 1, this issue is supposed to be fixed?

    thanks!

    Nirok
    Participant

    Hey, i was using a customised theme, however i just tried it with the default theme and the same thing occurs there… i’m running WPWU 2.7.1 and the latest BP version that you just released. I’ve just tested this out on the previous version i was testing with WPWU 2.7 and BP RC1 and the same thing occured there. I’m now wondering if it is perhaps a permission issue? How does Buddy Press work with the group avatar? The profile avatars are working fine. Is there a folder somewhere which is created saving the adjusted images?? maybe the permissions arn’t writable?

    Andy Peatling
    Keymaster

    Are you using the latest default themes? What version WPMU/BuddyPress?

    #43540
    dallasclark
    Participant

    Hi Enlightenmental1,

    The functionalities/features of the Photo Album plugin so far are:-

    * Create unlimited number of albums

    * Inserted unlimited number of photos into each album

    * Album Cover Selector

    * User comments per album and per photo

    * Owner of the album/photo can moderate all comments

    * Users can alter their own comments in the album/photo

    * Automatic image resizing and optimisation

    * Permalinks to albums and photos

    My plan (which can change) is as follows (in no particular order):-

    * Twitter Integration

    * JavaScript Thumbnail Cropping

    * Create an AJAX driven interface – but only when the main extras of the plugin are complete (easier this way and for SEO reasons)

    * Website Administrator Settings – number of albums, photos users can have, and/or user upload limits.

    * Handle other media like videos.

    I generally don\\\’t like to release a unfinished product until it\\\’s stable enough in my own opinion, otherwise it\\\’s too hard to administrate feedback and ideas when I know some little parts are broken here and there.

    However, if anyone would like to get a glance at the plugin first, drop me an email though my website (http://www.dallasjclark.com/contact.php) or directly here on BP.

    In the future:

    I will be happy for other developers to make improvements or the general public to submit ideas, however every line of code will be moderated and thoroughly checked. The licence of the plugin will be GPL sometime soon.

    Donations:

    I have in the past tried to do things for free, however when you have a home loan to pay and a family to look after, doing work for free isn\\\’t as easy. Especially when I have an endless number of projects lined up that will pay me.

    The plugin I\\\’ve created so far, already has a sponsor but only a small one. I\\\’m working on this plugin 3 hours a week, and both the sponsor and I would like to see more. I\\\’m not asking anyone to fork out hundreds of $\\\’s (would be nice and I would only ever be so kind) but it would be great to get a few dollars here and there.

    For anyone\\\’s interest for my credibility, these are some of the projects I\\\’ve worked on and currently working on.

    Free Projects (see I did do some free work :P)

    * Particls – http://www.particls.com

    * Peepel – http://www.peepel.com (25% of my development time was paid for)

    Paid Projects

    * WOMF – http://www.womf.com – In Particular v3 (http://cairns.womf.com)

    * Fitnice – Gym / Club Membership Management and Billing Software – converting to Adobe AIR and iPhone shortly.

    There are more projects but some of them are private and cannot be discussed.

    Any further queries, let me know.

    #42812
    Jeff Sayre
    Participant

    Having problems uploading an avatar? Do they turn black? Do they not show up at all? Does the cropping tool malfunction?

    https://buddypress.org/forums/topic.php?id=302#post-1212

    https://buddypress.org/forums/topic.php?id=1960#post-10404

    Some good advice on how to change blogs.dir directory permissions: https://buddypress.org/forums/topic.php?id=1153

    Here is a rule of thumb. You do not want to try uploading too big or too small of an avatar file. By default, BuddyPress sets the small avatar at 50 by 50 and the large avatar at 150 by 150. So, if your source image is smaller than 150 on at least one of its dimensions, you could have issues with creating the large avatar. If it is smaller than 50 on at least one of its dimensions, you could have issues with creating the small and large avatar.

    Finally, if you are still having issues after following the linked advice, you may have a WPMU plugin conflict–especially if you are using any plugins for image manipulation or display. Here is a list of plugins that can cause conflicts that users have reported to date:

    1. NextGen Gallery
    2. WP-cycle
    3. lightbox
    4. Dynamic Content Gallery

    To figure out if you have plugin issues, follow the standard WPMU protocol for determining plugin conflicts.

    #42744
    Wythagy
    Participant

    Okay weird, this time I edited the values of the height’s and width’s of the bp-core-avatars.php file and it worked fine…I give up on trying to understand these things…I’m either a little retarded or things choose to work only when they know I’ve tried everything and I’ve given up and asked someone on the forum…

    ;-)

    #42743
    Wythagy
    Participant

    Yea I looked there and it seems like it takes the variables straight from the bp-core-avatars.php script, so it doesn’t look like I can change any values per se. Like I said, what is weird is that the draggable cropper is showing up as the right rectangular 2:3 ratio shape…it’s just not saving properly (I can tell it is just saving a 1:1 ratio square and stretching it into the 2:3 ratio rectangle).

    #42735
    Jeff Sayre
    Participant

    Wythagy-

    I don’t have time to look into this in depth, but check out bp_core_add_cropper_js() in bp-core-cssjs.php.

    #42733
    Wythagy
    Participant

    I\’m assuming it is something in here that I need to change in addition to the avatar size values, I just haven\’t yet figured it out…

    // Perform v1 crop

    $v1_dest = apply_filters( ‘bp_avatar_v1_dest’, dirname($source) . ‘/’ . preg_replace(‘!(\.[^.]+)?$!’, $v1_filename . ‘$1’, basename($source), 1), $source );

    if ( $from_signup )

    $v1_out = wp_crop_image( $source, $v1_x1, $v1_y1, $v1_w, $v1_h, CORE_AVATAR_V1_W, CORE_AVATAR_V1_H, false, $v1_dest );

    else

    $v1_out = wp_crop_image( $source, ($v1_x1 * $multi), ($v1_y1 * $multi), ($v1_w * $multi), ($v1_h * $multi), CORE_AVATAR_V1_W, CORE_AVATAR_V1_H, false, $v1_dest );

    // Perform v2 crop

    if ( CORE_AVATAR_V2_W !== false && CORE_AVATAR_V2_H !== false ) {

    $v2_dest = apply_filters( ‘bp_avatar_v2_dest’, dirname($source) . ‘/’ . preg_replace(‘!(\.[^.]+)?$!’, $v2_filename . ‘$1’, basename($source), 1), $source );

    if ( $from_signup )

    $v2_out = wp_crop_image( $source, $v2_x1, $v2_y1, $v2_w, $v2_h, CORE_AVATAR_V2_W, CORE_AVATAR_V2_H, false, $v2_dest );

    else

    $v2_out = wp_crop_image( $source, ($v2_x1 * $multi), ($v2_y1 * $multi), ($v2_w * $multi), ($v2_h * $multi), CORE_AVATAR_V2_W, CORE_AVATAR_V2_H, false, $v2_dest );

    }

    #42701

    In reply to: Avatar Upload

    vito687
    Participant

    I have narrowed it down, I found where the widget options are stored, within wp-1-options table correct? well within the new install I uploaded this table and the crop stopped working, so my problem is within this table… so it seems that fortunately that its only something stored in this table so I shouldnt have to change my whole database and install to a new one if I can fix it… any idea what line would control this in the options?

    #42419
    nightstalker101
    Participant

    I had the same problem. Download the newest trunk and it will work.

    #42418
    nightstalker101
    Participant

    Okay, I meant the current trunk.

    In the earlier trunk I had categorie list, like thsi one:

    http://testbp.org/groups

    I tested long and short group descriptions. Whe I had a long description, the text (Group description) was automatically cropped and only the first few lines were displayed. Similiar to the excerpt funcrion from WordPress.

    After the cropped text, I got brackets [..] displayed. Now, in the new trunk, the whole description gets displayed. Even if it has about 100 lines.

    So waht can I do, to get the group description text cropped after x lines?

    #42348
    yeyeman9
    Participant

    I am using the normal theme. Nothing has been changed..

    #42346
    takuya
    Participant

    This has been discussed here, and I belive it’s a bug since the release to the latest.

    Someone else suggested another cropping tool (which I liked also), but not sure if Andy is going to implement it. I’m not either sure when this cropping bug is fixed completely for anyone using buddypress.

    This cropping code is awesome… but not sure how to replace with the default cropping tool on buddypress.

    http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop/

    #42344

    Actually, I’ve had the exact same problem myself.

    Are you using a custom theme by chance? I think it has something to do with having a parent container element be less than 100% width. But then again Andy has it working fine here, so I’m not really sure.

    #41864
    Jeff Sayre
    Participant

    You say it\’s jquery function, but above code comments out jquery and prototype as default. Perhaps this is the reason why?

    I never answered your question about jQuery being used for avatar cropping. If you look for the bp_core_add_cropper_js function, you\’ll see it exists in the file bp-core-cssjs.php. That function relies upon jQuery to do the avatar cropping.

    #41861
    Jeff Sayre
    Participant

    If you have not yet done so, you should update your trac record with your findings.

    Also, it does appear that in a future version of this component file, the avatar size limits will be configurable by the admin. In bp-core-avatars.php, see the TODO comment:

    /* Define settings for avatars. [TODO] This will eventually end up as admin configurable settings */
    define( 'CORE_AVATAR_V1_W', apply_filters( 'bp_core_avatar_v1_w', 50 ) );
    define( 'CORE_AVATAR_V1_H', apply_filters( 'bp_core_avatar_v1_h', 50 ) );
    define( 'CORE_AVATAR_V2_W', apply_filters( 'bp_core_avatar_v2_w', 150 ) );
    define( 'CORE_AVATAR_V2_H', apply_filters( 'bp_core_avatar_v2_h', 150 ) );

    #41848
    takuya
    Participant

    I think so, but if I used an image smaller than 50×50…then it might also happen for small avatars. But I wouldn’t think people is going to do that.

    #41842
    Jeff Sayre
    Participant

    Yes, that does make sense.

    If you look at bp-core-avatars.php, it sets the small avatar version at 50 by 50 and the large at 150 by 150. So, if your source image is smaller than 150 on at least one of its dimensions, you could have issues with the large avatar creation.

    Do you see the black bar only on the large avatar version?

    #41836
    takuya
    Participant

    I think I found the cause of all the errors.

    If the original image is smaller than 150×150, then it produces the black areas within the result avatars.

    solution:

    a) we need a warning message the original is too small to generate avatar.

    or

    b) even if it’s smaller, the script should calculate and create a zoomed avatar, so the black areas are not generated.

    #41835
    takuya
    Participant

    It’s only a few days ago since I started to debug changing avatars… ;)

    btw, I found this code within bp-xprofile-cssjs.php

    //wp_enqueue_script(‘jquery’);

    //wp_enqueue_script(‘prototype’);

    wp_enqueue_script(‘scriptaculous-root’);

    wp_enqueue_script(‘cropper’);

    add_action( ‘wp_head’, ‘bp_core_add_cropper_js’ );

    You say it’s jquery function, but above code comments out jquery and prototype as default. Perhaps this is the reason why?

Viewing 25 results - 1,126 through 1,150 (of 1,245 total)
Skip to toolbar