BuddyDev

Search

[Resolved] load newest following activity auto refresh…

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

    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!
    Giulietta

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

    Hi Giulietta,
    Thank you for asking.

    Please allow me to test it with the BP Following plugin by tomorrow.

    Thank you
    Brajesh

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

    You are the kindest person in the universe!!!

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

    Dear Brajesh,
    do you remember me? 😉
    Kisses!
    Giulietta

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

    HI Giulietta,
    Will make sure to test today and get back to you.

    Regards
    Brajesh

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

    Dear Brajesh,
    please, don’t forget about me…
    Kisses!
    Giuly

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

    Sorry Giuly,
    I did keep forgetting this. I am going to prioritize it today and will get back to you.

    Best Regards
    Brajesh

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

    Hi 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
    Brajesh

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

    Dear Brajesh,
    you are simply the best!!!
    Thank you very much for your solution. The new release of the plugin fixes the problem.
    Thanks thanks thanks!!!!
    Kisses!
    Giuly

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

    Thank 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.

This topic is: resolved