WordPress.org

Ready to get started?Download WordPress

Plugin Directory

cbnet Really Simple CAPTCHA Comments

Comment form CAPTCHA using Really Simple CAPTCHA plugin. Proof-of-concept for other plugin developers.

I activated the plugin, but don't see a CAPTCHA field in my comment form. What's going on?

Make sure you have the Really Simple CAPTCHA plugin installed and activated.

What API settings can be configured?

Refer to Dashboard -> Settings -> Discussion to configure Plugin settings:

// Characters to use in CAPTCHA image.
$comment_captcha->chars = 'ABCDEFGHJKLMNPQRSTUVWXYZ23456789';

// Number of characters in CAPTCHA image.
$comment_captcha->char_length = '4';

// Width/Height dimensions of CAPTCHA image.
$comment_captcha->img_size = array( '72', '24' );

// Font color of CAPTCHA characters, in RGB (0 - 255).
$comment_captcha->fg = array( '0', '0', '0' );

// Background color of CAPTCHA image, in RGB (0 - 255).
$comment_captcha->bg = array( '255', '255', '255' );

// Font Size of CAPTCHA characters.
$comment_captcha->font_size = '16';

// Width between CAPTCHA characters.
$comment_captcha->font_char_width = '15';

// CAPTCHA image type. Can be 'png', 'jpeg', or 'gif'
$comment_captcha->img_type = 'png';

Note, the following API-configurable option is not exposed by the Plugin, but can be modified via filter:

// oordinates for a text in an image.
$this->base = array( 6, 18 );

What other settings can be configured?

// Comment form CAPTCHA field label text
$comment_captcha_form_label = 'Anti-Spam:';

The CAPTCHA field doesn't look right in my comments form. How can I style it?

The HTML output is wrapped in a paragraph tag, with class="comment-form-captcha".

Requires: 3.1 or higher
Compatible up to: 3.9.1
Last Updated: 2014-4-22
Downloads: 12,028

Ratings

3 stars
3.1 out of 5 stars

Support

1 of 3 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

67,3,2
33,3,1
50,2,1
100,1,1
100,1,1
100,1,1
0,1,0
100,1,1