Add captcha to contact form

This topic contains 10 replies, has 3 voices, and was last updated by  cubefree 7 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #13232

    Waterwork
    Participant

    Support Expired

    Is there a way to add captcha to the Azura contact form? Thanks.

    #13243

    CTHthemes
    Keymaster

    Hi, what’re Azura and Momentum template versions you are using?

    #13245

    Waterwork
    Participant

    Support Expired

    Azura 2.3.0
    Momentum 3.3.0

    #13255

    CTHthemes
    Keymaster

    Please try:

    1, enable Captcha – ReCaptcha plugin

    2, Then select Default Captcha: http://prntscr.com/ejfcmm

    #13262

    Waterwork
    Participant

    Support Expired

    I’ve done this but widget does not display. I think I need to add a snippet to the form but I’m not sure where since there’s no place to add html.

    #13263

    CTHthemes
    Keymaster

    Hi, send me your administrator + ftp accounts to check.

    #13306

    Waterwork
    Participant

    Support Expired
    This reply has been marked as private.
    #13317

    CTHthemes
    Keymaster

    Hi, the problem was fixed. You can check if now.

    #15916

    cubefree
    Participant

    Supported

    Hey KeyMaster,

    I’m also trying to add this, but it does not appear after adding my plugin keys.

    I see this line is added to the page HTML code:
    <script src='https://www.google.com/recaptcha/api.js'></script>

    On the form, I see this:
    <div id="dynamic_recaptcha_1"></div>

    But it does not appear. Is there an update to the template?

    thx Dano

    #15932

    CTHthemes
    Keymaster

    Hi, please edit your template file like this ( http://prntscr.com/gnb5c6 ) to make it compatible with captcha version 2

    
    <?php
                             
                $captchaId = 'captchaid';
                JPluginHelper::importPlugin('captcha', 'recaptcha');
                $dispatcher = JEventDispatcher::getInstance();
                $initResult = $dispatcher->trigger('onInit', array($captchaId));
                if ($initResult)
                {
                    echo implode('', $dispatcher->trigger('onDisplay', array(null, $captchaId, 'class=""')));
                }
                
                //echo 'captcah';
                
                ?>
    #15951

    cubefree
    Participant

    Supported

    Yes, works like a bad-ass mofo

Viewing 11 posts - 1 through 11 (of 11 total)

The topic ‘Add captcha to contact form’ is closed to new replies.