SPECIAL OFFER: Only $59 for access to everything in OSTraining for 1 year! You save $85!  1
Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!

Membership site visibility

3 years 4 months ago #125724 by 2ways
Membership site visibility was created by 2ways
Hi Folks,

I'm building a membership site and I'm struggling with one fundamental issue, visibility. I've attached a table that describes the situation, almost. My issues are only in Columns B & C. The rest is straightforward, mostly permissions and filters.

To complete the explanation of the table, the 'tildes' in Column B indicate the ability for any user to opt out of the public directory, but, regardless of your opt in/opt out status for the public, Members can always see other Members' profiles and can never see Friends' profiles. 'Public' means anonymous users.

There are several aspects of my struggles:
1. When one of my Members is private, they need to be invisible. That is, no one can know (except other members) that they even exist, e.g. an 'Access Denied' page when going to their profile isn't good enough, no one should be able to see their name anywhere in the first place.
2. I can create a membership directory in Views, using filters and the Access feature (which may have come through one of the zillion modules I have downloaded to try to solve this problem, can't remember) that displays the right Members for the right Users, but that means creating individual Views for each combination. While I can do that, it seems inelegant and un-Drupal.
3. Pursuant to Point 2, creating different Views then means having different menu links to get people to the right directory, but I am not sure how to filter menu links based on Roles. I could create completely separate menus and then control the Block visibility based on Roles, but, again, seems inelegant.
4. I could remove the Friend category altogether, so that Friends are signed up for a newsletter through the database, but never become authenticated users on the site, but that only removes one aspect of the problem.

I'm sure I'm forgetting some of my issues here, but perhaps you get the idea.

It seems like I could solve this problem if there was a way to make visibility a feature of the individual user. The Hide Profile module deals with profiles, but doesn't make the user invisible. The Hide User One module deals with User One, but no one else. Content Access and associated modules are about content, not users. Privacy Per User is nearly the same as Hide Profile and Profile 2 Privacy is about fields, not users.

Okay. That's more than enough, probably. Thanks in advance!

Cheers,
Lewis

This message has an attachment image.
Please log in or register to see it.

Please Log in to join the conversation.

3 years 4 months ago #125741 by Daniel Pickering
Replied by Daniel Pickering on topic Membership site visibility
Hi Lewis,

Sounds to me like a job for Organic Groups. we have some guides on it.
www.ostraining.com/class/og2 also you might wants www.drupal.org/project/og_private_content module

Thanks
Daniel

Please Log in to join the conversation.

3 years 4 months ago #125742 by 2ways
Replied by 2ways on topic Membership site visibility
Thanks, Daniel.

I've had long, largely unhappy dealings with OG in the past, so was trying to avoid it.

Having had another day to ponder (and watch lots more of your videos!), I'm wondering whether Views can actually do the job.

I could create a view of public profiles only and then a view of all profiles, use the view access controls to limit the roles that see the view, place both views as a main menu link, but hopefully since the menu link visibility is determined by the content only the appropriate menu link shows up for a particular role.

Does that make sense?

Lewis

Please Log in to join the conversation.

3 years 4 months ago #125743 by Daniel Pickering
Replied by Daniel Pickering on topic Membership site visibility
Hi Lewis,

Yes in theory that works if you do not have the permissions to view a menu link everything slides along.

Thanks
Daniel
The following user(s) said Thank You: 2ways

Please Log in to join the conversation.

3 years 4 months ago #125744 by 2ways
Replied by 2ways on topic Membership site visibility
Am working on this solution now. Will see how I like it. Still seems slightly inelegant, but it is simple, which makes me happy.

Thanks again,
Lewis

Please Log in to join the conversation.

3 years 4 months ago #125745 by Daniel Pickering
Replied by Daniel Pickering on topic Membership site visibility
Hi Lewis,

Let us know how you get on

Thanks
Daniel

Please Log in to join the conversation.

Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!