Skip to:

Activity Stream Privacy Issue

  • terranova23


    Hi there,

    I’m helping a client resolve an issue with their bbPress Activity Stream. Their website has many online classes that are kept separate from each other, and their wish is to have the Activity Stream only show activity that is relevant to the forum a user has access to, and keep info from other forums private (they are using MemberMouse to restrict access). I did some research on here and on Google and found several threads that talked about similar issues, but wasn’t able to find any solutions.

    The site uses the latest version of WP (4.4.2) and bbPress (2.5.8) and is located at

    I thought the bbPress Activity Stream Shortcode Plugin would do the job, so I installed that and did a quick test, but I’m getting this error: Fatal error: Call to undefined function bp_has_activities() in /home/myst1cadm1n/public_html/wp-content/plugins/bp-activity-shortcode/bp-activity-as-shortcode.php on line 102

    If that issue could be resolved, we may be all set since we can set up shortcodes to display different streams for different forums. Otherwise, we’d like to know if there’s a way to limit the Activity Stream to only show content the user has access to.

    Finally, my client is also concerned about the default forums page, which shows a listing of recent topics from all forums and is visible to anyone who finds it: Users who aren’t logged in aren’t able to click any of the links, but they are still concerned about privacy. Is it possible to make this page private so only logged-in admins can see it? Or can it be removed somehow?

    Thanks for your time,

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,
    The error you are referring to is BuddyPress (bp_) and not bbPress (bbp_), so you might have a try on their forum…




    Thanks for your reply, Pascal.

    In that case, that plugin is probably not going to help us anyway. So never mind the shortcode error.

    Our problem is still with the bbPress activity stream, we are hoping to limit its contents to only should be visible to members of a particular group. We are using MemberMouse and the bbPress MemberMouse extension to limit users access to only the forums they are taking a class for, but they are seeing activity from other forums in the feed.

    Also, we would like to limit access to this default bbPress page to be private for admins only, if at all possible:

    Hope someone can help us with one or both of these issues.


    1) Activity stream
    I suppose you talk about the BuddyPress activity stream here ?
    If so, maybe this code could get you started (found it on the BuddyPress forum). It will block ALL new topics/replies, so if you tune that to your private forums, it could be what you are looking for.

    // Filter bbPress from updating activity stream
    function imath_activity_dont_save( $activity_object ) {
    $exclude = array( 'bbp_topic_create', 'bbp_reply_create');
    // if the activity type is empty, it stops BuddyPress BP_Activity_Activity::save() function
    if( in_array( $activity_object->type, $exclude ) )
    $activity_object->type = false;
    add_action('bp_activity_before_save', 'imath_activity_dont_save', 10, 1 );

    2) To limit access to /forums, create a page with the slug /forums and add in that page what you want (a bbPress shortcode or just text). The creation of this page will prevent the standard forum index page to come up. Of course using any ‘members’ plugin, you could then e.g. make sure only admins could access.




    Thank you Pascal, I guess I misunderstood, it seemed to me that the Activity Stream was a bbPress feature. I will look into what you sent and if needed, post my questions over at BuddyPress. I appreciate your time.



    Regarding limiting access to /forums, your idea worked for that page, but some clever user has typed in /forums/page/2 and now has access to all 86 pages of old forum posts. Is there a way we can make the additional archive pages private as well without creating 86 private pages to cover them up?

    Pascal Casier


    It seems I cannot see the contents of that page, so you might have found it ?
    Your initial request was to put security on a page, so Members from Justin Tadlock is my personal preferred one.
    However I now get the impression you want to secure forums, not pages ? In that case also check bbP Private Groups.


Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Skip to toolbar