Apr 16th

AJAXified comments in WordPress 3

2011, 03:11 UTC | By | In wordpress
Leave a comment | Trackback  | 5307 views


I have long been looking for a plugin that would enhance WordPress' comment system with some AJAX features, specifically, it should:

  • a) enable AJAXified comment posting without the need to reload the entire page after a comment had been submitted.
  • b) enable AJAXified comment paging so that people who read larger amounts of comments do not need to reload the complete page.

There have been a number of solutions for both a) and b) but none that combined everything into a single plugin and some of the AJAX commenting plugins are outdated and incompatible with recent releases of WordPress and many modern themes.

The mother of all AJAX comment plugins

AJAX comment paging

That pretty much sums it up. WP-Comment-master is the most comprehensive WordPress plugin to AJAXify the comment system. It has all the features, installs quickly and does not need any changes to your theme. Basically, it does 2 things:

  • enables AJAX paging for long comment threads. Visitors can load a new page of comments without reloading the entire page. Not only does this accelerate the process of paging through many comments, it will also reduce the load on your server.
  • enables AJAX comment posting. After submitting, the new comment will instantly appear in the comment thread, again without reloading the page.

The plugin does not need any changes to be made to your current theme (assuming, you're using one of the modern WordPress themes and did not heavily modify the comment templates). It requires JavaScript (of course, like all AJAX features do), but for users who visit with JavaScript disabled, it also provides a fallback mode and these users will see the default (non AJAX) version of the comment paging and posting - just like it works without this plugin installed. It's also lightweight and has little, if any, impact on the performance and because users can page through comments without reloading the whole page, the overall server load should benefit from this plugin.

SEO considerations

One often heard argument about AJAX is that it can have bad side effects on the indexing of your page(s). There is some truth in this argument and one must know what AJAX really means to understand. All AJAX techniques work by modifying pages that are already fully loaded and visible in the browser. By sending asynchronous requests and using the replies from the server to manipulate the HTML document via its DOM, AJAX features can change the content of a page without completely reloading it. Another important thing is that all AJAX techniques are closely bound to the availability of JavaScript. No JavaScript - no AJAX.

Said that, it should be obvious that AJAX can only work in a browser with JavaScript enabled. Search engine crawlers cannot use these features and will continue to index pages using only conventional HTTP requests. The good news is that this plugin is not going to affect the crawlability of your site in a negative way. Just like when a visitor with disabled JavaScript visits your site, the plugin will present a standard comment page to the search engine so that all comments can be indexed like before.

Conclusion

Put simply, this is one of the best plugins ever made for our favorite blogging software. It really enhances the commenting system for your visitors and can help to reduce the load on your server(s) when you have many large comment threads and want to use paged comments.

2 Likes Like
 

17 responses to: AJAXified comments in WordPress 3

  1. Great Plugin by  chris, Apr 25th, 2011 at 10:16
    Reply | Quote | #1

    You dont know how long Ive been looking for a plugin to combine this, Thanks for the plugin works great for the most part. I get a errors 1st) is "Error: please type a comment." even when i have typed a comment i have to hit submit again then it will accept the comment. Plugins I have installed comment related are "comment reply notification" , " MCEcomments" , And of course this one.

    Another thing i was wondering Can you have new comments automatically load or with a show new comments kinda like youtube comments does it. I will be willing to pay, I dont have much money but I've been worn out searching for this. and this plugin is exatcly what i was looking for minus the auto load of new comments.

    MY email is the real email you can contact me their and I will be checking this comments back regularly , So hope to hear from you soon. Thanks again Great Plugin

  2. Admin, Apr 25th, 2011 at 12:56
    Reply | Quote | #2

    Well, I'm not the author of the plugin, I just blogged about it because I think it's a great plugin and I'm using it here.

    The author's homepage is here: http://yjlblog.com/?p=11#comments

    The "load comments on demand" feature is an interesting idea as it would further reduce load on busy sites (not everyone is interested in reading comments) but I'm not sure whether it is possible in WordPress at all - never seen such a feature.

  3. chris, Apr 26th, 2011 at 04:10
    Reply | Quote | #3

    Yup thanks for the quick reply, I left a comment on the author's plugin page so hopefully I will hear something soon from him/her.

    Yeah I never seen an auto load feature before either, read about a plugin that had it in the works for a future release but that plugin hasnt been updated since 08'. So hopefully its possible.

    But thanks for this blog post about this plug in without this Blog post I would have never found this plug in thanks again.

    • Admin, Apr 26th, 2011 at 06:16
      Reply | Quote | #4

      Most old comment paging plugins broke when WordPress introduced its own paging + some other features like nested comments. I think it was version 2.7 or maybe 2.8, so most of the old comment-related plugins were abandoned thereafter and are now obsolete.

      I still think some kind of "load more..." would be neat for busy blogs with long comment threads. I can think about a way to do it via template / theme editing but have no idea how it could be done with a plugin. But then, I'm not really experienced in writing WordPress plugins.

      • chris, Apr 26th, 2011 at 08:06
        Reply | Quote | #5

        Yeah I posted my original comment from here at the author site and he responded, He didnt quite get what i meant by loading new comments automatically, but i left another reply explaining a bit more in detail, see what he says about the matter....

        But yeah that "load more.." will be a great feature especially for a busy blog with lively comments ... I honestly am just looking for a way to do this, doesn't have to be a plugin I have no problem editing it via the template / theme to find a solution. So if you have an idea or a way of accomplishing this I will love to hear it.

  4. Rado, Apr 28th, 2011 at 18:06
    Reply | Quote | #6

    Thanks for bringing this plugin in the spotlight

  5. aa by  123, Apr 29th, 2011 at 22:24
    Reply | Quote | #8

    在法一个

  6. test by  j576z, May 11th, 2011 at 23:45
    Reply | Quote | #9

    ajax test

  7. Generic Viagra, Jul 5th, 2011 at 07:08

    Most of the comments page plugins old broken when WordPress has launched its own page + some other features, such as nested comments. I think it was version 2.7 or 2.8, perhaps, than most of the old plugins related observations were subsequently abandoned and obsolete.

    I still think some kind of "Download more than ..." would be easy to blog comment threads busy long. I can not think of a way to make it through the template / theme editor, but have no idea how it could be done by the plugin. But then, I'm not very experienced in writing wordpress plugins.

  8. Sire, Sep 16th, 2011 at 05:16

    I tried it but deactivated it because it didn't show the comment after it was submitted and my readers were complaint that their comment didn't work when it did. You had to refresh the page to see the comment.

  9. Sire, Sep 16th, 2011 at 05:17

    Seems to work on this blog so maybe its conflicting with another plugin.

  10. Admin, Sep 25th, 2011 at 19:27

    Actually, this (my) blog is now using another plugin for Ajax comment pagination. I have developed my own plugin for this purpose and plan to release it when it's ready.

    Here is more about it: http://blog.miranda.or.at/ajaxcm

Subject

  (this is optional)

Comment text

Allowed HTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>