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™

Restrict membership to Buddypress based upon levels

s2Member Plugin. A Membership plugin for WordPress®.

Restrict membership to Buddypress based upon levels

Postby henrybcn » May 20th, 2011, 11:58 am

Howdy,

Can I restrict a member level X to become a member/participant in Buddypress?

Example:
* Member level = 0 does not get a Buddypress profile and can therefore not participate in Buddypress Groups, Forums, leave comments, etc. S/he must upgrade to...
* ...Member level = 1 or higher to get a Buddypress profile and to participate in Buddypress activities

I am aware that URI restrictions work fine with Buddypress to restrict access to certain Buddypress features / pages.

My objective is that a member level 0 does not have a Buddypress profile and does hence not show in the Buddypress member list. That member level 0 would access certain content pages, but s/he would not be able to participate in Buddypress (create a group, write in forum, etc.). S/he could only read Buddypress content.

Can this be done with s2member?

Thanks!
User avatar
henrybcn
Registered User
Registered User
 
Posts: 16
Joined: April 16, 2011

Re: Restrict membership to Buddypress based upon levels

Postby Cristián Lávaque » May 20th, 2011, 2:41 pm

I installed BuddyPress to see what I could tell you.

URI restrictions are useful to control access to an area, but the actions taken in that area (e.g. post, comment) seem to be handled with AJAX rather than URIs, so can't use that restriction on them.

I installed User Role Editor and saw BuddyPress add some new roles and several new capabilities to WordPress. You could select one of s2Member's roles and add some of the BuddyPress capabilities to it. That may be a way to go, but I don't know if the capabilities control everything you want to limit. https://wordpress.org/extend/plugins/user-role-editor/

I hope that helps.
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

Re: Restrict membership to Buddypress based upon levels

Postby henrybcn » May 21st, 2011, 5:09 am

Thanks Christián! The plugin "User Role Editor" does not help with my particular need, which is that a member level/role = X does not show in Buddypress, ie, does not have a Buddypress profile. (Yet it is very useful for other things!)

The plugin allows to restrict what a member can do on Buddypress (eg, member role = x cannot edit her/his profile), but it does not allow to hide a profile or to prevent a member from having a Buddypress profile in the first place.

My goal is:
1) User A registers for membership = level 1. S/he does not have a Buddypress profile, but can access pages / posts / content / Buddypress areas available for level 1
2) User A upgrades to membership = level 2. S/he now gets a Buddypress profile. S/he now shows in the Buddypress member list, and s/he can participate in the community

Maybe this would be a new s2member feature?

Buddypress_s2member.png
User avatar
henrybcn
Registered User
Registered User
 
Posts: 16
Joined: April 16, 2011

Re: Restrict membership to Buddypress based upon levels

Postby Cristián Lávaque » May 21st, 2011, 10:21 am

Got it. Thanks for the suggestion, I'll mention it to Jason.

Maybe BuddyPress has a plugin that lets you do this?
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

Re: Restrict membership to Buddypress based upon levels

Postby henrybcn » May 21st, 2011, 12:17 pm

Thanks. Have not found a Buddypress plugin for this. Will keep looking.

s2member is great, by the way. so is your service.
User avatar
henrybcn
Registered User
Registered User
 
Posts: 16
Joined: April 16, 2011

Re: Restrict membership to Buddypress based upon levels

Postby Cristián Lávaque » May 21st, 2011, 4:33 pm

Thanks! :)

And let us know if you find a plugin that does it.
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

Re: Restrict membership to Buddypress based upon levels

Postby henrybcn » May 22nd, 2011, 6:35 am

I posted this to the BP forum. http://buddypress.org/community/groups/ ... uddypress/

Found out that for "...for BP 1.3, [they are] going to add current_user_can checks throughout so if someone wanted to add a capability to a certain role or user, they could. ..."

See thread:
http://buddypress.org/community/groups/ ... ess-roles/
User avatar
henrybcn
Registered User
Registered User
 
Posts: 16
Joined: April 16, 2011

Re: Restrict membership to Buddypress based upon levels

Postby Cristián Lávaque » May 22nd, 2011, 11:23 am

Sweet. Thanks for the update. :)
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

Re: Restrict membership to Buddypress based upon levels

Postby henrybcn » May 22nd, 2011, 1:34 pm

Here the BP roadmap. In the upcoming version (1.3) "Basic profile privacy – hide from public / only friends" is a planned feature.

http://buddypress.org/about/roadmap/
User avatar
henrybcn
Registered User
Registered User
 
Posts: 16
Joined: April 16, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 1 guest

cron