Plugin Directory

WDP AJAX Comments

This plugin will enable AJAX comment posting on your WordPress blog.

How do i enable client side JavaScript validation?

Since this plugin uses jQuery Validation plugin, you need to add some CSS classes to your comment form in your WordPress Theme. Open comments.php file of your theme file and find out the comment form in it. Now add following CSS classes to various input boxes:

  1. To the Author textbox, add attribute class="required" e.g. if your Author textbox looks like " size="35" tabindex="1" /> then make it " class="required" size="35" tabindex="1" /> or if you already have some class associated, like class="foo" in it, then make it class="foo required"
  2. Similarly, To the Email textbox, add attribute class="email required"
  3. To the URL textbox, add attribute class="url"
  4. To the comment textarea, add class="required"
  5. If you need to change styles for error messages, refer to Q 2 below.
  6. That's it, you are done adding JS validation to your comment form.

How do i change CSS styles of the notifications?

To change styles, you need to create a file named wdp-ajax-styles.css within your theme directory and define styled for .wdpajax-error, .wdpajax-success, label.error classes.

.wdpajax-error is used to display message when there is some problem submitting the comment .wdpajax-success is used to display success message on successfull comment posting label.error is used for error message that pop up as a result of invalid form data

For more details, visit plugin page

Requires: 2.0 or higher
Compatible up to: 2.8.4
Last Updated: 2009-8-17
Downloads: 4,814

Average Rating

4 stars
(11 ratings)

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,2,2
100,1,1
75,4,3
67,3,2
0,1,0