Title: Voight Kampff Comment Test
Author: jjmartucci
Published: <strong>2013 年 3 月 22 日</strong>
Last modified: 2013 年 3 月 24 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/voight-kampff-comment-test.svg)

# Voight Kampff Comment Test

 作者：[jjmartucci](https://profiles.wordpress.org/jjmartucci/)

[下载](https://downloads.wordpress.org/plugin/voight-kampff-comment-test.zip)

 * [详情](https://cn.wordpress.org/plugins/voight-kampff-comment-test/#description)
 * [评价](https://cn.wordpress.org/plugins/voight-kampff-comment-test/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/voight-kampff-comment-test/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/voight-kampff-comment-test/#developers)

 [支持](https://wordpress.org/support/plugin/voight-kampff-comment-test/)

## 描述

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:

 * Optional – The user can enter information but isn’t required to.
 * Required – The user must enter information before posting a comment.
 * Required and exact – The user must enter information and it must match a preset
   answer.

This combination of fields allows you to do three things:

 * Enact a simple spam filter by adding a required question to your site.
 * Gather additional information from your users when they leave a comment.
 * Quiz users which a challenge question before they leave a comment to avoid off-
   topic and unwanted comments.

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.

### Settings

#### Shortcode Defaults

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.

 1. Require answer – If this is checked, a user must enter an answer before leaving
    a comment.
 2. Display with comment – Above | Below | None – This will set where the users entered
    information appears in their comment. Use None if you don’t want it to display.
 3. Default Question – The question that will appear by default.
 4. Default Answer – If you want to require a near match to the default answer in order
    to submit a comment, enter it here. If this field is blank, any answer will be 
    accepted.

**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.

#### Global Defaults

These settings affect all of the VKCT fields.

 1. Use default question – If checked, this will add the default question to every 
    comment section on your site. Uncheck if you only want questions to appear on posts
    in which you include the `[vkct]` shortcode.
 2. Ask logged in users to answer – Never | When using shortcode | Always – This setting
    will determine whether or not logged in users see the question. Settings this to‘
    When using shortcode’ will allow you to use the default question as a spam filter,
    but still require registered users to answer alternate questions generated through
    the shortcode.
 3. Required text indicator – Change the required indicator on the comments form. Accepts`
    <span>`, `<small>`, `<b>`, and `<i>` as HTML markup. Defaults to *.
 4. Question / answer display format – Change the HTML markup of the displayed question
    and answer. The actual question and answer will appear where ‘question’ and ‘answer’
    are in this field. Accepts `<p>`, `<span>`, `<small>`, `<b>`, and `<i>` as HTML
    markup.

### Using the VKCT shortcode

    ```
    `[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.

### Example shortcode usage

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.

## 安装

 1. Upload `plugin-name.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

By default, the VKCT plugin adds the required question ‘Do androids dream of electric
sheep?’ to each comment section on your site. This can be changed in Plugins > Voight
Kampff Comment Test

## 常见问题

  What’s the best use of this plugin?

The best use is to setup a default, required question that’s relevant to your site.
If you write about sci-fi books, ask, “What is the last sci-fi book you read?”. 
It will stop automated spam, and generate some nice feedback from your anonymous
users. Then, when you write a post where you want to ask a more pointed question,
or where you’d like to prevent people who didn’t fully read your post from commenting,
ask a required / exact question using the shortcode.

  Are there any questions I should avoid asking?

I’ve heard some people get touchy when you ask about their mother…

## 评价

此插件暂无评价。

## 贡献者及开发者

「Voight Kampff Comment Test」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ jjmartucci ](https://profiles.wordpress.org/jjmartucci/)

[帮助将「Voight Kampff Comment Test」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/voight-kampff-comment-test)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/voight-kampff-comment-test/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/voight-kampff-comment-test/)，或
通过[RSS](https://plugins.trac.wordpress.org/log/voight-kampff-comment-test/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/voight-kampff-comment-test/)。

## 更新日志

= 0.1.1 (03/23/2013)=
 * Minor readme changes, added screenshot.

#### 0.1 (03/12/2013)

 * Initial release.

## 额外信息

 *  版本 **0.1.1**
 *  最后更新：**14 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **3.5.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/voight-kampff-comment-test/)
 * 标签
 * [comment form](https://cn.wordpress.org/plugins/tags/comment-form/)[comments](https://cn.wordpress.org/plugins/tags/comments/)
   [spam](https://cn.wordpress.org/plugins/tags/spam/)[survey](https://cn.wordpress.org/plugins/tags/survey/)
   [user input](https://cn.wordpress.org/plugins/tags/user-input/)
 *  [高级视图](https://cn.wordpress.org/plugins/voight-kampff-comment-test/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/voight-kampff-comment-test/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/voight-kampff-comment-test/reviews/)

## 贡献者

 *   [ jjmartucci ](https://profiles.wordpress.org/jjmartucci/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/voight-kampff-comment-test/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZUDJJN3YTZKE4)