latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Restricting Buddypress Status Updated to User

Home Forums Community Forum Restricting Buddypress Status Updated to User

This topic contains 1 reply, has 2 voices. Last updated by  Bruce 3 years, 10 months ago.

Topic Author Topic
Posted: Monday Feb 25th, 2013 at 5:47 am #43144
Nicole Purvy
Username: npurvy

Hello,
Im trying to restrict status updates to user roles and I came across this article
http://www.s2member.com/forums/topic/restricting-buddypress-status-updates/

but I need more help. Where do I put the conditional statement and how can i construct the statement?
Please help!!

  • This topic was modified 3 years, 10 months ago by  Eduan. Reason: Moved to the customer support forum

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Thursday Feb 28th, 2013 at 1:50 am #43368
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry. We appreciate your patience.

but I need more help. Where do I put the conditional statement and how can i construct the statement?

I can’t really tell you where to put your conditional statement, you should ask on the BuddyPress Forums for info on that. I would guess that you’d need to edit a BuddyPress Template for this functionality.

I can give you some info on what conditional statement you might use. If you’re looking to restrict access to Users that are not paying members (assuming that you only have one free level), you can do the following:

<?php if(!current_user_can('access_s2member_level1')) { 
	// Your restrictions should go here
} ?>

If you were to restrict Users based on a Custom Capability, you might do this:

<?php if(!current_user_can('access_s2member_ccap_buddypress')) {
	// Your restrictions should go here
} ?>

See: Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals

Please let us know if you have any further questions/concerns regarding this.

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.