Support » Networking WordPress » WPMU and buddypress

  • Hi everybody,
    I installed the latest version of WP and then Enable Multisite, WP multi-network and ThreeWP Broadcast plugins. I installed Bussypress and I created my network of sites. I activated buddypress plugin, modified the .htaccess files and the I create activity/members/site tracking etc. pages in each sites. Every site looks fine. I’m able to publish content from the main sites to each site of the network. I create for each sites some users as subscribers in order to test the main functionality but I found an error. I logged-in into site1 as a suscribers, I clicked on memeber page and I display all network users not only the users entitled to access to site1. How can I maanges? I made some mistake during the installation/configuration of WP or BP? Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Ipstenu (Mika Epstein)


    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    No that’s right, that’s how BuddyPress works.

    So there’s no way to display only the users registered into a single site of the network?

    Moderator Ipstenu (Mika Epstein)


    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    There is, but that’s not what you’re doing.

    BuddyPress MEMBERS lists all members of your network. It’s what it’s supposed to do.

    If you just want members of your site, grab this:

    (Or write a quick call to the users code, btu I suspect you’ll find the plugin a better option)

    I wrote two functions and I put them into function.php of mine bbpress theme in order to display only the members (see code section #1) and the activities of the site’s users not of all network users (see code section #2). I’m a new in bbpress and I have no idea if this way is right or not in order to make real private each site in the bbpress network. There’re also other pages or actions that I must be filter?


    function filter_members_list_per_site( $m, $members ) {
    	if ( is_site_admin() ){ return $members;}
    	 foreach ( $members->members as $key => $member ) {
    		if (is_user_member_of_blog( $member->id)) {
    			// do something
    			unset( $members->members[$key] );
    			$members->member_count = $members->member_count-1;
    			$members->total_member_count = $members->total_member_count-1;
    			$members->pag_num = $members->pag_num-1;
    	  $members_new = array_values( $members->members );
    	  $members->members = $members_new;
    	  return $members;
    add_action('bp_has_members','filter_members_list_per_site', 1, 2 );


    function filter_members_activities_per_site( $a, $activities ) {
      if ( is_site_admin() ){ return $activities;}
      		foreach ( $activities->activities as $key => $activity ) {
    			if (is_user_member_of_blog( $activity->user_id)) {
    			   	unset( $activities->activities[$key] );
    				$activities->activity_count = $activities->activity_count-1;
    				$activities->total_activity_count = $activities->total_activity_count-1;
    				$activities->pag_num = $activities->pag_num -1;
    		$activities_new = array_values( $activities->activities );
    		$activities->activities = $activities_new;
      	return $activities;
    add_action('bp_has_activities','filter_members_activities_per_site', 1, 2 );

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WPMU and buddypress’ is closed to new replies.