The Voight Kampff test is a fictional test from the book “Do Androids Dream of Electric Sheep”, popularized by the movie Blade Runner which relied on a series of questions to determine if a person was really a person, or a replicant, an organic robot that appeared and acted human. The Voight Kampff Comment Test (VKCT) plugin allows you to add additional fields to the comment forms throughout your site to check if your users are human (not spam bots), and even if they’re going to leave a relvent comment. These fields can be text fields or dropdowns, and can be:
This combination of fields allows you to do three things:
A default VKCT question can be added to every comment form on your site, or you can use the shortcode [vkct]
on a per post basis to either override the default question, or apply the VKCT fields where needed. The [vkct]
shortcode can be called multiple times, allowing you to create as many additional fields as you want.
The shortcode defaults are both the settings for the default question which will appear on your site and the default settings if you use the [vkct]
shortcode without any options.
Note – Answers given are done by near match. Common punctuation is stripped and the answer is converted to all lowercase. So, if the answer you are expecting is “Philip K. Dick”, then “philipkdick” or “Philip K Dick” would be accepted, but “Phillip K Dick” would be rejected.
These settings affect all of the VKCT fields.
[vkct]
shortcode.<span>
, <small>
, <b>
, and <i>
as HTML markup. Defaults to *.<p>
, <span>
, <small>
, <b>
, and <i>
as HTML markup.`[vkct
question = 'any string'
required = 'true' or 'false'
display = 'above' 'below' or 'none'
answer = 'any string' or 'Option1#!Option2#!Option3' or '#!Option1#!Option2#!Option3' ]`
For the answer option, any string (e.g. ‘Answer’) will generate a text field input. A list of options separated with a hashbang (#!) will generate a dropdown menu, with Option 1 selected as the default. If you start the list with a hashbang, the first choice will be an empty field, which, if the field is required, will require the user to select an option before posting a comment.
You wrote a post on PHP frameworks, and want any one who is going to leave a comment to indicate what their favorite framework is. Adding [vkct question="What is your favorite framework?" required = "true" answer = "#!Cake PHP#!Yii#!Zend"]
will add a dropdown menu to the comment section from which the user will have to chose from Cake PHP, Yii, or Zend, and if they do not choose an answer, their comment will be rejected.