Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • Alberto
    Member

    @overdrive

    Yes, I found a ticket filled so I think It will be corrected on next version:
    https://trac.buddypress.org/changeset/3141

    For the moment, Is there any way to replace by_core_avatar_url() function without hacking de core directly?
    Maybe replacing an action or applying a filter?


    Alberto
    Member

    @overdrive

    Hi! I’m having same issue. No avatars on blogs.

    On main buddypress blog, avatars works great and their url’s are like this:
    http://example.com/wp-content/uploads/avatars/1/aab71f7a93155ef3cabb5d9660686005-bpthumb.jpg

    On the other blogs, avatars aren’t displaying. Their url’s are like this:
    http://example.com/files/avatars/1/aab71f7a93155ef3cabb5d9660686005-bpthumb.jpg

    My installation info:
    WP: 3.0.3 (updated from a WP3.0)
    BP: 1.2.6
    Multisite & subdomains.

    My .htaccess:
    `# BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ – [L]

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

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule . index.php [L]
    # END WordPress`

    Is it fixed for next release of buddypress? or is there a patch that I could apply?

    Thanks at all


    Alberto
    Member

    @overdrive

    I’m trying to do something like this but only works with no ajax:

    `
    function valid_blog($blog_name) {
    $blacklist = array (‘blog1’, ‘blog2’, ‘blog3’);
    if (in_array(strtolower($blog_name), $blacklist)) {
    return false;
    }else{
    return true;
    }
    }

    function remove_invalid_blogs_from_loop($b, $blogs) {
    $blogs_new = array();
    foreach ($blogs->blogs as $key => $blog) {
    if (valid_book($blog->name)) {
    array_push($blogs_new, $blog);
    }else{
    $blogs->blog_count = $blogs->blog_count-1;
    $blogs->total_blog_count = $blogs->total_blog_count-1;
    $blogs->pag_num = $blogs->pag_num-1;
    }
    }
    $blogs->blogs = $blogs_new;
    return $blogs;
    }

    add_action(‘bp_has_blogs’,’remove_invalid_blogs_from_loop’, 10, 2 );`

    Any idea of what is the best way to do this?

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