Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25386

    Hi Aubrey,
    Thank you for posting.

    I sincerely appreciate you taking time to help me understand it properly. I do see the issue clearly now. Please allow me to explore further this week(Sorry about this, just to need to set aside some time for this).

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25386

    Please put the above code in your child-theme/functions.php.

    Also, can you please clarify this?

    
    Hi Please also give me same function code used for plugin: Stealth Mode for Site admin
    

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25386
    Brajesh Singh on in reply to: Idea plugin. user widget & activity tinymce #12046

    Sorry, At the moment, we are unable to take any new request. I will suggest you to reopen it in Feb next year.

    PS: Please post Ideas in the Request/feedback forums.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25386
    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: 25386

    You are welcome!

  • Keymaster
    (BuddyDev Team)
    Posts: 25386

    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: 25386

    Hi Patrick,
    Thank you.

    I will supply you with the code for it then.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25386

    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: 25386

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

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25386

    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