WordPress.org

Ready to get started?Download WordPress

Forums

Captcha
[resolved] Does it support buddypress? (5 posts)

  1. templs
    Member
    Posted 2 years ago #

    My buddypress registration form doesn't show captcha...
    Maybe it's possible setup it manually?

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

  2. bestwebsoft
    Member
    Plugin Author

    Posted 2 years ago #

    Hello,

    Please follow the instruction below.

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

    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.

    Regards,
    Oksana

  3. templs
    Member
    Posted 2 years ago #

    Thanks, Oksana!
    Will try it today...

  4. pawriter
    Member
    Posted 2 years ago #

    Hi - this looks great but where do if find the right place in the Buddypress registration page to put the code?

  5. bestwebsoft
    Member
    Plugin Author

    Posted 2 years ago #

    Hello,

    Do we need to suggest you where to put the code for captcha displaying into the'Buddypress registration page'? For now it is a hard to say, because we didn't plan that option, it is necessary to study buddypress plugin and its code structure. So for now this option will be not available.

    Regards,
    Oksana

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags