BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25206
    Brajesh Singh on in reply to: Dequeue bp-nouveau css #48047

    Hi Carsten,
    The software keeps changing, so the posts are bound to get outdated.

    I hope this works for you.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25206

    Hi Luke,
    Thank you for the reply.
    I don’t see any issue with your configuration.

    Is there any other plugin or code also adding the tab with same slug(userposts).
    Do you have a staging site where I can check it. It should work with your configuration.

    Please help wit access to staging and I will quickly try to isolate the issue and help you resolve it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25206

    You are welcome!

  • Keymaster
    (BuddyDev Team)
    Posts: 25206
    Brajesh Singh on in reply to: [Resolved] how to exclude admin from GA analytics #48044

    Hi,
    We are using the analytics plugin. The benefit is, it shows some of the data in dashboard.

    I will recommend exuding admins to avoid the impact on visit time. If you are spending small amount on site as admin, it has n impact then.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25206

    You are welcome!

  • Keymaster
    (BuddyDev Team)
    Posts: 25206
    Brajesh Singh on in reply to: Members filters #48042

    Hi Bilal,
    Here is the code I can provide you.
    It won’t work unless you reach out to Andrea again for the help.

    
    
    // filter result and scope to current  group members.
    add_filter( 'bps_search_results', function ( $users ) {
    	if ( ! bp_is_group() ) {
    		return $users;
    	}
    	// find current group member ids
    	$member_ids = BP_Groups_Member::get_group_member_ids( groups_get_current_group()->id );
    
    	// we only show the results for the members who match the result and are a member.
    	return array_intersect( $member_ids, $users );
    } );
    
    // filter form action and make it use current page if we are on group.
    add_action( 'bps_before_search_form', function ( $form ) {
    	if ( bp_is_group() ) {
    		$form->action = "";
    	}
    
    	return $form;
    } );
    
    

    Here is the plan:-

    1. You put the BP Profile search form in group sidebar widget. We use the filter to scope results to group members

    2. To show result, you use [bps_directory] shortcode in the sidebar too. I have filtered the form action to submit it on the same page.

    The above code is not fully functional. It seems the directory shortcode is not working in group sidebar.

    Please reach out to Andrea and let me know her insights on this.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25206
    Brajesh Singh on in reply to: [Resolved] Buddy Blog Pro: GROUP Version?? #48030
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25206

    Hi,
    20k is a good amount but not too high and no need to worry about scaling. It is a good amount of traffic if these are unique views.

    1. I will not suggest using google analytics if your goal is to show the view count only. Google analytics may give better insights but API calls are time consuming and periodically syncing increases complexity(if you want to sync the count to local). The GA is certainly better option if you are looking at complex/refined stats.

    2.The choice depends on your goal. Most of the time, the plugins will suit the needs better.

    I have not used any of the above two plugins, so unable to recommend. If I have to base my opinion on reviews/downloads, the Post one will get my vote.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25206
    Brajesh Singh on in reply to: [Resolved] how to exclude admin from GA analytics #48028

    Hi,
    Thank you for the question.

    Your code seems fine to me. Please feel free to use it and it is a better approach than excluding the ip.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25206
    Brajesh Singh on in reply to: [Resolved] Badges shortcodes not working #48027

    Hi Mendy,
    Thank you for the feedback.

    May I know the differences. We have not provided anything from our own. All we did is detected if it is BuddyBoss Theme v 2.0+ and then loaded the members loop for it. The members loop is modified template from BuddyBoss theme to remove Buttons, as BuddyBoss scopes buttons on certain pages and the actions would not work for some.

    The css/layout etc are still provided by BuddyBoss, so I am interested in knowing the issue and looking further into it.

    Thank you
    Brajesh