BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25183
    Brajesh Singh on in reply to: BP Magic Sidebar login #585

    Hi Jay,
    did that work for you or not? will appreciate your feedback.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25183
    Brajesh Singh on in reply to: [Resolved] Anonymous Plugin with rtMedia (conflict) #583

    Closing this as It is related to 3rd party plugin and hoping that they should have dealt with it by now.

  • Keymaster
    (BuddyDev Team)
    Posts: 25183
    Brajesh Singh on in reply to: Auto Loader #582

    Hi,
    have you had any chance to upgrade? I will appreciate your feedback.
    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25183

    Thank you Leigh. Closing this topic now. Please feel free to open new topic if needed.
    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25183

    Hi Steve,
    Have you had any chance to look at the update?
    I will appreciate your feedback.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25183
    Brajesh Singh on in reply to: [Resolved] Loop for member types #577

    Hi eGuard,
    Here is an example function

    
    
    function buddydev_custom_get_users_by_member_types( $ids = array() ) {
    		
    	$ids = wp_parse_id_list( $ids );
    	
    	if( ! $ids ) {
    		return ;
    	}
    	
    	$args = array(
    		'user_ids'			=> $ids,
    		'populate_extras'	=> true, //it will fetch names etc and cache member types
    	);
    	
    	$user_query = new BP_User_Query( $args );
    	
    	$users = $user_query->results;
    	$user_by_types = array();//multidimensional assay
    	//an Arr of WP_User objects with some added details like last_activity, latest_update etc
    	foreach ( $users as $user ) {
    		
    		$member_type = bp_get_member_type( $user->ID );
    		if( ! $member_type ) {
    			continue;
    		}
    		
    		$user_by_types[$member_type][] = $user->ID;
    		
    	}
    	
    	print_r( $user_by_types );
    	
    }
    
    

    And you ca call it like this

    
    <?php buddydev_custom_get_users_by_member_types( '1,2,3,4,5,6,7,8');?>
    

    Hope that helps you.

  • Keymaster
    (BuddyDev Team)
    Posts: 25183
    Brajesh Singh on in reply to: [Resolved] Prevent subscribers from uploading images? #576

    Hi A . Rhein,
    I am sorry, That was a mistake in my part.

    I forgot to put the function we are calling.
    Please add this snippet too to your bp-custom.php

    
    function buddydev_is_above_subscriber() {
    	
    	if (  current_user_can( 'delete_posts' ) ) {
    		return true;
    	}
    	
    	return false;
    }
    
    

    Now, that will work for sure.

  • Keymaster
    (BuddyDev Team)
    Posts: 25183

    Hi Lukas,
    Please put the following code in your bp-custom.php or in your functions.php

    
    add_filter( 'bpajaxr_is_auto_activation_mode', '__return_false' );
    

    That will do it.

  • Keymaster
    (BuddyDev Team)
    Posts: 25183

    Hi Steve,
    I have updated the Rate Limit User activity plugin and now it works fine with BuddyPress Activity AS wire plugin.

    If you are using BuddyDev dashboard plugin, you can directly update from your plugins page.
    Otherwise, please download from here

    https://buddydev.com/plugins/bp-rate-limit-user-activity/

    and update.

    Please do let me know if that works for you or not?

  • Keymaster
    (BuddyDev Team)
    Posts: 25183

    Hi Steve,
    Sorry about the delay.

    I tested these two plugins together and here is what i found.

    When rate limiter plugin is active, the BuddyPress Activity as wire plugin stops working. Other than that, public notifications etc was working fine for me.

    Is that the case for you too? I am working on a compatibility fix right now and will have another update for you soon.