BuddyDev

Search

Activity auto-refresh not working

  • Participant
    Level: Initiated
    Posts: 5
    Jon Rowe on #27752

    Hi there, I am using your Community Builder theme here: http://test4.savemi.net/lakerholics-blog/. New posts and comments are not automatically refreshing, despite having the box ticked for Activity Auto Refresh and Site Tracking.

    Best Regards, Jon.

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #27759

    Hi Jon,
    Thank you for using the theme.

    Please visit dashboard->Settings->BuddyPress->Options and select “BuddyPress Legacy” from the template pack.

    Then save it and if the auto refresh is not enabled, enable that and save again.

    That will fix it.

    Our theme has its own template pack(it does not uses Nouveau or the bundled legacy). Since we can not register a new template pack from theme, we have named it legacy to make it work.

    Please try that and let me know if it works or not?

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 5
    Jon Rowe on #27771

    Hi Brajesh,

    Unfortunately that has not worked, we still need to manually refresh the page. Is there anything else that we can try?

    Best Regards

    Jon

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #27772

    Hi Jon,
    I still see the BP Nouveau template pack enabled on your test site.

    Here is what you will see for new activities on Legacy

    https://i.imgur.com/KsgZdV7.png

    and when you click on “Load Newest”, It will load the new activities without refreshing the page.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 5
    Jon Rowe on #27773

    Hi Brajesh,

    Thats weird, because we have changed the settings: https://imgur.com/qzqcQnj

    We are not using any caching either.

    Regards

    Jon

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #27774

    Hi Jon,
    Thank you.

    I see now.

    The problem is the home page is using activity shortcode plugin. I am not sure, but I do not remember adding support for loading new activity in it.

    Here is your actual activity page
    http://test4.savemi.net/activity/

    This supports auto refresh and loading(This is the page created by BuddyPress).

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 5
    Jon Rowe on #27775

    Hi Brajesh,

    Yes we use the plugin shortcode so we can add the front end editor to the top of the page above it.

    Another question, is there a way to get the activity feed to auto populate with new posts and comments rather than have a “Load Newest” button?

    Regards

    Jon

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #27781

    Hi Jon,
    Thank you.

    1. You can most probably set the activity as home page.

    2. yes it is doable by binding to the event ‘heartbeat:activity:new’. The porblem is we do not expose a public API for doing the fetch.
    There is another way like simulate trigger on the load new but there are no events currently fired after that element is appended to the dom. I will be adding an event in the next release.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 5
    Jon Rowe on #27784
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #27785
    This reply has been marked as private.

You must be logged in to reply to this topic.

This topic is: not resolved