Page 1 of 1

Restrict membership to Buddypress based upon levels

PostPosted: May 20th, 2011, 11:58 am
by henrybcn
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!

Re: Restrict membership to Buddypress based upon levels

PostPosted: May 20th, 2011, 2:41 pm
by Cristián Lávaque
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.

Re: Restrict membership to Buddypress based upon levels

PostPosted: May 21st, 2011, 5:09 am
by henrybcn
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

Re: Restrict membership to Buddypress based upon levels

PostPosted: May 21st, 2011, 10:21 am
by Cristián Lávaque
Got it. Thanks for the suggestion, I'll mention it to Jason.

Maybe BuddyPress has a plugin that lets you do this?

Re: Restrict membership to Buddypress based upon levels

PostPosted: May 21st, 2011, 12:17 pm
by henrybcn
Thanks. Have not found a Buddypress plugin for this. Will keep looking.

s2member is great, by the way. so is your service.

Re: Restrict membership to Buddypress based upon levels

PostPosted: May 21st, 2011, 4:33 pm
by Cristián Lávaque
Thanks! :)

And let us know if you find a plugin that does it.

Re: Restrict membership to Buddypress based upon levels

PostPosted: May 22nd, 2011, 6:35 am
by henrybcn
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/

Re: Restrict membership to Buddypress based upon levels

PostPosted: May 22nd, 2011, 11:23 am
by Cristián Lávaque
Sweet. Thanks for the update. :)

Re: Restrict membership to Buddypress based upon levels

PostPosted: May 22nd, 2011, 1:34 pm
by henrybcn
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/