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™

Making BuddyPress read-only for non-members

s2Member Plugin. A Membership plugin for WordPress®.

Making BuddyPress read-only for non-members

Postby kgweber » July 6th, 2011, 7:58 pm

I am setting up a non-profit site using s2member and BuddyPress. We'd like to control BuddyPress access to allow non-members to see most of the content but only allow members to update.

For example, non-members can browse groups, however, only members can join them.

The default BuddyPress logic works fine -- people who are not logged in do not have the option to join groups etc. However, we'd like to extend this same level of access to members whose membership has expired. Ideally they could be logged in but would not be able to make changes to their membership until they renew it.

How can I achieve this using s2member? The general blocking of content and URIs works great, but this is a different level of detail, and I'd like to avoid too much BuddyPress customization if I can help it. Has anyone done something similiar?
User avatar
kgweber
Registered User
Registered User
 
Posts: 10
Joined: July 6, 2011

Re: Making BuddyPress read-only for non-members

Postby Cristián Lávaque » July 7th, 2011, 3:13 am

I'm not sure of all the details, but I'd look at editing the Subscriber (level 0) role with User Role Editor, to remove the capability you want to disable. 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: Making BuddyPress read-only for non-members

Postby kgweber » July 7th, 2011, 4:21 pm

I'll look into this, but unless I'm missing something BuddyPress doesn't look at the roles capabilities for most functions -- it just distinguishes between users and non-users. For example, I think you are allowed to join a group if you are a logged in user, and prohibited from joining a group if you are not. In my case, what I'd like to do is make an expired membership user behave like a non-user, and I'm hoping there is a simple approach to this that does not involve custom edits to themes or BuddyPress pages.

Further thoughts?
User avatar
kgweber
Registered User
Registered User
 
Posts: 10
Joined: July 6, 2011

Re: Making BuddyPress read-only for non-members

Postby Cristián Lávaque » July 7th, 2011, 5:01 pm

I'll email Jason asking him about 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: Making BuddyPress read-only for non-members

Postby Jason Caldwell » July 8th, 2011, 5:06 pm

Thanks for the heads up on this thread.
kgweber wrote:I'll look into this, but unless I'm missing something BuddyPress doesn't look at the roles capabilities for most functions -- it just distinguishes between users and non-users. For example, I think you are allowed to join a group if you are a logged in user, and prohibited from joining a group if you are not. In my case, what I'd like to do is make an expired membership user behave like a non-user, and I'm hoping there is a simple approach to this that does not involve custom edits to themes or BuddyPress pages.

Further thoughts?

No, I'm not aware of any way to achieve this without making edits to your BuddyPress theme, taking advantage of Conditionals made possible by s2Member. For further details, please take a look in your Dashboard under: s2Member -> API Scripting -> Advanced/PHP Conditionals. That being said, I would certainly take a look through the plugins available for BuddyPress before you custom code this. I'm sure you'll find something at BuddyPress to assist in this regard. http://buddypress.org/extend/plugins/
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 1 guest

cron