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.
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?
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.