latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: Nathan Jenkins

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To

Viewing topic 1 (of 1 total)
Topic Count Last Reply
s2 user registration -> Default Role's

By:  Nathan Jenkins in: Community Forum

voices: 2
replies: 5

4 years, 5 months ago  Cristián Lávaque

Viewing topic 1 (of 1 total)

Topics I've Started

Viewing topic 1 (of 1 total)
Topic Count Last Reply
s2 user registration -> Default Role's

By:  Nathan Jenkins in: Community Forum

voices: 2
replies: 5

4 years, 5 months ago  Cristián Lávaque

Viewing topic 1 (of 1 total)

My Latest Replies (From Various Topics)

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Thursday Jul 12th, 2012 at 5:41 pm #19082

Found a great solution

Inside of mu-plugins/s2hacks.php

I add this

// Added to extend to the Author role capabilities to s2 member default roles
add_role( ‘s2member_level2’, ‘S2 Member Level 2’);
$author = get_role(‘author’);
$s2member_level2 = get_role(‘s2member_level2’);
if($admin->capabilities){
foreach($author->capabilities as $cap => $bool){
if($bool){
$s2member_level2->add_cap($cap);
}
}
}

Posted: Thursday Jul 12th, 2012 at 4:32 pm #19074

This is interesting. Thank you. Here is the main concern. I have been adding all of the site content for the base users of the site. But if there role is assigned to s2member roll then they do not show up in the author box to assign the ownership of the site. If i switch the user to author or any default WP role they show up in the Author Box. Switching them would be fine, except for the fact that S2member redirects only seem to work for custom S2member rolls. I have tried assigning the capabilties of Author role to the s2member, and even inheriting the s2member roles for the author, but neither of these methods functions correctly.

Please let me know if there is any futher information to help me find a solutions.

Viewing 2 replies - 1 through 2 (of 2 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.