Page 1 of 1

How to map S2Member Roles to BuddyPress (WP) Roles

PostPosted: October 31st, 2011, 12:06 pm
by sborsch
Four hours and counting on trying to figure this out so thought I'd ask! ;-)

Install: WP 3.2.1; BP 1.5.1; s2Member Pro v111029; BuddyPress ScholarPress Courseware 0.9.3

Description of Issue: This is a quasi-internal training site for a client. We've got the site setup perfectly with restrictions, landing pages, and so on…but there is ONE thing that isn't working: quizzes in ScholarPress don't appear to a logged in user, only Admin.

Obviously Scholarpress uses BP's user role mappings and S2Member must not be directly mapping to capabilities since BP uses the "Author" role for various capabilities of blog, group, etc.. Or is the solution that I simply need the bbpress bridge since I'm using forums within BP?

I'm stumped. Any thoughts on how to solve this?



Idea for the Future: As an aside, what I'd love is a drag-n-drop user-role-mapping feature of some kind. That would enable an admin to essentially replace...

Subscriber -> S2Member Level #0
Contributer -> S2Member Level #1
Author -> S2Member Level #2

…and so on. Or am I missing something that it already does?

Re: How to map S2Member Roles to BuddyPress (WP) Roles

PostPosted: October 31st, 2011, 3:08 pm
by sborsch
Did a workaround: Since all of our users are designated within BuddyPress as either a "Member" or "Moderator" level, I installed the plugin "User Role Editor" and added S2Member capability *to* BuddyPress user roles:

For Buddypress Member:
__ Access s2member level0
__ Access s2member level1

For BuddyPress Moderators:
__ Access s2member level0
__ Access s2member level1
__ Access s2member level2

…and it worked perfectly. Does anyone see an issue with doing it this sort of ass-backwards way?

Re: How to map S2Member Roles to BuddyPress (WP) Roles

PostPosted: November 2nd, 2011, 12:49 am
by Cristián Lávaque
I can't think of a problem off the top of my head. Looks like a good solution. You say it's working, which is a good thing. Did you have any trouble so far? Let us know how it plays in the future! :)