Skip to:
Content
Pages
Categories
Search
Top
Bottom

Url being retrieved strangely

  • @pandragon

    Member

    What I am running:

    WordpressMU – Not sure what version It’s only 2 day since I downloaded and installed though

    Buddypress – Not sure what version It’s only 2 day since I downloaded and installed though

    Custom theme of my site

    I put a post in the avatar forum as well but then realized it wasn’t a support topic.

    Basically the thumbnails are uploading but when it comes to

    “crop image” I get 2 blank images.

    What I see is happening is it’s trying to grab the avatar under this url

    http://www.pandragon.com/home/pdks/public_html/avatars/2/avatar14885_1.jpg

    Which doesn’t exist – However when I delete “home/pdks/public_html/” and enter the following url into the browser:

    http://www.pandragon.com/avatars/2/avatar14885_1.jpg

    The avatar appears.

    How and why is it inserting “home/pdks/public_html” ?

    I’ve looked everywhere and I can’t see it.

    Here is another screenshot of the crop avatar area

    http://www.pandragon.com/pan_avatar.jpg

    Any help would greatly be apprecitated.

    Also I would like to be able to add links into activity feed/users comments/forum posts etc – I would like a general “link” icon and then it popups to insert a link into what you are typing. Does anyone know how I would be able to do this – I have limited wordpress knowledge so the easiest fix would be best :)

Viewing 6 replies - 1 through 6 (of 6 total)
  • @pandragon

    Member

    Anyone know how to fix this?

    @pandragon

    Member

    Or anyone know who sells buddypress editor services??

    Ok guys, @pandragon has the solution. Here it is.

    At the bottom of the file copy paste these in over the ones that are there.

    This is the edit in bp-core-avatar.php that fixed my problem :

    function bp_core_avatar_upload_path() {

    if ( bp_core_is_multisite() ) {

    if (strlen(get_blog_option( BP_ROOT_BLOG, ‘upload_path’ )) < 3) {

    update_blog_option( BP_ROOT_BLOG, ‘upload_path’, ‘wp-content/uploads’ );

    }

    $path = ABSPATH . get_blog_option( BP_ROOT_BLOG, ‘upload_path’ );

    }

    else {

    if ( !$path = get_option( ‘upload_path’ ) )

    $path = WP_CONTENT_DIR . ‘/uploads’;

    else

    $path = ABSPATH . $path;

    }

    return apply_filters( ‘bp_core_avatar_upload_path’, $path );

    }

    function bp_core_avatar_url() {

    if ( !bp_core_is_multisite() )

    return WP_CONTENT_URL;

    return apply_filters( ‘bp_core_avatar_url’, get_blog_option( BP_ROOT_BLOG, ‘siteurl’ ) . ‘/wp-content’ );

    //print get_blog_option( BP_ROOT_BLOG, ‘siteurl’ ); exit;

    }

    Thank you pandragon!

    @kchirene

    Participant

    Glad it worked for you :) That means it works for WPMU and WP plugins of buddypress.

    @pandragon

    Member

    bumping this for myself. Might need it after update lol

    @ajohnson

    Member

    this fixed mine as well. good find!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Url being retrieved strangely’ is closed to new replies.
Skip to toolbar