ComPreVal
Comment Preview and Validation plugin for WordPress
This plugin has three components:
- Comment Preview plugin
- Safe HTML plugin
- Comments template
Place both the plugin files (compreval.php
and safehtml.php
)
in the wp-content/plugins
folder and then activate them in the admin panel.
Then place the comments.php
template file in your theme folder. If you are
using the 1.5 default this is wp-content/themes/default
. If you use another
theme, you can edit its comment template file and replace the comment form there with
the plugin's php function:
<?php bnCommentPreviewValidate(); ?>
This will force the comment to be previewed before it is submitted. During the preview stage the comment will be checked for valid XHTML. Errors need to be corrected before the comment can be submitted.
To keep the whole page valid it is recommended to moderate pingbacks and trackbacks.
The SafeHTML code was written by Simon Willison and formed into a WordPress plugin by Mark Wubben. The Comment Preview plugin was written by Mark Wubben and edited and updated by Ben de Groot.
This plugin is released "as is", without warranty of any kind, and is licensed under the GPL, see the included license.txt file.