• Hello,

    I’ve been trying to integrate the audio captcha. I’m using the Really Simple CAPTCHA.

    All works and how can i add the data-word into the image element on that captcha.

    <img class="wpcf7-form-control wpcf7-captchac wpcf7-captcha-tw-captcha" width="72" height="24" alt="captcha" src="https://localhost/ms/ndaatgal/wp-content/uploads/sites/9/wpcf7_captcha/1565496214.png" data-word="GLC5">

    Completed things should look like this.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Uranbold

    (@uranbold)

    I’ve checked the Plugin code and there is no filter or function to returning the captcha word.

    How can i resolve this?

    Thread Starter Uranbold

    (@uranbold)

    No Reply ??

    Hello @uranbold,

    It’s interesting what you want to achieve, however, I haven’t seen any existing extension plugin to add speech captchas for CF7.

    On the other hand, I think it’s not a good idea to show the captcha in plain text directly in the code, this would make it easier for spam robots to detect the right answer to the challenge and send messages from your forms.

    However, you can create an instance of the Really Simply Captcha (ReallySimpleCaptcha()) class and use one of its methods (generate_random_word()) to generate and return the CAPTCHA word before generating the image captcha:

    // Create an instance of ReallySimpleCaptcha class
    $captcha_instance = new ReallySimpleCaptcha();
    
    // Generate a random word for CAPTCHA
    $word = $captcha_instance->generate_random_word();
    
    // Return the word for CAPTCHA
    return $word;

    Hope this helps you.

    Best regards,
    Yordan.

    Thread Starter Uranbold

    (@uranbold)

    Hello,

    Yeah i’ve tried it and it actually displayed 2 different captcha ??

    I understand that comes with spam issues. Still not figure it out.

    Thanks.

    Hello @uranbold,

    In order for it to display a single captcha you have to use the same instance and work with the $word result in both captchas. That is, you have to include the text and image captchas in the same code you are working with (I recommend to you working with a custom form tag for CF7). Please read Adding a custom form-tag to learn more.

    Best regards,
    Yordan.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Text to Speech’ is closed to new replies.