WP-Question 0.3

WP-Question is a plugin for WordPress 1.5. Its only function is to ask a question to anyone posting a comment that will differentiate your WordPress install from the many other installs that are available on the web. The question is easily answerable by a human but not by a script. This helps to eliminate spam by making it so spam scripts cannot post to your blog.

Download WP-Question 0.3 and put it in your plugin directory after removing the .txt extension. You need to edit the file by hand and change the question and answer. In the near future I hope to create an administrative interface to the plugin. This can be done in WP 1.5.

Add the following line to your “Comments Template”

<?php spi_addquestion($comment_author); ?>

The best place is right after the Website form(make sure it is after the endif):

<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?/>" size="22" tabindex="3" />
<label for="url"><small>Website</small></label></p>
<?php endif; ?>

This plugin checks for the presence of the comment author cookie and will automatically fill in the answer so people who have posted a comment once do not have to answer the question a second time.

Update: New version(0.2) that now works even if you are logged in. It also hides the question box once you sucessfully answer it once.

Update: Version 0.3 now passes trackbacks through. This will allow all trackbacks.

4 Responses to “WP-Question 0.3”

  1. Tim Says:

    Testing!

  2. Tim Says:

    testing second comment (this should work)

  3. Tim Says:

    testing third comment with no question box in sight.

  4. Tim Says:

    Ok so its pretty theme dependant. I can’t quite figure out how exactly it manages to even show up in my theme, but it does. However, the cookie for if you are logged in still doesn’t work in my case. It does work when I submit a comment answering the question and then submitting another comment (the box disappears like it should). I still have problems if I am logged in.