Support » Plugin: Limit Login Attempts » Integrating Limit Login Attempts Plugin to Custom Login

Viewing 9 replies - 1 through 9 (of 9 total)
  • OK… I take it from the silence that you have no idea how to address this issue?

    Hello…

    I see you are back. Do you have any help for me on this issue?

    Thanks!

    Plugin Author johanee

    (@johanee)

    Hi, sorry for the long silence!

    The requirements for a custom login page is:
    – call do_action(‘login_head’); in the header
    – if there are any errors they must be filtered using something similar to: $errors = apply_filters(‘login_errors’, $errors);

    Good luck!

    Hi and thanks for the reply!

    I did as you suggested by placing do_action(‘login_head’) into the header and ran a standard wp_error routine before it as below:

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    But I am still not getting any indication that your plugin is working to block the attempts, nor do I get a number of attempts readout.

    Plugin Author johanee

    (@johanee)

    Hi,

    How it works:
    * the error object returned from wp_signon() on a failed login will include our error message
    * when displaying the login page otherwise you can get the retries information either by calling limit_login_get_message() directly or by using the global $error like wp-login.php.

    Try something like the following pseudo-code:

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    Hi johanee,

    Thanks a million. The limit_login_get_message() function works like a charm. The only problem I am seeing now is that apparently my custom page is not being monitored by the plugin. No matter what I do, it always shows “3 attempts remaining.”

    Is there something that I should be doing on this page that will cause the plugin to monitor the signons via wp_signon()?

    Plugin Author johanee

    (@johanee)

    wp_signon() should work out of the box. I’m not sure what the trouble is. If you send a copy of your login page to johan.eenfeldt@kostdoktorn.se I’ll check it out.

    InterTrade

    (@intertrade)

    Hi johanee,

    I sent an email to the email address on 6/6, but I have yet to hear from you. I sent a new email today with another copy of the code if you by chance did not get it. If you do not get it, please check your junk mail.

    Thanks!

    I use this:

    <?php
    global $error;
    $referrer = $_GET['login'];
     if ($referrer == 'false'){
    	echo '<div id="message" class="error"><p>';
    	echo $error;
    	echo '</p></div>';
     } else {
     }
    ?>
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Integrating Limit Login Attempts Plugin to Custom Login’ is closed to new replies.