Activate your free membership today | Log-in

Wednesday, March 8th, 2006

Wordpress Ajax Comments

Category: Ajax, PHP

In a quick blog post from Wekgna.com there’s some information about adding an Ajax-enabled commenting system to your Wordpress blog.

Finally, my blog is ajaxified and all this is made possible with the help of Safirul of zeo.unic.net.my. I was initially intrigued with the commenting system at K2 and Squible where a nice animatic effect of the comment appears right after you click on the post button. It was Ajax and I wanted it on my blog. But I don’t want Squible nor K2.

Scouring the web, I found 4 resources of doing this with wordpress.

The four resources listed are:

In each of those articles, it’s described how, with the corresponding technology, they implemented Ajax comments into their blog/site.

Posted by Chris Cornutt at 10:12 am

++++-
4 rating from 296 votes

205 Comments »

Comments feed TrackBack URI

I posted about the techniques I used in implementing an Ajax-commenting system on my Movable Type weblog a little bit ago:

http://bbuchs.f2o.org/archives/2005/06/23/ajax-ified_weblog/

And, as fate would have it, I’m in the middle of a rebuild, so I updated the script to work with the latest version of Prototype/Scriptaculous. Haven’t gotten a chance to do the write-up on this build yet, but it’s coming…

Comment by Bryan Buchs — March 8, 2006

ya this is great post.. me too dont want squibble or k2 but what the AJAX part alone in my blog

Comment by varun krishnan — March 8, 2006

All the Ajax methods and libraries SUCK! I was under the impression that Xerox PARK invented GUI and both Apple and Microsoft perfected the technologies and created excellent reusable GUI Classes..

Why are you debating among many inferior methods when we can build reusable Ajax GUI Classes to build superior online applications?
Please read:
http://www.cbsdf.com/misc_docs/why-gui-api.htm
http://www.cbsdf.com/misc_docs/gui-api-brief.htm

What else you need. What chance any other framework has and can offer? This is not a vapor where. The inventor has put 100% proof in the web site and challenged the world to prove him wrong. If you are a technology super star then try to invalidate the technology.

When common sense prevails all the other Ajax frameworks and methods will be marginalized.

John

Comment by John — March 8, 2006

According to Fiddler that page needs 448KB to load! That’s quite a lot for a simple commenting system that is flawed on so many points it isn’t even funny anymore.
1. The numbering is al wrong for existing posts
2. My new post is numbered 1, although it should be 25
3. I see my new post, but others don’t. What’s the use of Ajax? You could have added my comment using 1 line of JS not needing a round-trip if you’re only planning to show my post to me live.
4. The animation is wrong
5. I can’t submit again
And all of this for under 500KB.

What the Ajax community needs is a filter to separate the amateurism from the professionalism. Shit like this isn’t the right example for any of us.

Comment by Lon — March 8, 2006

Lon -

First off, I’m not the author - but LIGHTEN UP!

#3 - it’s a commenting system, not a chat room. the point of the ajax usage is to limit the amount of data coming back from the server - just your post, not the whole damn page.

#5 - again, not a chat room. some weblog setups have a throttling feature that doesn’t allow you to submit multiple comments quickly.

And thanks for the link to your site so we can all be exposed to your so-called professionalism.

Comment by Anonymous — March 8, 2006

Hi Anonymous,

if the point of Ajax in this case is to limit the amount of data coming back from the server, why does the page have to be over 400KB?

If this is not about making the commenting system seem alive, why not target a hidden iframe then on submit and don’t get back any data at all?

You don’t need Ajax for what you are describing. Spare yourself the huge amount of script in that case.

This particular implementation of a commenting system has nothing to do with Ajax. It’s not asynchronous, there is no need for XMLHTTP and there is hardly any need for JavaScript.

Do people really see this as a fine example of Ajax?

OK, I’ll shut up. My apologies if I offended anyone.

Comment by Lon — March 8, 2006

I agree that 400k is at least 4x too large for what’s being done on that page. But it’s not a flawed concept - It’s a *simple* example of ajax. A weblog isn’t a web application.

Comment by Anonymous — March 8, 2006

Hi Lon,

I’ve checked, the numbering was ok, I posted a new post @42 and the number turn up correctly. On #3, the idea is to have ajax for the person who is doing the commenting, if there is a oneline js that does that, do share it, like you said, no one wants a round-trip. On the 400k part, I am really intreague, to implement this, I added 3 files that is about 80K total. If the whole page loads at 400k, something is wrong and I need to get fiddle…

Comment by Kew — March 8, 2006

[...] ajaxian.com/archives/wordpress-ajax-comments [...]

Pingback by AlbanyWiFi.com » Blog Archive » Wordpress Ajax Comments — March 8, 2006

[...] Ajaxian’s new article is about implementing “lighter ajax add comment tools” to Wordpress. I’ll be working on the code to implement it on WordPressMag too. According to Chriss there are 4 specific site to learn the how-to! Take a look at these 4 sites/blogs: [...]

Pingback by AJAX Comments: WordPress Blogs — March 8, 2006

K2 and squible aren’t the only wordpress themes that support AJAX enhanced live comments - don’t omit Binary Blue, which additionally has integrated full support for AJAX Paged Comments and doesn’t suffer from the same bugs as the other two themes.

Comment by Silencer — March 11, 2006

[...] Ma… come ottenere tutto ciò in WordPress?Un po’ di tempo fa vidi un plugin che si prefiggeva di fare tutto ciò (CanaryComment), ma lo testai ed il risultato non fu dei migliori (ergo: non funzionava).Qualche giorno fa ho letto invece un interessante articolo su Ajaxian intitolato "WordPress Ajax Comments" dove se ne parlava, e si faceva il punto sui diversi metodi utilizzati per ottenerlo. [...]

Pingback by Giovy’s Blog » WordPress AJAX Comments — March 13, 2006

Got it installed. Working Great.

Thanks!

Comment by Serge — March 13, 2006

[...] Ajax Templating - Separation of Layout and Logic: [...]

Pingback by Sam’s random musings » Ajax Templating - Separation of Layout and Logic — March 14, 2006

I wonder since you mentioned what you did if you know how to make this work for me…Great blog here. have a nice weekend! Sally

Comment by Sally — March 17, 2006

is it a hack that you have here or a true plugin?

Comment by dirkhaim — March 25, 2006

I have dreamed for a ajax comment for a long time!

Comment by ken — April 2, 2006

[...] Script.aculo.us 1.6 Released: [...]

Pingback by Sam’s random musings » Script.aculo.us 1.6 Released — April 5, 2006

[...] DOMInclude: Replacing pop-ups: DOMInclude is a library that allows you to add inline dynamic includes of content rather than using window popups. Pop-up windows are a pain for both the developer and the users. Often enough a page needs to link to a terms and conditions document and as the client does not want the user to leave the page you are asked to implement them in a pop-up. The problem with this are technical and psychological: years of unsolicited pop-up windows have conditioned users to immediately close windows when they open the same reason and security concerns made people install pop-up blocker software and browsers to include pop-up blocking options, and depending on their configuration these may even block your “friendly pop-ups�. [...]

Pingback by Sam’s random musings » DOMInclude: Replacing pop-ups — April 11, 2006

[...] Prototype: Easing Ajax’s Pain: This article describes Prototype, an open source JavaScript library to create an object for an AJAX application. I explain how to use Prototype by describing an environmentally oriented web application that displays an annual atmospheric carbon dioxide (CO2) level. First, I will discuss Prototype’s benefits and describe how to set up Prototype in your application. Second, I will delve into the nitty-gritty of how this application puts the library to good practical use. [...]

Pingback by Sam’s random musings » Prototype: Easing Ajax’s Pain — April 11, 2006

[...] I also realised that AJAXian had the unfortunate wording in their post that I might have meant that with the article and the comments on the AJAXian post were an interesting read indeed. [...]

Pingback by innerHTML vs. DOM = pot noodles vs. real cooking - Wait till I come! — April 18, 2006

[...] When Ajax Gets Abused: [...]

Pingback by Sam’s random musings » When Ajax Gets Abused — April 22, 2006

[...] Well, more than a few people have picked up on the various articles floating around regarding Ajax and scalability. Thanks to Michael Mahemoff for reading my piece and reposting it (check the comments). Stuart Halloway over on Relevance also picked up on the thread (alas he didn’t notice my commentary…) and made a great point - the server vendors win in this game! Interestingly, this is the second time in less than a week that I’ve read a variant of this quote (though it’s not attributed in Stuart’s article, according to wikipedia, it’s Jan L. A. van de Snepscheut). In theory, there is no difference between theory and practice. But, in practice, there is. [...]

Pingback by ntschutta.com » Blog Archive » More Ajax and Scalability — April 25, 2006

[...] script.aculo.us Reflector: [...]

Pingback by Sam’s random musings » script.aculo.us Reflector — April 27, 2006

Thanks for info, I’d been wondering how to do this!

Comment by Cesar Gonzalez — April 28, 2006

Found this awesome site to post about scams that have affected you. I have learned a lot of what not to do online since reading some of the posts. I have added them to my favorites and they even offered me a free blog to post about my dealing with clickbooth.com who wont pay me…

Comment by Cities Lists — May 2, 2006

[...] Really Easy Field Validation with Prototype: [...]

Pingback by Sam’s random musings » Really Easy Field Validation with Prototype — May 9, 2006

[...] Ajaxian » Really Easy Field Validation with Prototype Enter Really Easy Field Validation. It lets you do the following with your form elements, using the class attribute to indicate what kind of validation is needed (assumes Prototype 1.5, included with Script.aculo.us 1.6.1): [...]

Pingback by Mind-NOX » Blog Archive » Ajaxian » Really Easy Field Validation with Prototype — May 9, 2006

[...] Search results, tags, comments, and data validation are all good examples of transient data. All are given to flux and make perfect candidates for manipulation by AJAX or similar technologies. [...]

Pingback by Vitamin Features » Responsible Asynchronous Scripting — May 29, 2006

now everyone will want to just test your comment system.
(I guess LivePreview isn’t ajax tho) lets see

Comment by ajax — June 2, 2006

It’s a shame that everyone is testing. Well, I’m doing it too.You better clean up the comments later. :p

Comment by A shame — June 6, 2006

Is there any ready to use comments plugin for wordpress 1.2 mingus running on Ajax? I’d love to use ajax on my blog. Pls help.

Comment by Sonali — June 7, 2006

apa comment ini sudah menggunakan ajax juga?

Comment by Darojatun Wijaya — June 7, 2006

[...] However, there does seem to be some debate over at the Ajaxian.com comments as to its implementation and true nature. [...]

Pingback by Prototype Window Class at fnerd.com — June 7, 2006

[...] Prototype Window Class: [...]

Pingback by Sam’s random musings » Prototype Window Class — June 7, 2006

The live preview is pretty cool, but is ajax really necessary for a comment system???

Aren’t we going a bit far with this?

samfind
http://samfind.com

Comment by samfind — June 12, 2006

[...] protoGrowl: Notification Messages: [...]

Pingback by Sam’s random musings » protoGrowl: Notification Messages — June 12, 2006

yay for ajax

Comment by phauwn — June 15, 2006

[...] Ajax anti-patterns: [...]

Pingback by Sam’s random musings » Ajax anti-patterns — June 15, 2006

[...] 50 Ajax Reference Websites from Around the World: [...]

Pingback by Sam’s random musings » 50 Ajax Reference Websites from Around the World — June 15, 2006

My name is Ruby i am working on a big project at high school about blogs. I hope you don’t mind me mailing a few words on this text as my tutor needs to see it. Your blog is really good by the way.

Comment by Container Gardening — June 23, 2006

I cannot make it work, ntsch.

Comment by Lautreamont — June 26, 2006

This is a great plugin, congratulations

Comment by df adf jadfj kl — June 28, 2006

this is making me frustrated not being able to make it work :(

Comment by luc — June 30, 2006

At least I know that ajax hasn’t quite worked out for my blog (yet)

Comment by naser — July 1, 2006

I guess I need ajax for my blog.

Comment by Shery — July 5, 2006

Your site is great. I just happened to have a moment to surf the net and came across it. Thanks 4 the good information I have found on your site. Nice site. Bookmarked.

Comment by Ieyasu — July 6, 2006

I used Mike Smullin’s AJAX Comments plugin and it worked perfectly just dropping it into place. No template changes were even necessary!

Comment by Darcy Pierlot — July 6, 2006

[...] Ajax Activity Indicators Examples: [...]

Pingback by Sam’s random musings » Ajax Activity Indicators Examples — July 11, 2006

I’m wondering if it’s worth the trouble for me.

Comment by David — July 13, 2006

Whooa
This is a cool plugin!
Thanks.

Comment by BillyChow — July 17, 2006

[...] Advanced Box Model Testing: [...]

Pingback by Sam’s random musings » Advanced Box Model Testing — July 24, 2006

[...] Link Thumbnail: Photo Mouse Over: A little bit JavaScript, a little bit CSS and a little bit clairvoyance, Link Thumbnail shows users that are about to leave your site exactly where they’re going. When that curious mouse pointer hovers over a link pointing to somewhere outside of your site, the script displays a small image of the destination page. It’s a nice visual cue that serves a very real purpose: providing a clearer picture (no pun intended) of what’s ahead. [...]

Pingback by Sam’s random musings » Link Thumbnail: Photo Mouse Over — July 25, 2006

Howdy. Very nice theme. Been looking for one that suits my taste. Seems you gave me an idea.

Comment by Jelg — July 27, 2006

I was wondering how long this was going to take. Nice work.

Comment by David Merwin — September 5, 2006

Couldn’t get it to work

Comment by Kim — September 22, 2006

[...] Transcorners: Because you are obsessed with rounded corners: [...]

Pingback by Sam’s random musings » Transcorners: Because you are obsessed with rounded corners — October 2, 2006

[...] Smooth Slideshow 2.0: [...]

Pingback by Sam’s random musings » Smooth Slideshow 2.0 — October 11, 2006

[...] MochiKit.Animator: New Animation in MochiKit: [...]

Pingback by Sam’s random musings » MochiKit.Animator: New Animation in MochiKit — November 8, 2006

[...] On Ajaxian, Dion points to Sun’s Phobos project, an attempt to build a new platform for server-side Javascript. Phobos came out six months ago, around the time of the May Ajax Experience. [...]

Pingback by Software As She’s Developed » Blog Archive » Phobos - Server-Side JS Redux — November 11, 2006

joo, how this work…

Comment by Lets dry — November 16, 2006

testing…

Comment by me — November 20, 2006

testing this ajax comment

Comment by testing — November 20, 2006

[...] Spelling Cow: JS Spell Checker: [...]

Pingback by Sam’s random musings » Spelling Cow: JS Spell Checker — November 24, 2006

Lets see if it works

Comment by ds — November 26, 2006

Nice!

Comment by Camron — November 27, 2006

interesting commenting form

Comment by lyricsfly — November 28, 2006

testing

Comment by just testing — November 29, 2006

Neat! Thanks.

Comment by Jake — November 30, 2006

test

Comment by test — December 3, 2006

[...] Firebug 1.0: Public Beta, Still Free, and a Lite version for other browsers: [...]

Pingback by Sam’s random musings » Firebug 1.0: Public Beta, Still Free, and a Lite version for other browsers — December 4, 2006

Pingback by Sam’s random musings » Firebug 1.0: Public Beta, Still Free, and a Lite version for other browsers — December 4, 2

Comment by xxxx — December 5, 2006

I want to say, that ajax based plugins are really amazing!

Comment by Bojidar — December 6, 2006

The advantages of ajax, is that it load everything in one page, but in this case you don’t have urls for search engines :(

Comment by PDesigner — December 9, 2006

Motorboat! :D

Comment by Moo — December 12, 2006

I want to say thank you to the people who run this page. It is always a good resource and i am here almost every week reading all new stuff.

Comment by Jermaine — December 17, 2006

This is just my testing to this comment

Comment by tester — December 26, 2006

second testing

Comment by tester — December 26, 2006

third posting…. but hey… why it’s still reloading page??

Comment by tester — December 26, 2006

Fourth Post :-)

Comment by tester — December 27, 2006

========================================================================================================================================================================================================================================================================================================================================================================

Comment by assad — January 1, 2007

ds

Comment by ds — January 3, 2007

gosh, there are so many great wordpress plugins i’m never gonna leave my computer!

Comment by t apps — January 6, 2007

Thanks . Badly need this plugin , because users cant wait till the comments appear at the page .

Comment by BooTCaT — January 14, 2007

let’s see f i need this

Comment by c donkor — January 20, 2007

I will give it a test run on my blogs.

Comment by Maldives — January 20, 2007

fg”h”‘h

Comment by dd — January 21, 2007

Nice. Great help. thanks :)

Comment by web designer — February 4, 2007

teste

Comment by teste — February 21, 2007

Very nice!

Comment by Brutal — March 1, 2007

poasdm

Comment by rewte — March 12, 2007

just a test

Comment by koki — March 14, 2007

just want to test out the ajax comment

Comment by aprilcherrie — March 14, 2007

http://ajaxian.com/archives/wordpress-ajax-comments

Comment by Name — March 16, 2007

AJAX is great

Comment by darren — March 24, 2007

Super plugin!

Comment by BoberPL — March 24, 2007

test comment

Comment by Sai — March 24, 2007

Cool!

Comment by Sherica — March 26, 2007

To test the ajax function

Comment by Chaney — March 27, 2007

Interesting

Comment by alireza — April 5, 2007

Let’s see if this is as cool as I think

Comment by gazza — April 6, 2007

Test

Comment by Bill K — April 7, 2007

Thanks for the info….

Comment by Nica — April 9, 2007

Cool!

Comment by Max — April 10, 2007

testu

Comment by testu — April 10, 2007

great. just testing

Comment by stephen — April 10, 2007

wooo hooo!

Comment by testy — April 11, 2007

Testinggggggg

Comment by Someone — April 12, 2007

awesome plugin

Comment by pinkdoll — April 12, 2007

test

Comment by Grace — April 13, 2007

testttt

Comment by jlfdkjadf — April 15, 2007

Testing to see how this works.

Comment by bobbysketch — April 15, 2007

Testing comments

Comment by Tom — April 19, 2007

tetser0123456789

Comment by test — May 1, 2007

dsqdqs

Comment by serge — May 7, 2007

Testing this comment :)

Comment by Jonathan — May 7, 2007

testing commenting system.

Comment by tom — May 8, 2007

testationé

Comment by testation — May 8, 2007

Can you recommend an ajax calendar?

Comment by thomas — May 10, 2007

woei!

Comment by Peter — May 11, 2007

comment test..

Comment by Comment_Test — May 15, 2007

ezrh

Comment by azerty — May 17, 2007

testing..

Comment by artul — May 20, 2007

Test McTestTest

Comment by al Berry — May 22, 2007

blablabla (only testing)

Comment by bla — May 25, 2007

trstrse

Comment by test — May 29, 2007

test

Comment by testing — June 7, 2007

just testing

Comment by lisa — June 16, 2007

Thanks

Comment by Urinal Puck — June 16, 2007

Testing AJAX Comments.

Comment by Chris — June 19, 2007

testing

Comment by Test — June 25, 2007

Great!! :Da

Comment by Ekus — June 28, 2007

Test!

Comment by asd — June 29, 2007

Test!

Comment by Test — June 29, 2007

bla

Comment by test — July 6, 2007

test

Comment by tcha — July 6, 2007

slkdjflkjsdfs

Comment by yah — July 6, 2007

test

Comment by Himliano — July 7, 2007

only a test

Comment by edonis — July 9, 2007

is this using ajax-magic to show comments?

Comment by santaclaus — July 9, 2007

Wow, good article

Comment by Bill — July 12, 2007

waaao

Comment by Albert — July 18, 2007

Cool.

Comment by Testing — July 20, 2007

just testing!

Comment by test — July 20, 2007

Ajax comments? just testing

Comment by Matthew — July 25, 2007

Test

Comment by rewr — July 26, 2007

sdf

Comment by sdfsdf — July 26, 2007

yo yo ma. just a test yo.

Comment by jonbon Jovi — July 27, 2007

testing this out… sorry

Comment by test — August 1, 2007

test

Comment by deanlee — August 10, 2007

rty

Comment by fgfgfg — August 10, 2007

Nice!

Comment by test — August 14, 2007

What?

Comment by eh — August 17, 2007

test

Comment by a — August 17, 2007

Testing

Comment by Ajaax — August 17, 2007

test ediyorum.onaylayacakmıyım*

Comment by est — August 18, 2007

testing also. sry

Comment by p — August 21, 2007

Hey awesome

Comment by Sweet — August 23, 2007

Nice work!

Comment by Jamie Carter — August 26, 2007

Excellent

Comment by dfgfd — September 5, 2007

This is Just a Test

Comment by MasterBip — September 5, 2007

asdfasdf

Comment by abasd — September 7, 2007

sgf

Comment by sdfg — September 8, 2007

testfhghfgh

Comment by test — September 14, 2007

trying out the system

Comment by james — September 19, 2007

test

Comment by En Soph — September 20, 2007

want to see this action

Comment by chris Jones — September 21, 2007

I like

Comment by YO — September 23, 2007

sdasdas as dsa

Comment by james — September 25, 2007

Hola buen artículo

Comment by Pepe — September 26, 2007

testing out the system

Comment by test — October 3, 2007

testingComment

Comment by CommentTest — October 3, 2007

Testing!

Comment by Carlo — October 6, 2007

Testing!

Comment by Testing! — October 6, 2007

nice!

Comment by comm — October 11, 2007

test

Comment by puffy — October 12, 2007

wow

Comment by panama canal — October 18, 2007

testing ajax

Comment by glenn — October 18, 2007

test

Comment by test-test — October 20, 2007

no spam please

Comment by test — October 20, 2007

just testing :

Comment by wld — October 21, 2007

Test

Comment by David — October 24, 2007

ajax text

Comment by Antônio — October 26, 2007

Love it!

Comment by ayei — October 30, 2007

asdasd

Comment by asdasd — October 30, 2007

hi good work

Comment by mamun — October 31, 2007

test

Comment by asdfg — November 6, 2007

really?

This is great!!

Comment by anonimous — November 11, 2007

Hey Great Plugin.

Comment by harsha — November 13, 2007

Wuttup!

Comment by Alberto De Moca — November 15, 2007

test test test

Comment by sss — November 19, 2007

testing

Comment by joe — November 24, 2007

testing

Comment by silver — November 27, 2007

cool

Comment by tester — November 27, 2007

Here is good tutorial for AJAX
Ajax Tutorial
go to Ajax link

Comment by Ajaxpert — November 27, 2007

great

Comment by tma — November 27, 2007

WARNING! Shameless plug:

I have also developed a plugin (last year actually, but a few weeks after this article was written) for smooth asynchronous WordPress blog post discussion. It was recently updated to work with the latest version of WordPress, as well as WordPress MU. Geeky documentation is also included for the WP Hacker in each of you, so I invite everyone to check it out and see how it works. License is GPLv2.

AJAX Comments WordPress Plugin
http://wordpress.smullindesign.com/plugins/ajax-comments

@Ieyasu: Thanks for sharing your experience and I’m glad you are enjoying the plugin. If there is anything I can do to improve the plugin, let me know.

Comment by mikesmullin — December 11, 2007

this is a test

Comment by mya — January 13, 2008

sdffsddfs

Comment by mya — January 13, 2008

test

Comment by pero — January 27, 2008

sdfasdf

Comment by pero — January 27, 2008

Excellent! I too was looking for a way to implement something like this without Squible or K2, and now I know! Also, I know this is off-topic but for those of you looking for a way to monetize your blog - try Chitika. I’ve tried a few others but Chitika still works the best for me. Check out this Chitika review for more info.

Comment by westernsun — February 5, 2008

this is sweet

Comment by dirtfarm — March 22, 2008

is this even ajax comments

Comment by harryc2k7 — April 19, 2008

Why isn’t this site or any of the 4 you have listed actually use the Ajax Comments? Was there a problem with it?
I’ve just installed it and seems to be working Good for now :)

Comment by harryc2k7 — April 19, 2008

Leave a comment

You must be logged in to post a comment.