Skip to:
Content
Pages
Categories
Search
Top
Bottom

AJAX refresh of activity loop


  • LPH2005
    Participant

    @lph2005

    Future versions are set for ajax refresh but maybe this could be done in a child theme now rather than later. A “live, real-time” activity stream seems much more attractive.

    Would it be possible to modify the /activity/index.php page to reload the activity loop any time new activity is written to the database?

    Playing around with this code provides a refresh of the page:

    http://www.webdeveloper.com/forum/showthread.php?t=169337

    But better code would be for refresh on the activity database change. There is a plugin that places a message when new activity is available – instead – maybe this plugin could be modified so that the activity loop is reloaded instead of showing a message.

    Maybe someone would like to take up this challenge :)

    Thoughts?

Viewing 3 replies - 1 through 3 (of 3 total)

  • LPH2005
    Participant

    @lph2005

    After tinkering more on a local XAMPP install, adding the code and tag `

    ` leads to weird behavior. Several different places were tried but the reload usually ended up not showing past activity.

    modemlooper
    Moderator

    @modemlooper

    Could slow down your site if you do live updating for every member.


    LPH2005
    Participant

    @lph2005

    @modemlooper “Could slow down your site if you do live updating for every member.” — Yes. this would depend on the implementation. For example, if the BuddyPress Activity Stream Ajax Notifier was reworked to refresh the page rather than notify then the activity stream would “feel as a real-time” activity.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘AJAX refresh of activity loop’ is closed to new replies.
Skip to toolbar