Introducing AJAX CommentLuv

December
25

CommentLuv with AJAX


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…)

ajax, Blog News, Blog Tools


0 Comments zu “Introducing AJAX CommentLuv”

  1. Lalla Mira
    25.12.07 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.

    #1

  2. Andy Bailey
    25.12.07 5:31 pm

    good idea! I put the link in at the bottom.
    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! :-)

    #2

  3. chase
    25.12.07 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!!!!!!

    #3

  4. Diana13
    25.12.07 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!

    #4

  5. andy bailey
    25.12.07 9:06 pm

    The Ajax bit won’t be in the latest version yet. I need to test it out on here for a while first. Looks like it won’t be until the new year now

    #5

  6. Lalla Mira
    25.12.07 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

    #6

  7. Lalla Mira
    25.12.07 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

    #7

  8. Andy Bailey
    26.12.07 12:40 am

    hopefully it’s all sorted now, as long as you have the feedsmith plugin going on your site then you shouldn’t notice any difference in subscribers (I think!)

    #8

  9. Snowlark
    26.12.07 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

    #9

  10. Andy Bailey
    26.12.07 2:35 am

    thanks Steve, I still have to make some improvements but I’m happy that it catches the feed, I definitely need to add some error catching in there for parsing the url before I process it. ATM I have it all in separate scripts so I will integrate it into the plugin. I may have to use a directory for commentluv from the next version to allow for includes…

    thanks for offer!

    #10

  11. Talina
    28.12.07 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.

    #11

  12. Andy Bailey
    28.12.07 8:47 pm

    Talina: it’ll take me a little time to get the ajax thing integrated with the plugin so it works nicely first time. I should be able to make it backwards compatible for WP 2.1 and less.

    I need to experience the christmas lazy period first though and I’ll get right on with the plugin update! :-)

    #12

  13. Snowlark
    29.12.07 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?

    #13

  14. Jeff
    30.12.07 5:35 pm

    Great Improvement!

    #14

  15. kojika
    31.12.07 6:21 pm

    Nice!

    kojika’s last blog post..BãBBø.NåTåLę.ĕ.mørTø

    #15

  16. Top Respect To The Top Commenters & Sponsors - December
    01.01.08 6:01 am

    [...] the blog of Andy Bailey – has Ajaxified CommentLuv, this plugin is appearing in more and more places, so congratulations to [...]

    #16

  17. Andy Bailey
    02.01.08 7:43 pm

    snowlark: I had a wicked 3 days of doing f-all, it was brill!

    Jeff: I think so too!

    Kojika: thanks

    #17

  18. Opal Tribble/Vegan Momma
    04.01.08 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

    #18

  19. Andy Bailey
    04.01.08 12:55 pm

    I tried going to http://veganmomma.com/blog/feed and it showed a blank page so CL must be using the cache to resolve your last post (the last time you posted a comment here showed the same last blog post)

    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!

    #19

  20. BadEvan
    06.01.08 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

    #20

  21. Andy Bailey
    07.01.08 11:02 am

    The only time that has happened for me is when it was on a custom template. the plugin uses the filter ‘comment_form’ to tell it to add the text, if your template doesn’t do that call then it wont show the text (I think!)
    other than that, I am at a loss too :-(

    #21

  22. BadEvan
    08.01.08 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

    #22

  23. Andy Bailey
    08.01.08 11:28 am

    BadEvan » by all means send it to me and I’ll have a look
    send by attachment to andy at teamplaylotto.com

    #23

  24. frank morgan
    12.02.08 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

    #24

  25. Andy Bailey
    12.02.08 10:56 pm

    thanks Frank!

    #25

  26. Shannon
    14.02.08 7:56 am

    Is there any comment love plugins for bloger? thanks

    Shannon’s last blog post..Pinoy Money Talk

    #26

  27. Andy Bailey
    14.02.08 9:21 am

    blogger doesn’t have the ability to do php sorry, no plugin for blogspot

    #27

  28. Stu
    23.02.08 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

    #28

  29. Andy Bailey
    23.02.08 7:24 pm

    Please check this post for how to change feedburner redirects so it points directly to your post giving you the maximum link luv

    thanks for your kind comments!

    #29

  30. Hani Obaid
    02.03.08 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

    #30

  31. Urban Kevin
    30.04.08 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

    #31

  32. Andy Bailey
    01.05.08 11:57 am

    Hani, Urban Kevin: you may have to edit your theme comment.php file and add this line to just before the </form> tag

    <?php do_action(‘comment_form’, $post->ID); ?>

    #32

  33. Eligio
    09.06.08 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!

    #33

  34. Busby
    01.07.08 7:44 am

    Where can we download your commentluv ajax? Awesome Plugin!

    Busbys last blog post..Use your time wisely in Busby SEO Challenge

    #34

  35. SEO Challenge
    17.07.08 2:39 am

    Wow great plugin…will install on my blog…

    #35

  36. Mike
    08.03.09 3:21 pm

    I like commentluv and have it installed on my site. I also try to do some ‘sponsorluv’ at sites that have it enabled and give them a little clicky luv as thanks.

    Mike´s last blog post..Acquiring an Internet Business Vs. Buying a Traditional Business

    #36

  37. Alex
    15.03.09 12:01 am

    An excellent site! Thank you!

    #37

  38. wordpress
    29.04.09 10:04 am

    Comment Luv is one of the best plugin,should be installed by default ;)

    wordpress´s last blog post..La fete aux backlinks

    #38

  39. Ami
    04.05.09 1:14 am

    hi there! hoping you can help me with styling the output. i want to leave it blank so that it is styled just like the rest of the comment text (looks similar to the way you have it). i also want to turn off the underlining and question mark on hover. can you help? thanks!

    #39

  40. pradanang
    04.06.09 12:26 pm

    it not working in my theme. when i activated CL, my sliding picture in themes not working, i guess it because something with ajax used by themes or by CL itself. Any clue? oh yeah i’m using ProMag magazine theme

    great plugin btw..
    thx in advance

    #40

  41. Spinal Stenosis Guru
    08.06.09 2:16 pm

    I have no idea but it looks like it opens the door for spammers. You can generate a search operator in google to find the blogs with “Enable CommentLuv” keyword in the query.

    #41