New
PeoplePress is here. Community building for WordPress, reimagined. Fast, modern, and built for the communities you've always wanted to run.
See it live

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: Load more activity faster #12045

    Hi Julia,
    1.The Button:- It depends on the theme. So, it depends on your theme. You can’t get as it is from the BP default theme.

    2. It is most probably your server. The activity response comes from server, I don’t see any delay on the js we have.

    Please check by deactivating the plugin if your activity loads faster.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    You are welcome!

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    No problem.
    You can put this code

    
    
    /**
     * Disable recording for some users. These users will not appear in list from now onwards.
     *
     * @param bool $is_enabled is recording enabled.
     * @param int  $user_id the user id we are checking for.
     *
     * @return bool
     */
    function buddydev_custom_disable_visitor_recording( $is_enabled, $user_id ) {
    
    	$disabled_user_ids = array( 1, 2 ); // add the user ids here.
    
    	if ( in_array( $user_id, $disabled_user_ids ) ) {
    		$is_enabled = false;
    	}
    
    	return $is_enabled;
    }
    
    add_action( 'visitor_is_visit_recordable', 'buddydev_custom_disable_visitor_recording', 10, 2 );
    
    

    In your theme’s functions.php or in the bp-custom.php.

    If you are uncomfortable with it, please drop me an email with ftp details and I will do it for you.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    Hi Patrick,
    Thank you.

    I will supply you with the code for it then.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    Hi Julia,
    It’s a good suggestion. Allow me to check the feasibility and get back to you in next 24 hours.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    Hi Beuza,
    Sorry about that. Will certainly have some update today.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    Also, to answer your first question

    We check if the user has a role, so if a user has 2 roles and one of those role matches, It will be recordable.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    Hi Julia,
    Can you please help me understand your question.

    If You need more control than settings, It is doable. we have a lot of hooks available for the same.

    For example, to disable visit recording by a user, we have a hook “visitor_is_visit_recordable” that we can use.

    Please let me know the details and I will assist you with the code.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    I will be pushing the update tonight/tomorrow. It’s a small change, so you we can do it quickly.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    Hi Julia,
    Thank you for the suggestion.

    We won’t be able to add this kind of functionality(at least for now and in foreseeable future).
    Under the hood, you can use the recent members to do a lot of analytics, but as far as front end views are concerned, our goal is to keep it bare minimum.

    As a site admin, please feel free to extend it in anyway you like. You will need to hire a developer though if you want to extend it beyond what we offer.
    If you need any help with the API, I will be happy to guide.

    Thank you
    Brajesh