Resources

My Agape try

Your Agape try


Support Forum

Current User: Guest Login Register
Please consider registering

Search 
Search Forums:


 




Subscriber Only Categories

UserPost

11:41 am
February 1, 2009


maidanet

Member

Colorado Springs, CO

posts 15

1

I have been using Role Scoper on a few sites and it's been working great so far. Thanks for all your hard work on this.

I have a project that I'm having trouble figuring out.

My client wants his pages to be open to the public, but the blog posts to be available only to subscribers (their distributors/affiliates).

I found this post you made in the comments, but it doesn't seem to follow in the most recent Release Candidate:

Comment from Kevin Time: July 10, 2008, 10:49 am

Define Exclusive Categories

* Go to WP admin >Roles > Exclusive Sections * For each category of concern, click the "Post Reader" and "Private Post Reader" checkbox * click the Update button

Assign Category Roles

* Go to Groups > Section Roles * Select WP Role group(s) to assign category roles to * For each category this user group gets, click the "Post Reader" and/or "Private Post Reader" checkbox * click the Update button * repeat for each set of category roles

In all the roles documentation, there doesn't seem to be a role of a site visitor that is not a subscriber. The minimum role seems to be Subscriber.

Is there a way to introduce a default "Visitor" role for this?

I thought you had a case study page somewhere, but I can't seem to find it now…

Thanks again for a great plug in!

11:50 pm
February 2, 2009


babul

New Member

posts 1

2

I think the answer to your question would answer my questions as well.

Example:  I want to limit a single post category and its subcategories (ex. Fruits) to only members of one specific group and admins (ex. Fruit Lovers), and deny it to everyone else.

The plug-in to be looks extremely comprehensive - I'm just haven't gotten a good understanding of the basics yet. 

12:31 am
February 3, 2009


maidanet

Member

Colorado Springs, CO

posts 15

3

Go to Roles > Options > Realms Make sure that Category Restrictions and Roles for Posts is checked

Go to /wp-admin/admin.php?page=role-scoper/admin/restrictions/category

Scroll down to the category you wish to protect

Check the box next to the type of user that should be able to access that category's posts.

So far, so good. Hope that helps!

Maida

12:11 am
February 7, 2009


Kevin

Admin

posts 1385

4

Maida,

1. In Restrictions > Categories, set a Default Restriction on the Post Reader role.

2. In Roles > Categories, assign the Post Reader role to the groups [WP Subscriber] (and any other pertinent role groups) for all desired categories.

3. If you want them to read posts in future newly created categories, also assign the Post Reader role for "DEFAULTS for new Categories"

If I understand you right, that should do it.

12:27 am
February 7, 2009


Kevin

Admin

posts 1385

5

maidanet said:

Go to Roles > Options > Realms Make sure that Category Restrictions and Roles for Posts is checked

Go to /wp-admin/admin.php?page=role-scoper/admin/restrictions/category

Scroll down to the category you wish to protect

Check the box next to the type of user that should be able to access that category's posts.

So far, so good. Hope that helps!

Maida


No, that's not quite right, and helps me understand how I need to clarify the documentation and/or UI. Category Restrictions are all about disregarding blog-wide roles for selected categories.

In Restrictions > Category, you specify which roles must be assigned explicitly for the Category in question. That required role assignment must then be done via Roles > Category (or via a Post-specific role assignment).

If you restrict the Post Contributor role for Category A, then users who have the Contributor role blog-wide will not be able to post in Category A unless you give it to them as a Category Role. Blog-wide Authors, Editors and Administrators will still be able to post into Category A even without a Category Role. For this purpose, it's not necessary to set a restriction on the Reader roles because users without any blog-wide edit capability cannot post there anyway.

If you restrict the Post Contributor and Post Author role for Category A, blog-wide Contributors and Authors will be unable to post in Category A unless you give it to them as a Category Role. Blog-wide Editors and Administrators will still be able to post into Category A even without a Category Role.

If you restrict the Post Contributor and Post Author and Post Editor roles for Category A, blog-wide Contributors, Authors and Editors will be unable to post in Category A unless you give it to them as a Category Role. Administrators can never be restricted.

Does that make sense?

12:41 am
February 7, 2009


Kevin

Admin

posts 1385

6

By the way, if you restrict the Post Editor role but not Post Author or Post Contributor, only operations which require at least one Editor capability will be affected. In other words, restricting the Post Editor role for a Category just prevents Editors from doing editor things there. They would still be able to act as an Author, Contributor, Private Post Reader or Reader.

In the other direction, imagine you restrict the Post Reader and Private Post Reader roles of Category A, but other roles are unrestricted for the category. Users who are blog-wide Readers (i.e. Subscribers) cannot read Category A posts unless they have the required role by Category Role assignment. Yet blog-wide Contributors and higher can still read the posts.

The same is true when setting Post / Page Restrictions. You are not restricting the operation, you're restricting the role. And since a role is inherently just a collection of capabilities (not a mutually exclusive group membership), Role Scoper treats each user as possessing their assigned roles (capabilities) AND any inferior roles that are a subset of those assigned capabilities.



Reply to Topic: Subscriber Only Categories

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 2 + 3        (Required)

Topic Reply:


 

About the Agapetry forum

Currently Online:

9 Guests

Maximum Online: 88

Forums:

Groups: 2

Forums: 7

Topics: 707

Posts: 3193

Members:

There are 642 members

There are 1 guests


Kevin has made 1385 posts

Top Posters:

metal450 - 98

YikYak - 58

Ragnar - 36

Daisy - 35

victar - 33

Administrator: Kevin | Moderators: Kevin