Viewing 3 replies - 1 through 3 (of 3 total)
  • you can try their own form plugin

    Thread Starter ChuxMark

    (@chuxmark)

    I ended up at that conclusion also, but I appreciate your note since it would have got me on the right path. I am using ‘Contact Form 7’ but did not know to add the CAPTCHA tag. I am learning a lot today.

      Thanks

    for looking out for the newbies, John.

    Hi ChuxMark,

    The compatibility with Contact Form 7 plugin is available in the Pro plugin version – http://bestwebsoft.com/products/captcha/.

    Also, you can add captcha to the custom form manually using a Free plugin version. To do so, please follow the instructions below:

    1. Install the Captcha plugin and activate it.
    2. Open the file with the form (where you would like to add the 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(); } ?>

    5. 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’.

    Regards,
    BestWebSoft Support Team.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Probably Useful For Someone’ is closed to new replies.