WordPress.org

Forums

User Specific Content
[resolved] plugin doesn't work with buddypress activities stream (5 posts)

  1. Peidong Hu
    Member
    Posted 2 years ago #

    this plugin works well in wordpress, but with buddypress installed, the activity stream will expose the posts to any users even i have set the permission only readable by contributor.

    here you can see the example,
    http://bigtester.com/wp/activity/

    sql homework3 post has been set to contributor viewable. but buddypress has exposed it to any user.

    peidong

    http://wordpress.org/extend/plugins/user-specific-content/

  2. Bainternet
    Member
    Plugin Author

    Posted 2 years ago #

    This simply means that the BuddyPress activity stream is not using the_content filter to display the content as it should.

  3. It's funny you mention that: it came up with another thread a while back.

    BuddyPress activity stream doesn't use the_content filter. It uses bp_get_activity_content_body. ;)

    add_filter( 'bp_get_activity_content_body' , 'your_function_here' );

    I'm not sure how to add that to your plugin (or even if you'd want to consider that) but I was surprised when I saw that.

  4. Bainternet
    Member
    Plugin Author

    Posted 2 years ago #

    If you have the last version (0.9.7) you can hook the filter to custom hooks using the newly added action hook User_specific_content_filter_add like this:

    add_action('User_specific_content_filter_add','enable_bp_activity');
    function enable_bp_activity($obj){
    	add_filter( 'bp_get_activity_content_body' , array($obj,'User_specific_content_filter' ));
    }
  5. mayabi
    Member
    Posted 1 year ago #

    Hello @bainternet,

    this plugin is exactly what i need, but then again i can't seem to make it work with Buddypress. I'm not sure where to enter the action hook - in which file and where in that file.
    Would you please lighten this up for me?

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • User Specific Content
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.