PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Assigning a custom default role to members

Common Questions/Problems/Tips. Posted by Administrators & Support Reps.

Assigning a custom default role to members

Postby Jason Caldwell » July 18th, 2010, 3:39 am

I get many questions about the possibility of extending s2Member in ways that may allow it to deal with Administrative permissions ( i.e. back-end access to your Dashboard ).

s2Member was NOT originally designed for administrative access protection, it was designed for Member/Customer access. However, you could certainly extend s2Member in this way.

Create this directory and file:
/wp-content/mu-plugins/s2-hacks.php

Inside the file, do something like this:
Code: Select all
<?php
add_filter
("ws_plugin__s2member_force_default_role", "default_role");
function default_role($default = "contributor"){
    return "contributor";
}
?>

If you'd like to upgrade a Contributor to an Author, or to an Editor, you can log into your WP Dashboard, and go to the "Users" menu. Find the User in the list, and click "Edit".
Change their Role to Author or Editor.

Also, please be aware of the following:
* A Member with Level 4 access, will also be able to access Levels 0, 1, 2 & 3.
* A Member with Level 3 access, will also be able to access Levels 0, 1 & 2.
* A Member with Level 2 access, will also be able to access Levels 0 & 1.
* A Member with Level 1 access, will also be able to access Level 0.
* A Subscriber with Level 0 access, will ONLY be able to access Level 0.

* WordPress® Subscribers are at Membership Level 0.
If you're allowing Open Registration, Subscribers will be at Level 0 ( a Free Subscriber ).

Most importantly, given your request...

* WordPress® Administrators, Editors, Authors, and Contributors have Level 4 access, with respect to s2Member. All of their other Roles/Capabilities are left untouched.

If you'd like to modify the way s2Member treats Roles/Capabilties,
you can use a plugin like the Capability Manager.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Return to Common Questions/Problems/Tips

Who is online

Users browsing this forum: No registered users and 1 guest

cron