Page 1 of 1

Restricted content being shw in the activity stream

PostPosted: June 24th, 2011, 10:36 am
by DizChantrelle
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

Re: Restricted content being shw in the activity stream

PostPosted: June 24th, 2011, 12:13 pm
by Cristián Lávaque
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

Re: Restricted content being shw in the activity stream

PostPosted: June 24th, 2011, 1:07 pm
by DizChantrelle
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.

Re: Restricted content being shw in the activity stream

PostPosted: June 24th, 2011, 1:36 pm
by Cristián Lávaque
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.

Re: Restricted content being shw in the activity stream

PostPosted: June 24th, 2011, 1:44 pm
by DizChantrelle
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

Re: Restricted content being shw in the activity stream

PostPosted: June 30th, 2011, 12:25 pm
by DizChantrelle
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.