• Resolved jpasden

    (@jpasden)


    I am looking for a Flickr-style post protection method. I’ve found ViewLevel 2.0, but I find it a rather imperfect solution. Let me describe what I am looking for.

    1. Access should be divided into at least three categories: public, friends, and family.

    2. All posts are by default public, unless the post is marked as protected and viewable by either “friends” or “family”, or “friends” AND “family”. (If you use Flickr, you know exactly what I mean.)

    3. “Friends” and “family” viewing privileges are kept separate, i.e. some posts can be marked viewable by friends but not family, and some posts can be marked viewable by family but not friends. I think it’s pretty obvious to anyone who has been blogging a while why this is extremely desirable. (This is something that ViewLevel cannot accomplish, as ViewLevel is based on userlevel.)

    4. Obviously, protected entries (and their comments!) should be kept out of archives, feeds, etc.

    5. Ideally, there is ONE password for all “friends”, and ONE password for all “family”. This means that some code needs to be altered so that when people logged in as either “friend” or “family” can still enter their names when leaving comments, and not all friends’ comments are seen as left by “friend”. (It would be REALLY cool if when leaving comments, those logged in as “friend” or “family” had the option of checking a box that made their comment left on ANY entry only viewable by admin and other friends or family.)

    I’ve done quite a bit of searching the forums, and I’m pretty sure no plugin like this exists. I know I’m asking for a lot here, but I feel it’s a completely feasible project, so if some coder out there needs a project…

Viewing 5 replies - 1 through 5 (of 5 total)
  • Have you tried Userextra? If you create two categories, one called “friends” and one called “family” and then for each of your users you give them access to friends, family or both, that may give you some of what you’re looking for?

    You could put your posts in the normal categories you would anyway, and then optionally put them in friends and/or family categories. Then, you use the adjudication style of Userextra to be Unanimous Permit, meaning that to be able to see the post you need to have access to all categories that the post is in.

    Thread Starter jpasden

    (@jpasden)

    squish,

    Thanks, that’s one I hadn’t found. It does seem to be closer to what I want than ViewLevel. Categories are not very essential to the blog I’m working on, so I could even use categories exclusively to control who sees what content.

    I’m not really clear on what Usermeta does or how it ties in, though.

    The one issue I see is that to make this work, I would have to give an account to each of my readers that needs special access, wouldn’t I? Again, I’d like to have just two shared accounts: one for friends, one for family. Seems to me that WordPress could be hacked so that the logged-in user info isn’t passed onto the comment form, allowing logged in users to identify themselves when they leave comments despite being logged in. Any tips on accomplishing that?

    I really appreciate the response.

    I think you could do this quite easily. The first step is to modify your theme so that whether you are logged in or not, you get the input fields for all users to identify themselves. The second bit is to change comments-post.php so that where it says // If the user is logged in, it doesn’t populate $comment_author, $comment_author_email and $comment_author_url – best thing to do is just comment out those three lines.

    There may be other stuff to do…

    Thread Starter jpasden

    (@jpasden)

    Squish,

    Right… but the question is, where exactly?

    Step 1: Modify your theme so that whether you are logged in or not, you get the input fields for all users to identify themselves.

    Would that be a modification to comments.php?

    Step 2: Change comments-post.php so that where it says
    // If the user is logged in, it doesn’t populate $comment_author, $comment_author_email and $comment_author_url – best thing to do is just comment out those three lines.

    Sounds easy enough.

    Thanks again!

    I requested the same thing:
    http://ww.wp.xz.cn/support/topic/62665

    And here I’ve requested a plugin, which Ryan has said he’s interested in doing:
    http://ww.wp.xz.cn/support/topic/64796

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

The topic ‘Flickr-style post protection?’ is closed to new replies.