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™

Restricted content being shw in the activity stream

s2Member Plugin. A Membership plugin for WordPress®.

Restricted content being shw in the activity stream

Postby DizChantrelle » June 24th, 2011, 10:36 am

Hi
I have s2member installed and BuddyPress.
It was my assumption that content is restricted by user role, however does this restriction extend to the buddypress activity stream, it is showing updates that restricted content is posted with an excerpt. Only when you click on the title does s2member kick in. This kinda defeats the point of us restricting sensitive info and content via s2member if its going to display it in the activity stream.

I love your plugin and your support has been excellent, is there something I need to do to restrict the activity stream / Can it be done?

Thanks again!

Diz
User avatar
DizChantrelle
Registered User
Registered User
 
Posts: 6
Joined: June 4, 2011

Re: Restricted content being shw in the activity stream

Postby Cristián Lávaque » June 24th, 2011, 12:13 pm

I'm not familiar with the new BuddyPress integration, but in WordPress it'd be solved with the Alternative Views setting. You may want to try if it affects the BuddyPress activity stream as well. WP Admin -> s2Member -> Restriction Options -> Alternative Views Protection
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: Restricted content being shw in the activity stream

Postby DizChantrelle » June 24th, 2011, 1:07 pm

Hi Cristian.
I selected that Restrict all wp queries option but it still shows up in the activity stream. I shall try to see if I can add a conditional to the activity stream loop in the buddypress files but I hoped that there maybe an easier way. I'll let you know if I manage it cheers and if you hear of another way I'd appreciate an update.
All the best.
User avatar
DizChantrelle
Registered User
Registered User
 
Posts: 6
Joined: June 4, 2011

Re: Restricted content being shw in the activity stream

Postby Cristián Lávaque » June 24th, 2011, 1:36 pm

If you try editing it, you may want to look at the Advanced Query Conditionals documentation. WP Admin -> s2Member -> API / Scripting -> Advanced Query Conditionals

I'll ask Jason about the BP activity stream.
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: Restricted content being shw in the activity stream

Postby DizChantrelle » June 24th, 2011, 1:44 pm

I've had a look and discovered that the reason it doesn't work is that the activity stream uses MySQL database calls to load content and so this doesn't flag up with s2member to restrict it. As the database entries created for the activity stream are not restricted WordPress files or have a s2member check associated with it and get created from user action but are stored in a separate table. Without going in and changing all the database writes and re-calls I can't see how it can restrict this content, maybe its an idea for a plugin for some one with more experience than me ( i would be willing to entertain quotes on a plugin or a donation toward its development )? For now I'll have to use buddypress's group system to restrict this content.
Cheers
User avatar
DizChantrelle
Registered User
Registered User
 
Posts: 6
Joined: June 4, 2011

Re: Restricted content being shw in the activity stream

Postby DizChantrelle » June 30th, 2011, 12:25 pm

Hi has any further information been made available regarding restricting the buddypress activity stream? I understand this is not a simple task.
I would be interested in any follow up that may have arisen.
Cheers again.
User avatar
DizChantrelle
Registered User
Registered User
 
Posts: 6
Joined: June 4, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 2 guests

cron