Support » Plugin: All In One WP Security & Firewall » Captcha insert

Viewing 6 replies - 1 through 6 (of 6 total)
  • here i am pasting the code of the login /register Modal

    <!-- LOGIN MODAL -->
    <?php
    //check if admin allow registration
    $users_can_register = get_option('users_can_register');
    
    //if admin permits registration
    $users_can_register_tab = '';
    $users_can_register_form = '';
    
    if($users_can_register == 1){
    
        //add the Register tab to the modal window if <code>Anyone can register</code> chec
        $users_can_register_tab = '<li><a id="register-link">' . __td('REGISTER', TD_THEME_NAME) . '</a></li>';
    
        $users_can_register_form = '
                            <div id="td-register-div" class="td-display-none">
                                <div class="td-login-panel-title">' . __td('Register for an account', TD_THEME_NAME) .'</div>
                                <input class="td-login-input" type="text" name="register_email" id="register_email" placeholder="' . __td('your email', TD_THEME_NAME) .'" value="" required>
                                <input class="td-login-input" type="text" name="register_user" id="register_user" placeholder="' . __td('your username', TD_THEME_NAME) .'" value="" required>
                                <input type="button" name="register_button" id="register_button" class="wpb_button btn td-login-button" value="' . __td('Register', TD_THEME_NAME) . '">
                                 <div class="td-login-info-text">' . __td('A password will be e-mailed to you.', TD_THEME_NAME) . '</div>
                            </div>';
    }
    
    echo '
                    <div  id="login-form" class="white-popup-block mfp-hide mfp-with-anim">
                        <ul class="td-login-tabs">
                            <li><a id="login-link" class="td_login_tab_focus">' . __td('LOG IN', TD_THEME_NAME) . '</a></li>' . $users_can_register_tab . '
                        </ul>
    
                        <div class="td-login-wrap">
                            <div class="td_display_err"></div>
    
                            <div id="td-login-div" class="">
                                <div class="td-login-panel-title">' . __td('Welcome! Log into your account', TD_THEME_NAME) .'</div>
                                <input class="td-login-input" type="text" name="login_email" id="login_email" placeholder="' . __td('your username', TD_THEME_NAME) .'" value="" required>
                                <input class="td-login-input" type="password" name="login_pass" id="login_pass" value="" placeholder="' . __td('your password', TD_THEME_NAME) .'" required>
                                <input type="button" name="login_button" id="login_button" class="wpb_button btn td-login-button" value="' . __td('Log In', TD_THEME_NAME) . '">
    
                                <div class="td-login-info-text"><a href="#" id="forgot-pass-link">' . __td('Forgot your password?', TD_THEME_NAME) . '</a></div>
    
                            </div>
    
                            ' . $users_can_register_form . '
    
                             <div id="td-forgot-pass-div" class="td-display-none">
                                <div class="td-login-panel-title">' . __td('Recover your password', TD_THEME_NAME) .'</div>
                                <input class="td-login-input" type="text" name="forgot_email" id="forgot_email" placeholder="' . __td('your email', TD_THEME_NAME) .'" value="" required>
                                <input type="button" name="forgot_button" id="forgot_button" class="wpb_button btn td-login-button" value="' . __td('Send My Pass', TD_THEME_NAME) . '">
                            </div>
    
                        </div>
                    </div>
                    ';
    ?>

    I tried the following :

    $cap='';
    if( function_exists( 'display_captcha_form' ) ) {
    $cap = display_captcha_form();
    };

    and to display it I used :
    ' . $cap .'

    but no luck 🙁

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, did you by any chance enabled the following feature
    Enable Captcha On Custom Login Form: under Brute Force -> Login Captcha?

    The above settings works with the following function wp_login_form. Read the following information which is displayed next to the above mentioned feature.

    Check this if you want to insert captcha on a custom login form generated by the following WP function: wp_login_form()

    Have you read the following wp_login_form from WordPress?

    Hi
    Thank you so much for answering…
    Yes , i did Enable Captcha On Custom Login Form in settings.
    i can add the login form by using wp_login_form() and the captcha appear
    i just was wondering if there is a function or short code that can be inserted in a custom login form , because as you see in example above it did not work by enabling this option in backend…

    Thank you again

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi in regards to the following question.

    i just was wondering if there is a function or short code that can be inserted in a custom login form , because as you see in example above it did not work by enabling this option in backend…

    The plugin developers will let you know.

    Kind regards

    Plugin Author wpsolutions

    (@wpsolutions)

    i just was wondering if there is a function or short code that can be inserted in a custom login form

    Since you are not using the wordpress function to insert the login form (wp_login_form()) there is no standard way to insert the aiowps captcha form.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Captcha insert’ is closed to new replies.