BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25070

    Hi Cheryl,
    Thank you for the question.
    With a small snippet of code, you can easily achieve it.

    
    add_filter( 'mpp_shortcode_list_media_query_args', function ( $atts ) {
    
    	if ( bp_is_group() ) {
    		$atts['component']    = 'groups';
    		$atts['component_id'] = bp_get_current_group_id();
    	}
    
    	return $atts;
    } );
    
    

    we will add the support for current group in future version in the plugin itself.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25070
    Brajesh Singh on in reply to: [Resolved] Buddypress All members counter #50900

    Hi,
    You can use

    
    bp_core_get_total_member_count()
    

    That will give you all count(even the users without any activity).

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25070

    I am sorry, this is not feasible without some significant coding.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25070
    Brajesh Singh on in reply to: Group Tabs dynamic url remove last / #50898

    Hi,
    Thank you for the reply.
    I am sorry for the delayed response.

    we are not adding the trailing slash. It is BuddyPress/BuddyBoss whose bp_get_group_permalink() is doing it.

    Yes, we can add a filter to allow you do it. You can run untrailingslash on the permalink to achieve your goal.

    We will push an update this week with the same.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25070
    Brajesh Singh on in reply to: MediaPress Page 2 – 404 not working #50895

    Hi Andy,
    Thank you for your details.
    I am sorry for the delay.

    Can you please tell me if the pagination for your site archive pages are working ?

    The only difference I see is use of nginx and multisite.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25070

    Hi,
    I am sorry, MediaPress does not create any new activity on user registration.

    You are mistaking it for something else, Please re-check your setup.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25070
    Brajesh Singh on in reply to: Profile Tab Creator #50879

    Hi,
    Thank you for the question.
    I am sorry, there is no api for the profile tabs available at the moment.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25070

    Hi,
    I am sorry, we haven’t started any work on this. We will start with it on 17th and update you next week.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25070
    Brajesh Singh on in reply to: Simple Textarea? #50874

    Hi Mark,
    Thank you for the question. You may use on of the following:-

    1. Disable for all text area:-

    
    
    add_filter( 'bp_xprofile_is_richtext_enabled_for_field', function ( $enabled, $field_id ) {
    
    	$enabled = false; // disable for all text area.
    
    	return $enabled;
    }, 10, 2 );
    
    

    2. Or disable for specific text areas

    
    
    add_filter( 'bp_xprofile_is_richtext_enabled_for_field', function ( $enabled, $field_id ) {
    
    	$textarea_field_ids = [ 25, 45 ]; // your text area field ids, Please update
    
    	if ( $field_id && in_array( $field_id, $textarea_field_ids ) ) {
    		$enabled = false; // disable for the specific text area.
    	}
    
    	return $enabled;
    }, 10, 2 );
    
    

    Please feel free to use as you please.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25070
    Brajesh Singh on in reply to: [Resolved] auto follow featured members #50873

    Hi Tosin,
    I will suggest adding a wrapper to ‘count_user_posts’ and caching the value in transient. That way, you will only need to flush the cache for author on new posts and there will be almost 1 total count calculation per author irrespective of number of queries(and you will only need to count if the author publishes a new post).

    Regards
    Brajesh