July 7, 2006
4:44 pm

Mike Smullin’s — AJAX Comments 2.0 — is probably one of the best ways you could spice up your WordPress Blog with AJAX.

Demo: Click “Add comment” on this Post and after writting “Hit Submit” Button. You will see an AJAX throbber and the comment will be submitted without refreshing or leaving the page.

Features:

  • comment form validation happens server-side without refreshing or leaving the page
  • Script.aculo.us Fade In/Out Effects make readers happy
  • works with AuthImage captcha word verification plug-in to prevent comment spam
  • still works traditionally if browsers don’t support JavaScript (or have it disabled)
  • uses existing theme code to match styled comment threads when producing new comments
  • 25-second server timeout ensures readers aren’t left hanging
  • works in current versions of Firefox, Internet Explorer, Opera, Netscape, and Safari.

Recommendations: (Works well, if you don’t have any of the under mentioned)

  • perfectly compliments any well-styled comment form—don’t design without it
  • best when moderation is off (seems more real-time) and AuthImage is installed (self-moderation is the best moderation)


How to implement:

  1. Download ajax-comments v2.07
  2. Unzip/upload to /plugins directory.
  3. Activate via WordPress Plugins tab.


AuthImage Integration:

(optional)

  • Open ajax-comments.php and uncomment lines: 92, 152, 153.
  • Open comments.php from your /themes directory and use the following code (mostly just the ids) for AuthImage to appear in your comments form:

<?php if ( !$user_ID ) : ?>
<img id="auth-image" src="<?=get_option('siteurl')? />/wp-content/plugins/authimage/authimage-inc/image.veriword.php" alt="Verification Image" />
<p><label for="code">Word Verification (<a href="#" onclick="document.getElementById('auth-image').src+='?'+Math.random();return false" title="Generate another Captcha Word Verification image.">can't read it? try another!</a>)</label></p>
<p>Please type the letters you see in the picture.</p>
<p><input name="code" id="code" type="text" /></p>
<?php endif; ?>

MikeSmullin

WordPress Plugin: AJAX Comments 2.0

Loading

Contextual Related Posts:

15 Responses | RSS comments on this post | Leave a comment»

Pages: [2] 1 »

  1. 1
    Matheus says#15 | July 2nd, 2009 at 11:26 am

    Nice plugin, I'll test it right now!

  2. 2
    ZK@Web Marketing Blog says#14 | June 12th, 2009 at 12:16 am

    But now my bandwidth has been exceeded so this is why the page is currently down. I’m sorry about this. I’m talking to my hosting company now to try and resolve it. It seems I completely underestimated the interest the page would generate.

  3. 3
    testing says#13 | May 11th, 2009 at 2:17 am

    thanks. Great work!

  4. 4
    sergiugothic says#12 | August 30th, 2008 at 10:41 pm

    great script...

  5. 5
    Raven says#11 | July 15th, 2006 at 5:09 am

    Nice work.

  6. 6
    Raven says#10 | July 15th, 2006 at 5:08 am

    Nice work!

  7. 7
    pato says#9 | July 15th, 2006 at 2:03 am

    thanks is working great

  8. 8
    David says#8 | July 13th, 2006 at 3:55 am

    Does it work as nicely as I'm thinking it will.

  9. 9
    kus says#7 | July 12th, 2006 at 10:41 pm

    test aja xcomments

  10. 10
    DG says#6 | July 11th, 2006 at 8:11 pm

    Final Testing for all.
    :wink_wp:

No Pingback yet

PingBack URI

Pages: [2] 1 »

Leave a Response

Comment Preview
« WordPress Plugin: AJAX CalendarWordPress Plugin: Inline AJAX Comments »
Feed Icon

Subscribe via RSS or email: