WordPress.org

Ready to get started?Download WordPress

Forums

Captcha
[resolved] How to add captcha to BBPress Forum Replies? (2 posts)

  1. Big_Birtha
    Member
    Posted 1 year ago #

    Hi, I have captcha working fine on my site http://www.bigbirthas.co.uk, but I'm getting spam in the forum and have realised that this is because the captcha isn't showing up on the 'create a new topic' or the 'reply to' form? Any ideas?

    http://wordpress.org/extend/plugins/captcha/

  2. bestwebsoft
    Member
    Plugin Author

    Posted 1 year ago #

    hello Big_Birtha,

    These are customs form, which are created by other plugin. If you want to add the captcha there, please follow the instruction:
    1. Install Captcha plugin, activate it.
    2. Open file with the form (where it is necessary to implement captcha).
    3. Find the place where it is necessary to insert code to display captcha.
    4. Insert lines 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 the form is html it will be necessary to insert the line with tags php
    <?php
    if( function_exists( 'cptch_display_captcha_custom' ) ) { echo
    "<input type='hidden' name='cntctfrm_contact_action' value='true'
    />"; echo cptch_display_captcha_custom(); } ?>
    5. It is necessary to add the lines in the function of check of the
    entered data (where it is checked what the user enters and if everything
    is correct the mail will be sent)
    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."
    ?>
    It is possible to enter this line in variable and display this
    variable in required place instead of echo "Please complete the
    CAPTCHA.".
    If there is a variable (which is answered for the displaying of the
    errors) in the function of check so this phrase can be added to this
    variable. If the function returned true then you have entered captcha
    properly. In other cases the function will return false.

    Kind regards.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic