WordPress.org

Forums

Captcha
[resolved] Not working with 1Password (2 posts)

  1. drunkfox
    Member
    Posted 1 year ago #

    Hi, thank you for a great plugin and... sorry for my poor English.
    As I said in the ticket's title, Captcha plugin doesn't work together 1Password, when I use Internet Explorer.
    It works fine with Firefox and Chrome.
    That's not a real problem for me, but I think it's good you know that issue.
    When I use 1password to access to my WP admin area, after filling Username and Password the browser open the WP admin panel, without filling any number/word in the Capthca.
    I trust you undertsand my bad English :-)
    Thank you

    https://wordpress.org/plugins/captcha/

  2. bestwebsoft
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Captcha will only be displayed if you are using standard registration, login, comments form pages. In case of using custom forms and pages it will be necessary to make changes in them so that captcha could be displayed and work correctly.
    Please follow the instructions below.
    = I would like to add Captcha to 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 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'.

    Sincerely,
    BestWebSoft Support Team

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Captcha
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags