WordPress.org

Ready to get started?Download WordPress

Forums

WP-Ajaxify-Comments
[resolved] Suggestion - Auto refresh after x seconds (16 posts)

  1. Christian Laugesen
    Member
    Posted 1 year ago #

    Great plugin Jan!

    I can think of several ways to using this if the list of comments would update itself after x seconds, thus creating a commenting experience similar to e.g. Facebook.

    How difficult would that be?

    Kind regards

    http://wordpress.org/extend/plugins/wp-ajaxify-comments/

  2. janjonas
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Thanks for your comment. It should not be that hard to implement this functionality. Nevertheless, it is a bit out of scope. I think this feature should be part of another plugin. Have you already tried to find this functionality in other plugins (for example this one: http://wordpress.org/extend/plugins/live-blogging/)?
    Please leave me a message if you do not find any plugin that provides the feature you are looking for and I will think of creating a new plugin.

    Best Regards,
    Jan

  3. janjonas
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Christian ,

    please try out the new developer version 0.12.0 from here http://downloads.wordpress.org/plugin/wp-ajaxify-comments.zip.
    This version includes an extended client-side JavsScript API.
    You can use the function
    WPAC.RefreshComments()
    to refresh the comments on the current page. To refresh the comments each x seconds you can add a custom JavaScript that calls the WPAC.RefreshComments() function periodically.

    Hope this helps ...

  4. andy999
    Member
    Posted 1 year ago #

    Maybe it'd be better to add a button you can click to refresh the comments so they don't reload while someone is reading them?

  5. janjonas
    Member
    Plugin Author

    Posted 1 year ago #

    Hi andy,

    this button should be part of your theme or your customizations because it needs to fit into the existing design/layout. At the moment such "layout features" are out of scope...

  6. janjonas
    Member
    Plugin Author

    Posted 1 year ago #

    Functionality is out of scope...

  7. janjonas
    Member
    Plugin Author

    Posted 1 year ago #

    The Auto-Update feature is now supported out-of-the-box in the current developer version 0.16.0 (http://downloads.wordpress.org/plugin/wp-ajaxify-comments.zip).

  8. Christian Laugesen
    Member
    Posted 1 year ago #

    Sorry for not getting back to you, Jan! But thanks for this update!
    I'll test it in the near furture.

  9. Vaughan
    Member
    Posted 1 year ago #

    Thanks so much Jan for going to the trouble of adding this, and Christian for describing it (I had to go through lots of search combinations to find how to describe what we're looking for).

    I was wondering how I can test this, because I can't see any refresh/change happening on comments unfortunately (using latest version). I'm using a localhost for now, and have set the idle time to 5000ms (5 sec). Should a message pop up saying it's refreshing?

    Also, is idle time counted as user completely idle, or just idle on that page (i.e. if the user has the page open in another browser tab but isn't working in that tab and working in another tab, will it still be idle there?)

    All the best.
    Vaughan

  10. janjonas
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Vaughan,

    the idle time is defined per "tab", i.e. each tab has it's own idle time counter that refreshes the comments on that tab/page.

    If the comments are refreshed you should see an overlay popup saying "Loading comments, please wait...". Please turn on the plugin's debig mode and check your browser console (F12) to see if there are any errors.

    If you have further questions, please open a new support thread or contact me here http://blog.janjonas.net/contact.

    Thanks
    Jan

  11. andmora
    Member
    Posted 10 months ago #

    The auto update doesn't work because the plugin add to the url ?WPACFallback=1&WPACRandom=1380658258801. If I delete that part of the url, the auto update works perfectly

  12. janjonas
    Member
    Plugin Author

    Posted 10 months ago #

    Could you please send me a link where I can reproduce the problem?

  13. Vivek Hutheesing
    Member
    Posted 6 months ago #

    Hi Jan, Vaughan and Christian,

    Hope it's OK to jump in here. Do any of you know the best way I can have my blog page auto-refresh each time a subscriber clicks through to it? Here's my recent post about this:

    http://wordpress.org/support/topic/plugin-subscribe2-need-auto-page-refresh-for-blog

    Many thanks indeed,

    Vivek

  14. janjonas
    Member
    Plugin Author

    Posted 6 months ago #

    Hi Vivek,

    my plugin only takes car about comments. You can ue the "Auto update idle time" to automatically refresh the comments each x milliseconds. But refreshing the list of existing posts is out of scope. Sorry...

  15. Vivek Hutheesing
    Member
    Posted 6 months ago #

    Hi Janjonas,

    Thanks for clarifying this. I think what I'm looking for must be needed by everyone. Basically a way for all the pages of my WP.org site (not just the blog page) to update when a subscriber (I'm using the Subscribe2 plugin) receives an email notification due to a new blog entry I've written.

    If you have any suggestions on how best to do this, I'd be very grateful to know.

    Thanks again,

    Vivek

  16. Vivek Hutheesing
    Member
    Posted 6 months ago #

    This describes in a little more detail what I'm trying to do:

    http://wordpress.org/support/topic/seeking-auto-page-refresh-feature

    Thanks,

    Vivek

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic