內容簡介
「Voight Kampff 測試(Voight Kampff Test)」是來自「仿生人會夢見電子羊嗎?」(Do Androids Dream of Electric Sheep)這本小說中的虛構測試,這個測試於電影《銀翼殺手》中被廣泛使用,透過一系列問題來判斷一個人是否是人類,或者是仿生人-一種外表和行為均與人類相似的有機機械人。「Voight Kampff Comment Test(VKCT)」外掛允許您在整個網站的評論表單中添加額外的欄位,以檢查您的使用者是否為人類(而非垃圾機器人),甚至是否將留下相關的評論。這些欄位可以是文本欄位或下拉菜單,並可被設定為:
可選擇性的-使用者可以輸入資訊,但不是必須的。
必填的-在發表評論前使用者必須輸入資訊。
必填的且精確的-使用者必須輸入資訊且必須符合預設答案。
這些欄位的組合可以讓您做三件事情:
透過在網站上添加必填問題,實行簡單的垃圾郵件過濾器。
當使用者留下評論時,收集更多的資訊。
在使用者發表評論前,使用挑戰問題向使用者提供問題,以避免發表離題或不想要的評論。
可以在您網站上為每個評論表單添加一個預設的 VKCT 問題, 或者您可以在每篇文章中使用shortcode [vkct],以覆蓋預設問題或在需要時應用 VKCT 欄位。 [vkct] 呼叫可多次使用,允許您創建任意數量的額外欄位。
設定
Shortcode 預設值
Shortcode 預設值同時是顯示在您網站上的預設問題的設定,如果您在未使用任何選項的情況下使用 [vkct] shortcode,該值是預設設置。
要求答案-如果勾選此選項,則使用者在發表評論前必須輸入答案。
顯示於評論中-上方|下方|無。這會設定使用者輸入的資訊所在的位置。如果您不想要它顯示,則使用「無」。
預設問題-預設顯示的問題。
預設答案-如果您想要在提交評論前需要近似於預設答案,請在此輸入內容。如果此欄位為空,則接受任何答案。
注意:所給定的答案是近似的。常用的標點符號會被去除,答案會轉換為全部小寫。因此,如果您期望的答案是「Philip K. Dick」,那麼「philipkdick」或「Philip K Dick」將被接受,但「Phillip K Dick」則會被拒絕。
全域預設值
這些設定影響所有 VKCT 欄位。
使用預設問題-如果勾選此選項,則會在您的網站的所有評論區域中添加預設問題。如果只想要在包含 [vkct] shortcode 的文章中出現問題,則取消勾選此選項。
要求已登入的使用者回答-從不|當使用 shortcode 時|始終。此設置將決定已登入的使用者是否可以看到問題。將此設置為「當使用 shortcode 時」,即可使用預設問題作為垃圾郵件過濾器,但仍可要求註冊使用者回答經由 shortcode 生成的其他問題。
必填文本指標-變更評論表單上的必填指示器。接受 <span>、<small>、<b> 和 <i> 作為 HTML 標記。預設為 *。
問題/答案顯示格式-更改顯示的問題和答案的 HTML 標記。實際問題和答案將出現在「問題」和
外掛標籤
開發者團隊
原文外掛簡介
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.
Require answer – If this is checked, a user must enter an answer before leaving a comment.
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.
Default Question – The question that will appear by default.
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.
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.
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.
Required text indicator – Change the required indicator on the comments form. Accepts , , , and as HTML markup. Defaults to *.
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
, , , , and 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.
