WordPress.org

Plugin Directory

Captcha by BestWebSoft

This plugin allows you to implement super security captcha form into web forms.

Missing CAPTCHA on the comment form?

You might have a theme where comments.php is not coded properly.

Wopdpress version matters.

(WP2 series) Your theme must have a tag <?php do_action('comment_form', $post->ID); ?> inside the file /wp-content/themes/[your_theme]/comments.php. Most WP2 themes already have it. The best place to put this tag is before the comment textarea, you can move it up if it is below the comment textarea.

(WP3 series) WP3 has a new function comment_form inside of /wp-includes/comment-template.php. Your theme is probably not up-to-date to call that function from comments.php. WP3 theme does not need the code line do_action('comment_form'... inside of /wp-content/themes/[your_theme]/comments.php. Instead it uses a new function call inside of comments.php: <?php comment_form(); ?> If you have WP3 and captcha is still missing, make sure your theme has <?php comment_form(); ?> inside of /wp-content/themes/[your_theme]/comments.php (please check the Twenty Ten theme's comments.php for proper example)

I would like to add Captcha to the custom form on my website. How can I do this?

  1. Install the Captcha plugin and activate it.
  2. Open the file with the form (where you would like to add captcha to).
  3. Find a place to insert the code for the captcha output.
  4. Insert the necessary lines:
if( function_exists( 'cptch_display_captcha_custom' ) ) { echo "<input type='hidden' name='cntctfrm_contact_action' value='true' />"; echo cptch_display_captcha_custom() } ;

If the form is HTML you should insert the line with the PHP tags:

<?php if( function_exists( 'cptch_display_captcha_custom' ) ) { echo "<input type='hidden' name='cntctfrm_contact_action' value='true' />"; echo cptch_display_captcha_custom(); } ?>
  1. Then you should add the lines to the function of the entered data checking
if( function_exists( 'cptch_check_custom_form' ) && cptch_check_custom_form() !== true ) echo "Please complete the CAPTCHA."

or

<?php if( function_exists( 'cptch_check_custom_form' ) && cptch_check_custom_form() !== true ) echo "Please complete the CAPTCHA." ?>

You could add this line to the variable and display this variable in the required place instead of echo "Please complete the CAPTCHA.". If there is a variable (responsible for the errors output) in the check function, this phrase can be added to this variable. If the function returns 'true', it means that you have entered captcha properly. In all other cases the function will return 'false'.

Can I move the Captcha block in the comment form?

It depends on the comments form. If the hook call by means of which captcha works (after_comment_field or something like this) is present in the file comments.php, you can change captcha positioning by moving this hook call.

Please find the file 'comments.php' in the theme and change position of the line do_action( 'comment_form_after_fields' ); or any similar line - place it under the Submit button. In case there is no such hook in the comments file of your theme, then, unfortunately, this option is not available.

How to change a captcha title

You should go to the Settings page and change the value in the 'Title for CAPTCHA in the form' field.

During the settings saving I get the error: 'Please select one item in the block Arithmetic and Complexity for CAPTCHA'. What is this?

For stable work of the Captcha plugin you should select at least one item in the 'Arithmetic actions for CAPTCHA' block and select 'CAPTCHA complexity level' on the Settings page, because math expression should consist of at least 1 math sign and parts of math expression should be displayed like words or numbers or both of them.

I have some problems with the plugin's work. What Information should I provide to receive proper support?

Please make sure that the problem hasn't been discussed yet on our forum (http://support.bestwebsoft.com). If no, please provide the following data along with your problem's description:

  1. the link to the page where the problem occurs
  2. the name of the plugin and its version. If you are using a pro version - your order number.
  3. the version of your WordPress installation
  4. copy and paste into the message your system status report. Please read more here: Instuction on System Status

Requires: 3.1 or higher
Compatible up to: 4.2.3
Last Updated: 2015-7-2
Active Installs: 300,000+

Ratings

4.5 out of 5 stars

Support

1 of 4 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.

100,1,1
100,1,1 100,1,1
100,2,2
100,1,1
100,1,1
100,3,3
100,3,3 0,1,0
100,5,5
100,7,7 100,1,1 100,2,2
67,3,2 100,8,8 100,1,1 100,3,3
100,1,1 82,11,9 100,2,2 0,1,0 100,1,1 100,1,1 100,4,4
100,7,7 50,2,1 100,2,2 100,1,1 100,1,1 100,4,4
100,1,1 100,3,3 100,6,6 100,1,1
100,2,2 33,3,1 100,3,3 100,8,8 100,9,9 100,37,37 100,2,2
100,1,1 100,2,2 100,4,4 67,3,2 100,2,2 100,3,3 100,8,8 100,9,9 100,36,36 100,1,1 100,1,1
100,2,2 100,1,1 100,3,3 100,8,8 100,9,9 100,35,35 100,60,60 100,61,61
100,2,2 100,1,1 100,1,1 0,1,0 100,1,1 75,4,3 100,2,2 100,2,2 100,4,4 100,9,9 91,11,10 100,42,42 100,61,61 100,60,60 100,1,1
98,65,64 100,60,60 100,6,6 100,14,14 100,13,13 100,1,1
0,1,0 100,6,6 100,14,14 100,7,7 100,64,64 100,2,2 100,2,2
100,6,6 100,15,15 100,29,29 86,14,12 100,26,26 100,64,64 100,60,60 100,63,63 100,2,2 100,3,3
100,13,13 100,69,69 100,59,59 100,65,65 100,2,2 100,3,3
100,65,65 94,65,61 98,66,65 100,1,1 100,1,1 100,1,1 100,2,2 100,3,3
100,1,1 0,1,0 100,1,1 80,5,4 67,3,2 100,3,3 100,2,2 100,1,1 100,2,2 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,2,2 100,3,3
100,2,2 100,2,2 100,4,4 100,2,2 100,2,2 100,2,2 100,1,1 100,3,3 100,6,6 100,2,2 100,1,1 100,1,1 100,1,1 100,2,2 100,3,3
100,3,3 100,3,3 100,6,6 100,8,8 100,5,5 100,2,2 100,3,3 100,1,1 100,1,1 100,2,2 100,3,3 100,1,1
100,1,1 100,4,4 80,5,4 67,3,2 67,3,2 100,4,4 100,2,2 100,3,3 100,1,1
100,2,2 100,3,3
100,2,2 100,4,4 100,4,4 100,1,1 100,3,3 100,1,1
0,1,0 100,4,4 100,1,1
100,5,5 100,2,2 83,6,5 50,4,2
100,1,1
100,2,2
100,1,1 100,2,2 0,1,0 57,7,4
50,2,1
100,3,3 100,1,1 0,1,0
100,2,2 100,1,1
100,1,1 100,4,4
100,2,2 100,1,1
100,1,1 50,2,1
100,2,2