Comment Validation Reloaded

Avoid those pesky blank page with an error message like “please fill out required fields” then loosing your/users comment info. This plugin aims to help by adding validation to the comment form. When a user submits the form and something is missing, an appropiate message is displayed and individual fields are highlighted. When the email or url is in an incorrect format, a message is displayed accordingly. Requires the user to have javascript activated.

Why should you install it? Because you care for comments and want to help users reduce mistakes that hold them off from commenting at all.

Whats the technology used? jQuery and the jQuery Validation plugin with a few customizations to make it fit into any WordPress theme.

Download

Latest version: Download Comment Validation Reloaded v.0.3.9 (3073) [zip]

FAQ

Why create this plugin?

Because there is a newer validation script out there, but no updated plugins.

I think i want to uninstall but…

Just delete the plugin.

Changelog

Version 0.3.9 (12/25/11)
  • Fixed script causing server error on singluar pages.
Version 0.3.8.1 (12/19/11)
  • Fixed broken translation output file.
Version 0.3.8 (11/17/11)
  • Spelled fields wrong in the filter.
  • Updated localization to not output when in english.
Version 0.3.7 (11/15/11)
  • Added filter for required fields text cvr_required_fields_text.
  • Removed uninstall.php
Version 0.3.6 (11/14/11)
  • Updated validation script to 1.9.
  • Moved inline jQuery into redirect script.
    -fixed so script loads after validation function.
Version 0.3.5 (11/8/11)
  • Feeds updated.
  • WordPress 3.3 check.
Version 0.3.4 (9/8/11)
  • Dashboard fix.
Version 0.3.3 (6/23/11)
  • [BUG FIX] An error in the dashboard widget is casuing some large images. Sorry. Always escape.
Version 0.3.2 (6/7/11)
  • Bug fix for WordPress installs that have WPLANG defined.
Version 0.3.1 (6/1/11)
  • Set up whole plugin for translation.
  • New version of validation script version.
  • Added translatable jQuery script, please visit settings to change!
  • Fixed error when setting validator to external didn’t validate.
  • Getting ready for plugin overhaul.
Version 0.3 (4/5/11)
  • Updated multiple error when running WP_DEBUG.
  • Updated has_cap from 10 to role moderate_comments.
  • Updated constants.
  • Fixed dashboard cache error.
  • Removed outdated javascript that might cause hangups.
Version 0.2.9 (3/30/11)
  • Dashboard widget updated.
Version 0.2.8 (2/24/11)
  • Removed javscript link causing hang-ups.
Version 0.2.7 (2/9/11)
  • Updated the feed parser to comply with deprecated rss.php and use class-simplepie.php
Version 0.2.6
  • Updated version numbers.
  • New version for external hosted script.
Version 0.2.5.1
  • Minor update for anchor class.
Version 0.2.5
  • Fixed XHTML in author link love.
Version 0.2.4
  • Fixed error where external code wasn’t working
  • Use of external file will not validate correctly & work ;)
Version 0.2.3
  • Added check for singular post with comments open to enqueue scripts and style
  • Check for valication version
  • Allow for internal or external validation script
    • Use internal if having issues (external is a php file with header JS
    • Having issues with external javascript (trying to execute with PHP)…
Version 0.2.2
  • Setting page version update
  • Default version update
Version 0.2.1
  • Removed CDN(hosted) library in favor of version 1.7, which isn’t hosted yet.
  • Bug fix
Version 0.2
  • Using CDN(hosted) library version 1.6
  • Added options to admin
Version 0.1
  • Initial release.

45 Responses

  1. Comment validation with jQuery
    Comment validation with jQuery April 21, 2010 at 4:42 pm |

    [...] WordPress Austin Passy Forgetting more than you know. HomeAboutWordPress Plugins@anywhereComment Validation ReloadedCustom LoginEventbrite [...]

  2. Karl Foxley
    Karl Foxley August 17, 2010 at 3:12 pm |

    I just wanted to drop you a note and show my appreciation for the plugin, it works like a charm.

    Thank you,

    Karl

    Reply
  3. Arjun Parsi
    Arjun Parsi October 4, 2010 at 4:59 am |

    The plugin is not working for me. I am using wordpress Version 3.0.1

    Reply
  4. Matt
    Matt October 7, 2010 at 7:06 am |

    Hi Frosty,

    Your plugin did the trick, great.

    Just 1 question, I tried to modify the error messages, I assume it’s the file “validate.js”. See messages below:

    required: “This field is required.”,
    remote: “Please fix this field.”,
    email: “Please enter a valid email address.”,
    url: “Please enter a valid URL.”,
    …..

    But everytime I try to modify, it sticks 2 the old error messages. Or am I looking at the wrong area of your code?

    Reply
  5. deleted
    deleted January 23, 2011 at 5:15 pm |

    Hey man,
    Your plugin don’t expect that it could be translated because you use another javascript and it is dependent from it :( . Better for you to add customization for messages. Hope this will help.

    Reply
  6. Wordpress bug with comments – wp-comments-post.php | KL3CK Web Design Glasgow

    [...] http://austinpassy.com/wordpress-plugins/comment-validation-reloaded This entry was posted in Bug, WordPress. Bookmark the permalink. ← Magento Bug – [...]

  7. jeffery
    jeffery March 9, 2011 at 3:04 pm |

    I’m using WP 3.1 and am not able to uninstall. Please advise.

    Reply
  8. wannesv
    wannesv March 12, 2011 at 7:59 am |

    I seem to be doing something wrong, because after I installed and activated your plugin, WordPress just give me that annoying standard error page ( which for some reason always says i need to fill in Name allthough I filled it in ^^ )
    What could I be doing wrong ?

    Reply
  9. Elena
    Elena March 26, 2011 at 1:18 pm |

    Hi
    Same here, I add form ID/Class: comment-form but plugin don’t work.
    My comments.php code:


    post_password)) : ?>
    post_password) : ?>

    ‘ul’, ‘max_depth’ => 2, ‘avatar_size’ => 48 ) ); ?>

    Do I do something wrong?
    Or is a plugin issue?
    Thank you
    Elena

    Reply
  10. lisa
    lisa March 27, 2011 at 2:04 am |

    I cannot get this plugin to work. Is there anything I need to add to my single.php or comments.php file?

    Reply
  11. Elena
    Elena March 29, 2011 at 12:34 pm |

    Hi frosty
    I paste my code from comments.php:

    	
    	post_password)) : ?>
    	    post_password) : ?>
    
    	 'ul', 'max_depth' => 2, 'avatar_size' => 48 ) ); ?>
    

    I tryed, “comments” and “comment-form” but it don’ t work.
    I use WordPress 3.1 is maybe the reason?
    Elena

    Reply
  12. Elena
    Elena March 30, 2011 at 3:18 am |

    Hi frosty
    These is my comments.php code:
    http://pastebin.com/mAmUrQ1D
    I try the ID=comment-form and ID=comments wihtout success.
    Could be the newer WordPress 3.1 the reason for the problem?
    Do your plugin works with WordPress 3.1?
    Here on WordPress Plugin Site only 1 user says that works with WordPress 3.1.
    http://wordpress.org/extend/plugins/comment-validation-reloaded/
    Could be the problem because the theme I use have already a jquery validation integrated?
    Thank you for your effort in advance.
    Elena

    Reply
  13. oliver
    oliver March 31, 2011 at 12:31 am |

    hello i’ve updated the last version with my WP3.1 site and I get the following message in the frosty network dashboard widget :
    Warning: ….. /httpdocs/wp-content/plugins/comment-validation-reloaded/library/admin/cache/8a42b9825936779b780471a79361676a.spc is not writeable in /home/httpd/vhosts/bmxracepassion.ch/httpdocs/wp-includes/class-simplepie.php on line 1780

    I’ve search into my server and I did not find the /cache/8a42… file
    Is this message impact the plugin or is it just causing problems to the dashboard widget ?

    thanks for your advice.

    Reply
  14. Elena
    Elena April 3, 2011 at 6:38 am |
    Reply
  15. Elena
    Elena April 15, 2011 at 12:53 pm |

    Hi frosty

    Sorry for my late respoond, thank you very much for your motivation. But it doesn’t work. I think it is a theme issue.
    Best regards and have a nice weekend
    Elena

    Reply
  16. Sven
    Sven June 4, 2011 at 2:09 am |

    Thanks for a useful plugin Frosty.

    I am having a small problem. My WordPress site is in Norwegian, and after updating to the latest version I get this message on top of my admin panel:

    “Please set your Language on the settings page for the script to translate proper.”

    In Avtivate Comment Validation Reloaded i have tried to enter NO (Norwegian) and saved, but message did not go away. Not even saving GB as language did remove the message.

    So where does Comment Validation want med to set the language?

    Reply
  17. BandonRandon
    BandonRandon November 15, 2011 at 12:25 am |

    Hi,

    Is there an easier way to change the error messages and remove the error container than editing `comment-validation-reloaded.php` I can make it work this way but it means I have to redit the file with each upgrade.

    What I’m looking for is a hook/filter or translate file to do the trick.

    Thanks!

    Reply
  18. Simon
    Simon December 6, 2011 at 1:18 am |

    Hi Austin,

    I’m running WP 3.2 and your plugin seems to be tested even with 3.3 but when I install and activate it, it just doesn’t load anything. I already tested Jörns comment validation plugin before and there it always just loaded the css but no js. I also tried changing the version of validation js (1.7, 1.8, 1.9) but that helps nothing.

    I really need that plugin to work.

    Cheers Simon

    Reply
    1. Simon
      Simon December 6, 2011 at 1:49 am |

      To specify: I checked loading of the files via firebug net tab, but nothing at all…

      Reply
  19. Patrik
    Patrik December 22, 2011 at 1:46 am |

    Thanks for a great plugin.

    I only had one request. Make it possible to add your own rules.
    For example if I want to block certain words.

    The problem I have:
    Since IE doesn’t support placeholders the placeholder is set as a value and the user can now post a comment where the username is “Name” and comment is “Your comment”.
    And I want to make so that these words are not accepted as name/comment and the user will get the default “fill in all fields” error.

    Reply
    1. Patrik
      Patrik December 22, 2011 at 2:53 am |

      Here is my quick and ugly little solution. :)

      	jQuery.validator.addMethod('denyWords', function(value, element) {
      		if(value == '".getLang('Your comment')."' || value == '".getLang('Name')."' || value == '".getLang('E-mail')."') {
      			return this.optional(element);
      		} else {
      			return true;
      		}
      	}, 'Please fill out the required fields');
      

      (getLang is just a custom translator)

      Reply
  20. Zohar
    Zohar January 15, 2012 at 5:51 am |

    It would be great if we can add specific class (or div class) to the validation messages (e.g. other than ‘.error’). At the moment they share the same class with the input fields.

    Reply
  21. logiciel gratuit tweet adder
    logiciel gratuit tweet adder January 22, 2012 at 12:51 pm |

    Thanks for a useful plugin Frosty.

    I am having a small problem. My WordPress site is in french, and after updating to the latest version I get this message on top of my admin panel:

    “Please set your Language on the settings page for the script to translate proper.”

    david french

    Reply

Leave a Reply

Comment validation by @