Bug #16682
closedUser cannot see "My sites"
0%
Description
Hi All,
I was on a meeting this morning where the user was sharing her screen.
User: https://commons.gc.cuny.edu/members/towallp/
Site: https://towallp.commons.gc.cuny.edu/
A couple issues here:
1. The user has no "my sites" tab on "Sites" page when logged in
2. Site does not come up as linked to users account
3. Site is not returned in search in sites directory
I am not sure what is going on here but I think there is a bug somewhere in the linking of the site and user.
Thanks!
Files
Updated by Boone Gorges about 2 years ago
- Status changed from New to Reporter Feedback
The site https://towallp.commons.gc.cuny.edu/ is visible only to members of the CUNY Academic Commons (Dashboard > Settings > Reading, blog_public=-1). By default, BuddyPress only returns sites with blog_public=1 in site listings. There's an exclusion if you are either a site admin or you're looking at your own profile https://buddypress.trac.wordpress.org/browser/tags/10.4.0/src/bp-blogs/classes/class-bp-blogs-blog.php?marks=230-234#L216.
I've confirmed that the user is properly associated with the site in the database, and when logged in as a network admin, I'm able to see the site listed at https://commons.gc.cuny.edu/members/towallp/blogs/.
It's possible that, during the screenshare, the user was not logged in to the correct account. Perhaps you could confirm?
Updated by Laurie Hurson about 2 years ago
There's an exclusion if you are either a site admin or you're looking at your own profile.
She is a site admin, so on her home page, shouldn't this site come up in the "My Sites" list?
Maybe my confusion partially stems from my misunderstanding of how the "visible only to members of the CUNY Academic Commons" works.
I assumed that this setting indicated that, when signed in, the user will be able to see her site in my sites on the home page - and other users would be able to see this site in the directory because it is "visible only to members of the CUNY Academic Commons". But this is not correct? If the site visibility is set to "visible only to members of the CUNY Academic Commons" shouldn't the site then be visible to...logged in members of the commons?
Updated by Boone Gorges about 2 years ago
- File Screenshot_2022-08-31_10-30-49.png Screenshot_2022-08-31_10-30-49.png added
- File Screenshot_2022-08-31_10-30-36.png Screenshot_2022-08-31_10-30-36.png added
She is a site admin, so on her home page, shouldn't this site come up in the "My Sites" list?
There are multiple places called 'My Sites' on the Commons, and technically, they don't work the same way.
1. The 'My Sites' tab on the Sites directory https://commons.gc.cuny.edu/sites/?scope=my-sites is powered by the BuddyPress Blogs component
2. The 'My Sites' section of the logged-in homepage is a custom part of our theme, which uses WP's core function get_blogs_of_user()
under the hood
I've just tested with our user-switching plugin, which allows me to act as if I'm the user 'towallp', and I've confirmed that, in both places, the site shows up as expected. See screenshots.
Regarding your comment about the 'visible only...' setting: I concede that these "privacy" settings are somewhat opaque. We use the 'More Privacy Options' plugin, which hijacks a WP setting intended for blocking search-engine robots and repurposes it for general access control; we then have BuddyPress and other plugins on top, which leverage these already jury-rigged settings in an often inconsistent way. However, in this case, I don't think the issue stems from semantic confusion about "visibility" or "privacy", but instead there's some sort of user error at play.
Updated by Boone Gorges over 1 year ago
Laurie, have you heard anything else from the user about this? I'm wondering whether further action is needed on our end.
Updated by Boone Gorges 3 months ago
- Status changed from Reporter Feedback to Abandoned
- Target version set to Not tracked
Closing due to inactivity. Please let us know if more action is needed.