Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • Mike Henderson
    Participant

    @mike3ike

    @mercime Shouldn’t this functionality work in the default theme without any customization?


    Mike Henderson
    Participant

    @mike3ike

    I’m having the same issue with BP 1.2.4.1 and WP 3.0-beta2-14960 upgraded from MU 2.9.2, subdirectory install, BP installed on secondary blog.


    Mike Henderson
    Participant

    @mike3ike

    .activity-list li:hover{ background: #EAEAEA; }


    Mike Henderson
    Participant

    @mike3ike

    Peter you may already know this but: under mange plugins, Group Documents shows up as Network Only with a Network Activate option. I’m not sure if this is by design? I don’t think this plugin needs to be activated site wide? I’m using 3.0beta1 MS upgraded from WPMU 2.9.2, BP installed on a secondary blog. You may already have a fix for this.

    Great work on the plugin. Thanks.
    Mike


    Mike Henderson
    Participant

    @mike3ike

    There are many threads on this issue, I suggest starting with this one:
    https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/avatar-upload-issues/


    Mike Henderson
    Participant

    @mike3ike

    There are many threads on this issue, I suggest starting with this one:
    https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/avatar-upload-issues/


    Mike Henderson
    Participant

    @mike3ike

    Seems to be showing for me. Went ahead and made a pastebin though: http://buddypress.pastebin.com/NZKUck7F


    Mike Henderson
    Participant

    @mike3ike

    Here is the code with more before or after:


    /* Move the file to the correct upload location. */
    if ( !empty( $bp->avatar_admin->original ) ) {
    bp_core_add_message( sprintf( __( 'Upload Failed! Error was: %s', 'buddypress' ), $bp->avatar_admin->original ), 'error' );
    return false;
    }

    /* Resize the image down to something manageable and then delete the original */
    /* HACK made some changes to check image parameters more carefully */
    $_size = getimagesize( $bp->avatar_admin->original );
    if ( $_size[0] > BP_AVATAR_ORIGINAL_MAX_WIDTH ) {
    $_thumb = wp_create_thumbnail( $bp->avatar_admin->original, BP_AVATAR_ORIGINAL_MAX_WIDTH );
    // Need to check if upload succeeded - issue with small files!
    if ( is_object($_thumb) && get_class($_thumb) == 'WP_Error' ) {
    bp_core_add_message( sprintf( __( 'Upload Failed! Error was: %s', 'buddypress' ), $_thumb->get_error_message()), 'error');
    return false;
    }
    $bp->avatar_admin->resized = $_thumb;
    }

    $bp->avatar_admin->image = new stdClass;

    /* We only want to handle one image after resize. */
    if ( empty( $bp->avatar_admin->resized ) )
    $bp->avatar_admin->image->dir = $bp->avatar_admin->original;
    else {
    $bp->avatar_admin->image->dir = $bp->avatar_admin->resized;
    @unlink( $bp->avatar_admin->original );
    }

    /* Set the url value for the image */
    $bp->avatar_admin->image->url = str_replace( WP_CONTENT_DIR, BP_AVATAR_URL, $bp->avatar_admin->image->dir );

    return true;
    }


    Mike Henderson
    Participant

    @mike3ike

    @Phlux0r added your code and it’s now working for me. Thanks!

    @Chad I wasn’t getting the image cropper before I added the code. Now getting the cropper and a successful upload with no errors.


    Mike Henderson
    Participant

    @mike3ike

    @ipstenu

    I’ve read some of your posts about the sizing issue. The size doesn’t seem to effect my install. Just tried a 280×187, 420×280, same error with both group and individual avatars.


    Mike Henderson
    Participant

    @mike3ike

    I’m getting the right url path thanks to Chads post. Still getting a error when trying to upload a group avatar and a member avatar. Another tester was able to upload on a windows machine. Here is the error:

    Catchable fatal error: Object of class WP_Error could not be converted to string in /var/www/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 281

    WP 3.0-beta

    -Multisite upgraded from MU 2.9.2

    -using subdirectorys

    BP 1.2.3

    -installed on secondary blog

    -modified the bp_core_avatar_upload_path() to use upload_url_path

    -modified htaccess RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

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