WordPress.org

Ready to get started?Download WordPress

Forums

Fully live Ajax comments (3 posts)

  1. doranpalmer
    Member
    Posted 5 years ago #

    Trying to put together the ability to use ajax to query for new comments on a post every 10 seconds, then display any new comments made while the page is being viewed, without a refresh.

    I'm getting stuck within the comments code that I don't get fully ... anyone interested in developing this further?

  2. doranpalmer
    Member
    Posted 5 years ago #

    I've got everything working as it should with ajax, loading the page and calling directly to comments.php or the comments_template function, but while both grab the comments again, neither updates the comments with a new query even though both methods starts with a db query.

    That's where I'm stuck, any ideas?

  3. mikeybhoy
    Member
    Posted 4 years ago #

    I'm looking for a similar solution.

    Due to bandwidth constraints, I don;t want visitors to have to refresh each time they want to see new posts. To give you an idea of the problem, if you go to the celticquicknews site, you'll see that there can be upto 800 'comments' per day on each article, and with people refreshing everytime as the total posts gets longer, it just eats up bandwidth.

    I like the way Disqus updates your own comments immediately, so I'd be looking for something like that, except everyones comments should appear immediately (and without the refresh).

    I'm thinking maybe some kind of RSS solution would be required, but displaying on the main site.

    or maybe one of the vertical comment scrollers customized to full screen.

    Can anyone point me in the right direction?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags