Skip to:
Content
Pages
Categories
Search
Top
Bottom

User Avatars won’t show up in blogs outside buddypress site.


  • chestnut_jp
    Member

    @chestnut_jp

    I posted the ticket at: http://trac.buddypress.org/ticket/2968

    Though this bug exsists in BP1.2.7, I chose 1.2.6 in creating the ticket as there was no choice of 1.2.7.

    Avatars that users uploaded for themselves are stored in /wp-content/uploads/. the upload_dir if settled at /wp-content/uploads for the primary site(= buddypress site) by WordPress 3.x.

    Looking at the line 570 of /bp-core/bp-core-avatars.php:
    `$upload_dir[ ‘baseurl’ ] = str_replace( get_blog_option( $current_blog->blog_id, ‘home’ ) , get_blog_option( BP_ROOT_BLOG, ‘home’ ), $upload_dir[ ‘baseurl’ ] );`

    This points the upload_dir at /wp-content/blogs.dir/files/xxx, and absolutely wrong.

    Should be changed to:
    `$upload_dir[ ‘baseurl’ ] = get_home_url( BP_ROOT_BLOG, ‘/’ ) . get_blog_option( BP_ROOT_BLOG, ‘upload_path’);`

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘User Avatars won’t show up in blogs outside buddypress site.’ is closed to new replies.
Skip to toolbar