BuddyDev

Search

[Resolved] load newest button with BP CommunityActivity on profile

Tagged: 

  • Participant
    Level: Initiated
    Posts: 19
    giulietta on #9202

    Hi, I’m using “BP Community Activity on profile” plugin in order to have the wide site activity on user profile. Unfortunately using this plugin no “load newest” button is showed 🙁
    I think this featured is managed in the boddypress.js file. I think it is only a question of content path but I’m too ignorant to implement such editing alone. Can someone help me please?
    Best wishes!
    Giulietta

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #9219

    Hi,
    Welcome to BuddyDev forums and thank you for posting it.

    Please allow us to investigate it today and post a solution by tomorrow.

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 19
    giulietta on #9272

    Dear Brajesh,
    thank you for your quick and kind answer. I hope you will find some suggestions to solve my problem.
    Best wishes!
    Giulietta

  • Participant
    Level: Initiated
    Posts: 19
    giulietta on #9321

    Dear Brajesh,
    sorry for annoying you… did you find any solution for my problem?
    Thanks in advance!
    Giulietta

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #9323

    Hi Giulietta,
    I am sorry to keep you waiting.

    Please allow me just one more day.

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 19
    giulietta on #9324

    Dear Brajesh,
    take your time, it is not urgent and you are just making me a favor…
    Best regards!
    Giulietta

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #9338

    Hi Giulietta,

    Please put this code in your bp-custom.php or your functions.php

    
    
    /**
     * Ask BuddyPress to check and load newest activity on Community Activity page.
     *
     * @param bool $do
     *
     * @return bool
     */
    function buddydev_do_heartbeat_on_community_activity( $do ) {
    	// is it our page?
    	if ( bp_is_user_activity() && bp_is_current_action( 'all-activity' ) ) {
    		$do = true;
    	}
    
    	return $do;
    }
    add_filter( 'bp_activity_do_heartbeat', 'buddydev_do_heartbeat_on_community_activity' );
    
    

    That will make it work.

    Hope that helps.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 19
    giulietta on #9360

    Dear Brajesh,
    thank you thank you thank you so much!!!
    Your fix works perfectly!!!
    You can consider this topic solved!
    Many kisses!
    Giulietta

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #9384

    You are welcome. Will be adding it to the next update of the plugin too.

    Regards
    Brajesh

The topic ‘ [Resolved] load newest button with BP CommunityActivity on profile’ is closed to new replies.

This topic is: resolved