Community Support Forums — WordPress® ( Users Helping Users ) — 2012-01-26T18:30:39-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=17026 2012-01-26T18:30:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17026&p=61696#p61696 <![CDATA[Re: Can my members have AUTHOR capability?]]> Statistics: Posted by scottfennell — January 26th, 2012, 6:30 pm


]]>
2012-01-26T18:12:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17026&p=61690#p61690 <![CDATA[Re: Can my members have AUTHOR capability?]]>
s2Member only manages user access to the content on the front end, it doesn't manage the back end of WP at all. There are different reasons why we didn't choose to add this yet, and it isn't promoted as such.

That said, when someone asks how to do that, we usually tell them they can edit the user roles with User Role Editor like you did, but that's the site owner's responsibility to customize and make sure it doesn't have security problems.

Maybe we should make a clear statement about s2Member not managing access to the admin area. Thanks a lot for pointing it out. :)

Statistics: Posted by Cristián Lávaque — January 26th, 2012, 6:12 pm


]]>
2012-01-26T12:15:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17026&p=61634#p61634 <![CDATA[Re: Can my members have AUTHOR capability?]]>
I'm not sure what I was doing wrong with my code above.

It's really quite silly that S2member spends so much time belaboring the point about different user levels (I spent an hour watching videos on the topic yesterday), only to give no native way for me to edit their admin capabilites (post, edit, delete, upload, etc).

Why not include this?

Statistics: Posted by scottfennell — January 26th, 2012, 12:15 pm


]]>
2012-01-25T16:44:50-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17026&p=61565#p61565 <![CDATA[Can my members have AUTHOR capability?]]>
I just installed and configured this great plugin. I think it will be a great solution, but I'm stuck on one thing.

When users register for my site, I need them to have the Wordpress AUTHOR capability (they need to be able to post in two different custom post types, edit their own posts, delete their own posts, and of course edit theire profile).

I'm just not seeing how to do this.

Currently, all they are able to do is edit their profile. S2 "takes control" of wp-admin-->general settings-->new default user role, setting it to SUBSCRIBER, when I need it to be AUTHOR.

This is what I've attempted so far (in my theme-->functions.php):

Code:
add_action('admin_init', 'empower_users');
function empower_users()
{
$role = get_role( 's2member_level4' );

$role->add_cap( 'pubish_post' );
$role->add_cap( 'edit_post' );
}


It doesn't work; it doens't appear to do anything.

Statistics: Posted by scottfennell — January 25th, 2012, 4:44 pm


]]>