WordPress.org

Ready to get started?Download WordPress

Forums

WP-Ajaxify-Comments
[resolved] Refresh comments with ajax? (5 posts)

  1. andy999
    Member
    Posted 1 year ago #

    Let me start by saying that this plugin is fantastic, got it working great for a site I'm building at the moment(even after wrestling with the styling on blockUI).

    I'm wondering if it'd be possible to add 'refresh all comments' with ajax, so people can refresh the entire comments section without the page reloading?
    Much like the sort of functionality you see on systems like livefyre etc.

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

  2. janjonas
    Member
    Plugin Author

    Posted 1 year ago #

    Hi andy999,

    thanks for your comment. 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.

    Hope this helps ...

  3. janjonas
    Member
    Plugin Author

    Posted 11 months ago #

    0.12.1 was released yesterday. I think the topic is resolved.

  4. andy999
    Member
    Posted 11 months ago #

    How do I use WPAC.RefreshComments() to refresh the comments?

    I have no idea where to write that or put it.

  5. janjonas
    Member
    Plugin Author

    Posted 11 months ago #

    You need to add some JavaScript client side code to your page. You can use for example the JavaScript code to refresh the comments every 5 seconds 5:

    window.setInterval('WPAC.RefreshComments();', 5000);

    Hope this helps...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.