Resources

My Agape try

Your Agape try


Support Forum

Current User: Guest Login Register
Please consider registering

Search 
Search Forums:


 




Roles for anonymous users

UserPost

7:29 pm
August 23, 2008


khooyp

New Member

posts 2

1

Hi Kevin,

I'm trying to set up my blog such that anonymous users (i.e., non-logged in users) cannot view any sections by default, and whitelist specific sections to unhide. Currently with Role Scoper, it seems that it's only possible to blacklist using exclusive sections. The problem with this way is that 1) new sections will not be hidden by default (and it's too easy to forget to hide them); and 2) you have to remember to assign logged-in users the section role to read.

It would be nice to put anonymous users into a meta-group and manage them like other WP group. They can be assigned the post reader blog role by default which would be as it is now, or for my purpose, they can be assigned no blog role and specific section roles to read.

Other than that, this plugin is pretty useful. Thanks!

10:30 pm
August 25, 2008


Kevin

Admin

posts 1326

2

You raise a valid point and I have a solution in mind to try out later this week.  Adding “Anonymous” as a metagroup should be a fairly simple matter.  To avoid inflicting much struggle and liability on myself and others, I'll limit anon role assignments to roles that have no edit capabilities.

Would you see any advantage to also defining a “Logged In” metagroup?

Before the initial release back in May, Role Scoper did provide role assignment for the generic anon and logged user.  But I wasn't happy with the implementation so I took it out.  The metagroup layer is the right place to slide this in.

I think this will help Role Scoper give a friendlier first impression to some users (as well as ongoing convenience), so thanks for the feedback.

For now, you can of course get default hiding by marking each post private and then assign the “WP Subscriber”, “WP Contributor” and “WP Author” metagroup a Private Post Reader role for sections of your choice.

7:45 am
August 29, 2008


khooyp

New Member

posts 2

3

It certainly might be convenient to have a "Logged In" metagroup, yes. It not as necessary compared to anonymous, though, since you can just select all other groups. But for larger installations with many groups, it could be quite useful.

I look forward to the update, thanks!

1:05 pm
October 14, 2008


Kevin

Admin

posts 1326

4

I decided to handle this (and similar feature requests) via Default Restrictions, Default Roles and Default Groups instead.  Note that "Exclusive Roles" are now called "Restrictions"

In your case, you can:

  1. Set a default Category Restriction on the "Post Reader" role.  This will restrict the role for all current and future categories, unless a manual unrestriction is set per-category.
  2. Define a User Group "Post Readers", and add all existing users to it
  3. From the Groups admin page, click "Default Groups" and set "Post Readers" as a default group
  4. Assign the "Post Reader" Category Role to the "Post Readers" group for all existing categories.
  5. Assign the "Post Reader" Category Role to the "Post Readers" group as a default for new categories.

This could be done via [WP role] metagroups instead, but using explicit user assignment to a default groups allow you to later remove the role from a specific user.  It also simplifies the category role assignment interface.

Remember that version 1.0.0, which brings these features, is still in beta and should not be trusted to a production site.



Reply to Topic: Roles for anonymous users

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: 6 + 4        (Required)

Topic Reply:


 

About the Agapetry forum

Currently Online:

11 Guests

Maximum Online: 88

Forums:

Groups: 2

Forums: 7

Topics: 667

Posts: 3053

Members:

There are 601 members

There are 1 guests


Kevin has made 1326 posts

Top Posters:

metal450 - 98

YikYak - 58

Ragnar - 36

Daisy - 35

LorenW - 33

Administrator: Kevin | Moderators: Kevin