Commenters must answer a question correctly before their comment will be accepted. This cuts down on spambots, and can also be helpful with troll-control.
This plugin adds a question/answer to your comment form. Authors can write a new Quiz question and answer for each post, fall back on a default question, or have no question at all.
Answers are checked by a caseless comparison. So spelling must be correct but uppercase letters do not matter. Short answers of one or two words are best and punctuation should be avoided.
Questions should be crafted to check that the commenter read the post. So a post about your dog might have the question “What is my dog’s name?” and a gallery post might ask “What brand of beer appears most often?”
You can enter multiple correct answers, separated by commas. For example, if you enter:
6, six, half dozen
Either “6” or “six” or “half dozen” will be accepted as correct.
Logged in users with the ability to publish posts (Authors, Editors and Administrators, normally), do not have to answer the question in order to post a comment.
When you write a post, enter the question and answer in the “Comment Quiz” meta box. If you leave it blank, the default question will be used. If you enter “noquiz” as the question, that post will not display a quiz.
To manually place the quiz form within you comments section, edit the comments.php file and insert the following: do_action(‘comment_quiz’)
There is a Settings screen if you want to customize things, including setting the default question or customizing the way the quiz displays on the page.
Tips on how to improve questions can be found at http://striderweb.com/nerdaphernalia/features/wp-comment-quiz/
(Please Note: the old “quicktag” method no longer works. If you want to use that method, you should download version 1.0. In 1.1 and above you enter the question in the meta box.)
Upload the ‘quiz’ folder to the ‘/wp-content/plugins/’ directory and activate it in Admin. If upgrading from 1.0, be sure to deactivate/upgrade/reactivate, or defaults won’t be set.
- Why does the question still appear if I am an Author, Editor, or Administrator?
To let you see the question as it appears to other visitors, and to not unnecessarily interfere with caching systems.
Contributors & Developers
“Quiz” is open source software. The following people have contributed to this plugin.Contributors
* by SR 2015-04-13 * Restored 'comment_form' to comment_form hook for compatibility with older themes. (the_quiz will still only run once.) * Removed call to deprecated function screen_icon() * Code cleanup -- removed some unused functions
1.3 beta 1
* By MJ 2012-09-11 * Code improvements including dumping some old PHP 4 stuff * remove "Cleanup" functions option. Replaced with comment_quiz_compare filter. * Kill the footer links * Added code for AJAX callback * Updated textdomain calls * HTML5 style script tags * Bump the supported WP versions
* by MJ 2010-02-03 * BUGFIX -- custom questions didn't display * XSS vulnerabilities patched * Upped WP requirement to 2.8 * Process options saving in a pre-output hook and redirect to &updated=1 to use WP's built-in "Settings saved" notice * Code cleanup * Store options in the database in a normal unslashed format (previously, it was stored slashed) * Skip question analysis for registered users with the ability to publish posts
* by SR 2008-11-28 * BUGFIX -- was blocking pingbacks and trackbacks * Plugin no longer loads comment process hooks if we're in the Admin section. Was causing problems with WP 2.7 inline replies * Updated Admin screen button CSS * Changed the default question -- some spambots can do math
* beta 1 by SR 2008-08-25 * BUGFIX -- rejected all comments if set to "noquiz" (No place to answer the question, but the (non)answer was tested anyway!) * BUGFIX -- if "noquiz" was entered as Answer on edit screen, it didn't save. Now works for both Question and Answer
* by SR 2008-08-12 * Allows for multiple possible answers (separate with commas) * Nonces on meta box * Fix for change to output of get_plugin_data() in WP 2.7 (grrrr...)
1.1 beta 6
* by SR * Improved set_defaults -- now unset and merge, tracks version * Improved get_plugin_data -- more efficient * Uses constructor instead of init()
1.1 beta 5
* by AS * 1.0 is spaghetti code! * Shortcodes are removed from post_content and saved into postmeta so that disabling the plugin won't cause all the answers to appear on the blog. * Editors that do not use the standard API will not work properly with this because we need certain filters to be used.