Support » Plugin: Simple Login Log » [Plugin: Simple Login Log] Plugin compatibility with Sidebar login

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Max Chirkov

    (@maxchirkov)

    Hi there,

    the native “login” function is wp_signon(). At the very end before it returns user object it has an action hook “wp_login”. It’s there for a reason. Authors who write plugins for additional login methods should utilize that action hook in the same manner.

    Write your plugin author and point him/her to this post and ask them to add that action hook – it’s just 1 line.

    Hi Max,

    Thanx for your answer.

    I’ll start by testing the adding of do_action in the good place and after send it to the plugins authors.

    greets.

    Plugin Author Max Chirkov

    (@maxchirkov)

    Just make sure your action hook contains the same parameters:

    do_action('wp_login', $user->user_login, $user);

    $user->user_login should contain username (login name), and the $user is the user object. In third party plugins they might be represented with different variables.

    thank you,

    This is exactly what I did, but I can’t get it working on a 3.3.1 version, with a 3.1.2 version it works fine (same versions of plugins in both wordpress)

    I also added a line do_action(‘wp_login_failed’, $user->user_login, $user); in order to catch both situations but it doesn’t work at this time.

    There is probably something I miss.

    Plugin Author Max Chirkov

    (@maxchirkov)

    What’s the name of the plugin you’re using for logins?

    Plugin Author Max Chirkov

    (@maxchirkov)

    I’m not sure what kind of problem you’re running in… I just installed the plugin and tested it out – everything works just fine. I tried loggin in as an admin and as a subscriber – both got recorded in my log. I also entered a redirect URL just to make sure it doesn’t fail under different conditions and in all cases my logins were tracked just fine.

    P.S. Make sure you’re using the latest version of the Simple Login Log as well as the Sidebar Login.

    Hi Max,

    Thanks a lot for the time allowed to my issue. I have started a brand new pluginless wordpress environment in order to try it.
    Your plugin works perfect, I’ll find this afternoon which plugin can conflict with yours and i’ll tell you so.

    back to tests !

    regards

    Ok, It look like a conflict with my artisteer generated theme.
    When I disable it, your plugin works.

    How can a theme interact with the login procedure ?

    Plugin Author Max Chirkov

    (@maxchirkov)

    Perform a search through Artisteer files for a “wp_login” string. The theme must be using the same hook to do something, or undo it at all.. if it does, it must be preventing other functions from executing at this hook. Post the code of the function that executes during that hook and I’ll take a look.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: Simple Login Log] Plugin compatibility with Sidebar login’ is closed to new replies.