Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Ajax Force Comment Preview

Visitors to your site are forced to preview their comment prior to submitting it.

How do I change the look of the preview?

Go to the Options -> Ajax Force Comment Preview admin panel. From there you'll be able to specify the markup used to display the comment being previewed. The markup you enter will depend on what theme your site is using. If you're using Kubrick (the default theme for WordPress), the settings that come installed with the plugin will work fine. For other themes, I suggest the following.

  1. Go to the permalink page for a post on your site that has a few comments.
  2. In your web browser, view the Page Source of that page. You can usually do this by finding that option in your browsers Edit or View menu or in the menu that pops up when you right click on the page.
  3. Find the section of code that corresponds to one of the comments. Copy it into your clipboard.
  4. Paste that code into the big text box in the Options -> Ajax Force Comment Preview admin panel.
  5. Replace the text specific to that comment (author name, time, comment text, ...) with the plugin's special tags (%author%, %date%, %content%, ...).
  6. Most themes' code has all the comments inside one big <ol>, <ul>, or <div> tag. You'll probably need to put your preview markup inside that "parent" tag too. Make sure it has the same class(es) as the tag in your theme's code.

Does this plugin conflict with other comment plugins?

In most cases, this plugin will not conflict with other comment plugins. The only plugins that will conflict are plugins that submit comments without going through AJAX Force Comment Preview's verification. To get around this issue you will have to modify the thrid party plugin by adding the following lines before its call to "wp_new_comment( $commentdata );".

// Ajax Forced Comment Preview Compatibility Code - START $_POST['afcp-nonce'] = Ajax_Force_Comment_Preview::send(true); // Ajax Forced Comment Preview Compatibility Code - END

// Third party's plugin call to create a new comment wp_new_comment( $commentdata );

Keep in mind that by doing this you are bypassing previewing the comment if comments are submitted through the third party plugin.

Requires: 2.5 or higher
Compatible up to: 2.6.2
Last Updated: 8 years ago
Active Installs: 40+


0 out of 5 stars


Got something to say? Need help?


Not enough data

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