Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    We have received your request and it is now being processed. We will get back to you on this forum as soon as we can.

    Regards,
    BestWebSoft Support Team

    Hi,

    Captcha will be displayed and working correctly only is you are using standard registration, login and comments form pages. If you are using custom forms and pages, you will need to make some changes to them:

    Follow the instructions below in order to add Captcha plugin to your custom PHP or HTML form:

    1) Install the Captcha plugin and activate it.
    2) Open the file with the form (where you want to add the captcha).
    3) Insert the following code to display captcha:

    if( function_exists( 'cptch_display_captcha_custom' ) ) { echo "<input type='hidden' name='cntctfrm_contact_action' value='true' />"; echo cptch_display_captcha_custom() }; if( function_exists( 'cptchpr_display_captcha_custom' ) ) { echo "<input type='hidden' name='cntctfrm_contact_action' value='true' />"; echo cptchpr_display_captcha_custom() };

    For HTML form use 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(); } if( function_exists( 'cptchpr_display_captcha_custom' ) ) { echo "<input type='hidden' name='cntctfrm_contact_action' value='true' />"; echo cptchpr_display_captcha_custom(); } ?>

    4) Add the next code to the entered data validation function:

    if ( ( function_exists( 'cptch_check_custom_form' ) && cptch_check_custom_form() !== true ) || ( function_exists( 'cptchpr_check_custom_form' ) && cptchpr_check_custom_form() !== true ) ) echo "Please complete the CAPTCHA.";

    or (for HTML form)

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

    You could add this code 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 errors output) in the validation function, this notification message can be added to this variable. If the function returns “true”, it means that you have entered captcha properly. In other cases the function will return “false”.

    Sincerely,
    BestWebSoft Support Team

    Hi!

    I tried to set captcha on my website. I followed instructions placed here and on FAQ. Both where pretty the same.

    Captcha shows on desired place but text “Please complete the CAPTCHA.” is always visible even if I enter proper values in fields.

    I noticed, that condition

    cptch_check_custom_form() !== true

    is not met in php code. When I change it to false it does not show captcha warn.

    Hi,

    If captcha doesn’t work correctly, it is a consequence of improper integration into your custom form.

    Unfortunately, it is hard for us to tell, where exactly should the code be pasted, as there are so many different custom forms out there, and each of them requires an individual method of pasting the shortcode. If you’d like, we could help you with that, however, please note that this would be a paid service, since we will need some time to examine your form and add captcha to it.

    If you’d like to request for the customization, please submit a private request here – http://support.bestwebsoft.com/hc/en-us/requests/new and specify all the details.

    Sincerely,
    BestWebSoft Support Team

    Hi,

    Since there is no reply from you, we consider this topic as resolved. We hope you’ve found the solution. If you have any questions, please feel free to contact us via our Help Center – http://support.bestwebsoft.com/.

    Sincerely,
    BestWebSoft Support Team

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

The topic ‘Integrating into a custom theme WordPress site’ is closed to new replies.