Dear Brajesh,
sorry for disturbing you again. I’m asking you a pleasure…
In order to have the load newest activity auto refresh with BP Community Activity on profile plugin working, you suggest me to insert the following code in my bp-custom.php:
————————
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’ );
——————————
And it works perfectly!!!Now I’d like to do the same for the “Following” activity (BuddyPress Follow plugin, Andy Peatling, r-a-y
So I put this code in my bp-custom.php:
————————
function buddydev_do_heartbeat_on_following_activity( $do ) {
// is it our page?
if ( bp_is_user_activity() && bp_is_current_action( ‘following’ ) ) {
$do = true;
}
return $do;
}
add_filter( ‘bp_activity_do_heartbeat’, ‘buddydev_do_heartbeat_on_following_activity’ );
—————————
but it does not work 🙁I know it is not your plugin and I should ask to Peatling but… he did not answer me and you are so kind…
If the solution is easy for you (no more than 5 minutes)… could you please help me anyway?
Thanks in advance!
GiuliettaHi Giulietta,
Thank you for asking.Please allow me to test it with the BP Following plugin by tomorrow.
Thank you
BrajeshHI Giulietta,
Will make sure to test today and get back to you.Regards
BrajeshSorry Giuly,
I did keep forgetting this. I am going to prioritize it today and will get back to you.Best Regards
BrajeshHi Giuly,
I am sorry that it took me so long. I finally tested it today.The code will work fine if you are using 1.3 branch of the BuddyPress follow plugin.
You can download it from here.
https://github.com/r-a-y/buddypress-followers
Best Regards
BrajeshThank you for the kind words Giuly.
Have a nice weekend.Best Regards
Brajesh
The topic ‘ [Resolved] load newest following activity auto refresh…’ is closed to new replies.