Ready to get started?Download WordPress


Problem with user accounts on a WPMS site (10 posts)

  1. jetansey
    Posted 1 year ago #

    I have installed WP MS with 4 sites as sub-directories. I have added different users to each of the sites. When I log in as a user of one site, I can see content on all the other sites even though that account is not listed as a user of that site.
    I only want users registered on a site to see the content of the site they're registered on, what do I need to do?

  2. Use a membership plugin to restrict each site for only users of the site.

    By default, you're a network subscriber to all sites, sort of a psudeo member.

  3. jetansey
    Posted 1 year ago #

    Thanks Mike. I did try the "members" plugin, but I can't get it to work.

    • I can see how you can restrict access to anyone not logged in, but they are logged into the network.
    • I can set up a new role and use content permissions on each post, but then I have to do this on every post, and I don't see a way to make this a default
    • I tried setting up a role called cantread and turned off the read capability for that role. That didn't work either, but maybe if I change the page.php?

    All this seems too complicated!
    Is there a plugin specific to WP MS or something simple that I'm just blind to here?

  4. There are a lot of membership plugins :)

    If you're using http://wordpress.org/extend/plugins/members/ then the best thing would be make a role for people who should have access (canread) and then remove read access from subscribers.

  5. jetansey
    Posted 1 year ago #

    I loved your solution, but it didn't work :-(

    • I modified the capabilities for the subscriber role on each of the sites I want to protect unchecking the only box checked for that role READ.
    • I then logged in with an account with the subscriber role. It let me view the site.
    • I then created a new account but didn't register them for any of the protected sites. Same results.
    • D I have to get into the php templates? That seems very complicated.
      PS I am using the members plugin you noted.

  6. And did you set the site to be Private?

  7. jetansey
    Posted 1 year ago #

    Yes, I checked the box "Redirect all logged-out users to the login page before allowing them to view the site."
    BUT, they are showing as logged in to that site. I thought you had it with your first response that they're a default network subscriber and that's why they show as logged in.

    Hey, I rally appreciate your help!!!!

  8. Okay, remember how I said "By default, you're a network subscriber to all sites, sort of a psudeo member."

    That's what's going on here. The plugin notes that you're a member of the network and moves on. Take a look here: http://s.wordpress.org/extend/plugins/members/screenshot-5.png?r=579469

    See how the check boxes below the post explain who can and can't see the post. You may need to fiddle with that. It really does work, but the added wrinkle of site membership is, I agree, a headache and a half.

  9. jetansey
    Posted 1 year ago #

    I looked at your screenshot, and that's what I did and got it to work, BUT you need to set these on every post/page, which would be OK if there was a way to bulk set these or make them the default. (The user would still see the menu, which might not be too cool)
    However, I think I have a solution!
    It's not a member plugin, but a network security plugin. Check out this post.
    This seems like such a basic feature of WPMS that it should just be a standard feature???
    I'd love to hear your comment, and I really appreciate your help.

  10. I don't think it should be in core, only because it's often a pretty small use case (this comes up less than once a month). A plugin is just dandy for that :)

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.