Tagged: code
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!
GiuliettaHi,
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
BrajeshHi Giulietta,
I am sorry to keep you waiting.Please allow me just one more day.
Thank you
BrajeshHi 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
BrajeshYou 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.