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™

How to map S2Member Roles to BuddyPress (WP) Roles

s2Member Plugin. A Membership plugin for WordPress®.

How to map S2Member Roles to BuddyPress (WP) Roles

Postby sborsch » October 31st, 2011, 12:06 pm

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?
User avatar
sborsch
Registered User
Registered User
 
Posts: 3
Joined: August 18, 2010

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

Postby sborsch » October 31st, 2011, 3:08 pm

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?
User avatar
sborsch
Registered User
Registered User
 
Posts: 3
Joined: August 18, 2010

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

Postby Cristián Lávaque » November 2nd, 2011, 12:49 am

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! :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron