Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Would it be possible to create a group for unregistered users ?

UserPost

7:36 am
August 13, 2009


raphael_ber

Member

posts 9

1

Hi

I was thinking it would be interesting to create a group for unregistered users.

In the website I create, there are some pages I would like users to see only if they stay at a beginner level.

From a certain role, there are some pages they don't need to read anymore. That's why I would like to restrict some pages to unregistered users and subscribers.

Thank you

Raphael

4:30 pm
August 27, 2009


Kevin

Admin

posts 2503

2

raphael_ber said:

From a certain role, there are some pages they don't need to read anymore. That's why I would like to restrict some pages to unregistered users and subscribers.


Okay, I was just about to explain why you needn't / shouldn't assign roles to such a group, but your explanation sold me on the feature. That's the only reason for it - to allow anonymous users to view something which other users (for convenience' sake) can't. I think someone else made the same request months ago.

So here it is, in the updated Role Scoper Development Snapshot. For now, the [Anonymous] group will not be seen in wp-admin nor applied until you put the following statement in wp-config.php:

define( 'SCOPER_ANON_METAGROUP', true );

Note that although the code will currently allow any role to be assigned to the Anonymous group, in practice only capabilities which pertain to front-end operations will be applied. This cannot be used to let anonymous users into wp-admin.

8:22 pm
September 5, 2009


Adam

New Member

posts 1

3

I am also interested in this for a similar reason.  Unfortunately, I am a new user and I'm not entirely sure how to do what you just described.

Right now I have Role Scoper installed and it won't let me install the file you linked in the page, is there a way to update the installation file?  Unfortunately, I don't have my host login information, so I can't delete Role Scoper and start over right now.  Additionally, where do I put "define( 'SCOPER_ANON_METAGROUP', true );"?  You said in the wp-config.php file, where is that?

Thanks again.

9:44 pm
October 5, 2009


Kevin

Admin

posts 2503

4

Adam said:

I am also interested in this for a similar reason.  Unfortunately, I am a new user and I'm not entirely sure how to do what you just described.

Right now I have Role Scoper installed and it won't let me install the file you linked in the page, is there a way to update the installation file?  Unfortunately, I don't have my host login information, so I can't delete Role Scoper and start over right now.  Additionally, where do I put "define( 'SCOPER_ANON_METAGROUP', true );"?  You said in the wp-config.php file, where is that?

Thanks again.


You should be able to deactivate and remove Role Scoper via the wp-admin, then upload whatever .zip you want via Plugins > Add New > Upload. If you want to wait a few more days, this will also be available in the upcoming 1.1 release candidate.

wp-config.php is in your WordPress installation root folder. You will need ftp or site admin access to edit it.

5:14 am
January 12, 2012


nir.abr

New Member

posts 1

5

Hi Kevin, 

I added the appropriate define… to thw wp-config.php.

However, there seem to be a problem/bug:

When I assign a page to the anonymous group, still everybody can watch this page, even if they are logged in (subscribers). 

Are You familiar with this bug ?

I am using the latest version of WP and RS. 

Perhpas there is a collision with anothoer plugin - are you familiar with any ?

Thanks in advance,

Nir

6:33 am
January 12, 2012


Kevin

Admin

posts 2503

6

What you're seeing is not a bug, it's just how Role Scoper works. Assigning that role to the Anonymous group does not remove access from users who have it via their WP role capabilities. To do that, you would need to set the page visibility to Private or restrict the Reader role for that page (via the checkbox in the Readers metabox on Edit Page form).

If you choose the Private visibility route (best since remains effective even if RS is deactivated), your Anonymous group will need a Private Page Reader role assignment.


About the Agapetry forum

Currently Online:

19 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1249

Posts: 5659

Members:

There are 1261 members

There are 1 guests


Kevin has made 2503 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin