Introducing AJAX CommentLuv
1,391 views

I have finally implemented AJAX into my CommentLuv plugin, it should dramatically increase the speed at which the comment gets posted after a user clicks “submit” by monitoring the comment form entry box, as soon as it gets some action then a javascript routine gets called to find the feed, scrape the last post from it and display it below the comment form.
Because the fetch_rss has a cache which it checks before it tries to open the remote feed, the last blog post will still be stored in the cache from the AJAX request so it wont need to do much at all to add the last blog post to the comment. sweet!
It’s installed and running ok here in it’s rough state so I can see how it performs while I neaten up the code so it can do all the includes and stuff automatically as well as detect another url change if the user changes their blog url after starting to comment.
At the moment it uses a bit of jquery and a bit of the AJAX goodness that you can see on the Beginners AJAX Tutorials posts, when I’ve figured out how to do it all with jquery and have it working nicely then I’ll release the new updated plugin.
It seems that a quiet Christmas morning is all that’s required to get an AJAX problem solved!
I’ll get used to jQuery and get some tutorials out there after the part 5 and 6 are done with the current series. Happy Holidays everyone!
You can always find the current version of CommentLuv here
(no AJAX in the current version yet…)
Popularity: 7% [?]
Tags: ajax, code, commentluv, jQuery, plugin
Print This Post




December 25th, 2007 at 5:18 pm
I think it’s a good idea to always post a link to where we can get CL plugin, in every new post that deals with it, de près ou de loin.
I’ve had some issues with my blog, *again*, and the tech support of my hosting company says it must be one of the plugins I use. Surprisingly, I am not using anything extra-uncommon, only the usuals.
I should get the new version of CL now and test it.
December 25th, 2007 at 5:31 pm
it’s a pain in the arse when hosting doesn’t go right, I can see your default feed location doesn’t show your feed for me
I hope you get it sorted out so you can spread the lurv!
December 25th, 2007 at 5:57 pm
Ooohh that is nice so I guess we need to update our commentluv plugins? Anyway, Merry Christmas to you and to your family!!!
chase’s last blog post..A Merry Christmas And A Happy New Year To Everyone!!!!!!
December 25th, 2007 at 6:42 pm
I’ve just update my commentluv plugin. First, I don’t see the point of that checkbox. And when I write something in the text area, it doesn’t appear like in your blog, the last post, above the Notify me …
Diana13’s last blog post..Merry Christmas!
December 25th, 2007 at 9:06 pm
December 25th, 2007 at 9:25 pm
I can’t get may hands on what’s wrong with my feed. The pink box of your CL post detected my last post very quickly.
Maybe I’ll try burning a new feed adding a letter at its end or something! What do I know!
Lalla Mira’s last blog post..Young Bride
December 25th, 2007 at 10:32 pm
My feed worked for my last comment, I didn’t notice that.
I changed the last bit of it, I hope that doesn’t affect anything [the number of subscribers for instance].
Lalla Mira’s last blog post..Young Bride
December 26th, 2007 at 12:40 am
December 26th, 2007 at 1:41 am
DUDE!!!
Sweet, you got the AJAX change working so far? Great, I can’t wait! In fact, my traffic is quite low with my current blog, so let me know if you need a “beta tester” for this new change.
(fyi - software quality is my profession for the last 17 years)
Drop me a note if I can help …
–Steve
Snowlark’s last blog post..Staff IT Right Advisory Council
December 26th, 2007 at 2:35 am
thanks for offer!
December 28th, 2007 at 8:38 pm
I am ready for the new release! I have been having issues posting comments on blog that use comment luv and if the AJAX speeds the process up that will help! I am ready to get the update!
Talina’s last blog post..T-mobile HotSpot @ home information.
December 28th, 2007 at 8:47 pm
I need to experience the christmas lazy period first though and I’ll get right on with the plugin update!
December 29th, 2007 at 8:51 pm
Andy, ensure you get some max-lazy-time as it helps one keep sharp. I’m glad we’ve got this working on my WP blog, so, happy day for me!
Any improvements you make are welcome. Take time - it’s never coming back once it’s gone.
(Harry Chapin, “Cats in the Cradle”, comes to mind)
Snowlark’s last blog post..Did You Actually READ My Resume?
December 30th, 2007 at 5:35 pm
Great Improvement!
December 31st, 2007 at 6:21 pm
Nice!
kojika’s last blog post..BãBBø.NåTåLę.ĕ.mørTø
January 1st, 2008 at 6:01 am
[...] the blog of Andy Bailey - has Ajaxified CommentLuv, this plugin is appearing in more and more places, so congratulations to [...]
January 2nd, 2008 at 7:43 pm
Jeff: I think so too!
Kojika: thanks
January 4th, 2008 at 12:49 pm
Great!
My posts have been acting weird when I comment on someone elses website it brings up posts that I’ve written weeks ago.
Opal Tribble/Vegan Momma’s last blog post..Fun Art For Daughter, Nightmare For Mommy
January 4th, 2008 at 12:55 pm
If I view the source of your feed page I can see all the guts are there but not when it’s viewed in a browser.. how strange!
January 6th, 2008 at 10:34 pm
Andy,
Great Plugin. I see it around other blogs and I love it. Problem is….It’s not working on my blog. I got nothing…There isn’t even a check box for people to enable CommentLuv.
I know my host allows curl…I’m at a loss.
BadEvan’s last blog post..Banned By EntreCard
January 7th, 2008 at 11:02 am
other than that, I am at a loss too
January 8th, 2008 at 1:09 am
Can I send you a copy of my comments.php file?
I kinda know my way around php….But I’m not sure what you are referring to.
Maybe if we put our heads together we can fix this for me and the few others….
BadEvan’s last blog post..Banned By EntreCard
January 8th, 2008 at 11:28 am
send by attachment to andy at teamplaylotto.com
February 12th, 2008 at 5:28 pm
I love the idea of commentluv and found this site through another blog
keep up the good work
FM
frank morgan’s last blog post..Night Owl – re-edit 7.1.4
February 12th, 2008 at 10:56 pm
February 14th, 2008 at 7:56 am
Is there any comment love plugins for bloger? thanks
Shannon’s last blog post..Pinoy Money Talk
February 14th, 2008 at 9:21 am
February 23rd, 2008 at 7:28 am
The only thing I’ve found with Commentluv is that the Feedburner redirects tend to mess up the “link love.”
Aside from that I think the plugin is a fantastic way to encourage more comments & more interaction on your blog
Stu’s last blog post..Profit Lance Review
February 23rd, 2008 at 7:24 pm
thanks for your kind comments!
March 2nd, 2008 at 3:25 am
Activating the plugin didn’t add anything to my comments. I think it’s my theme, I always have to add things to the comment php manually. Is there a line I can add manually to get commentluv working ?
Hani Obaid’s last blog post..Custom Anti-Spam Words On Wordpress
April 30th, 2008 at 10:09 pm
My theme doesn’t work with this plugin. Argh.
Urban Kevins last blog post..Destroy NYC Shirt - Destroy Racism Tee Brings Fire To The Label While Helping Bring Unity
May 1st, 2008 at 11:57 am
<?php do_action(’comment_form’, $post->ID); ?>
June 9th, 2008 at 11:41 pm
where can i download your commentluv ajax version, also is this compatible with the new version 2.5.1? thanks
Eligios last blog post..Busby SEO Challenge Clarification and Update!
July 1st, 2008 at 7:44 am
Where can we download your commentluv ajax? Awesome Plugin!
Busbys last blog post..Use your time wisely in Busby SEO Challenge