Skip to:
Content
Pages
Categories
Search
Top
Bottom

Suggestion: "My Blogs" should show ALL blogs I'm a member of

  • I tacked this on to http://trac.buddypress.org/ticket/913 but basically it’s this:

    On 1.2-bleeding, if I create a blog, it shows up as my blog. Great. If I am, later, added to a blog someone else created, even as an admin, I do not see this blog under my blogs.

    It would be more logical to list any blog you have back-end access to (so, say, any blog you are more than a subscriber of), since you should be able to easily pop over and post. This confused the daylights out of my most luddite user so I put a shortcut on her browser and she’s happy enough.

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

  • Andrea Rennick
    Participant

    @andrea_r

    Not a BP issue. This is how MU handles the blog, and under My Blogs, it lists blog that you are just an *admin* of, not a member as well.

    the logic is correct, when you visit your neighbour, even if you have the right to search in his garden, you are not the owner of the house… ;)

    This is how MU handles the blog, and under My Blogs, it lists blog that you are just an *admin* of, not a member as well.

    Ahhh, I shall bring it up over on MU, thank you.

    the logic is correct, when you visit your neighbour, even if you have the right to search in his garden, you are not the owner of the house… ;)

    But if your neighbor gave your the keys and said ‘Come over and plant a flower once in a while’ (i.e. gave you editor rights to a blog), it’s now a little bit yours too, isn’t it? ;)

    Semantics and splitting hairs, I agree.


    Boris
    Participant

    @travel-junkie

    Yeah, but even if you do have the key it’s not your responsibility to pay the gas bill, fill up the refrigerator or lock the front door when you get home. You might feed the cat when your neighbour is on holiday, but it’s still not your home :)

    We’re stretching the analogy.

    There should be a way, via the BuddyPress interface, to list all blogs you have ‘keys’ to. What you call them doesn’t matter at the end of the day (My Blogs, Blog Access, whatever(. What, IMO, matters is the fact that an END USER who can write articles on multiple blogs on a BP site, should be able to list what blogs they have access to…

    Like:

    Main Blog – Subscriber

    Joe’s Blog – Admin

    Doug’s Blog – Editor

    After all, don’t we have the ability to list groups we’re a member of? Why is this missing from Blogs?


    Andrea Rennick
    Participant

    @andrea_r

    Again, take it up on the MU side. :)

    I did.

    https://mu.wordpress.org/forums/topic/16167

    If I log in via WPMU as my non-admin and, IN THE DASHBOARD, go to My Blogs, I see them all.

    See: http://img14.imageshack.us/img14/7076/17201025759pm.png

    I’m not an Admin (as that account) of ‘Consensual Reality’ but it shows up, so clearly it’s NOT WPMU that only lists blogs I’m an Admin of.

    I think I’m back to this being a BuddyPress issue.

    It looks like this (out of date for 1.3) how-to addresses what I want…

    https://codex.buddypress.org/how-to-guides/modifying-the-buddypress-admin-bar/

    When I run it, though, I get an unexpected $end, and I’ve managed to work it down to this:

    // sort array of blog objs by $blog->role according to the order of $blog_roles
    // roles not included in $blog_roles array will not be displayed
    function filter_blogs_by_role($blogs) {
    global $bp, $blog_roles;

    $blog_roles[] = __( 'Admin', 'buddypress' );
    $blog_roles[] = __( 'Editor', 'buddypress' );
    $blog_roles[] = __( 'Author', 'buddypress' );
    $blog_roles[] = __( 'Contributor', 'buddypress' );
    $blog_roles[] = __( 'Subscriber', 'buddypress' );

    // get roles
    foreach ($blogs as $blog) {
    $blog->role = get_blog_role_for_user( $bp->loggedin_user->id, $blog->userblog_id );
    }

    // eliminate roles not in $blog_roles
    foreach ($blogs as $key => $value) {
    if (!in_array($value->role, $blog_roles))
    unset($blogs[$key]);
    }

    // sort by $blog_roles sequence if there are any left
    if ($blogs) {
    usort($blogs, 'compare_roles');
    }

    return $blogs;
    }

    It’s bombing out on this line $blog->role = get_blog_role_for_user( $bp->loggedin_user->id, $blog->userblog_id ); with Warning: Attempt to assign property of non-object in /home/conrel/public_html/wp-content/plugins/bp-custom.php on line 72 (that is, that line is #72).

    I’m not quite sure what it’s doing there, but I’m working on it.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Suggestion: "My Blogs" should show ALL blogs I'm a member of’ is closed to new replies.
Skip to toolbar