• Resolved alkafy

    (@alkafy)


    Sidebar Login Version 2.2.4. Noticing other folks here with similar problems but I’m not sure that it’s the same.

    I have the login form on my homepage using the template tag. After I submit the form with my username and password, I need to refresh or move to a different page for it to recognize that I’m now logged in. It isn’t shy about displaying errors if fields are blank or incorrect, the only problem arises when the submission is valid.

    The form works just fine in Safari. Testing in IE 7 shortly.

    Edit: Just wanted to note – I’m using my admin account only. Haven’t tested subscriber or contributor.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter alkafy

    (@alkafy)

    Appears to only be an issue on the homepage. https://www.example.com/ has the issue, but https://www.example.com/?p=70 works fine.

    Thread Starter alkafy

    (@alkafy)

    Ha! I got it.

    Login form submission sends me to https://www.example.com/#login when on index.

    Without a filename or $_GET variable, Firefox doesn’t recognize the form submission as a page request and doesn’t refresh the DOM, even though the server still seems to receive the request. It’s the same as clicking a link with an anchor – the page simply moves (or doesn’t move if #login is near the top of your page.)

    I’ll be hacking the plugin to insert a $_GET variable – possibly with a random int to force refresh.

    Hope this helps other folks running into this quirk.

    Thread Starter alkafy

    (@alkafy)

    Added Line 388:

    if (substr($pageURL,-1)==’/’) $pageURL = substr($pageURL,0,-1);
    if (!strpos($pageURL,’rn=’)) {
    $rand = (!strpos($pageURL,’?’)) ? ‘?rn=’.rand(0,99) : ‘&rn=’.rand(0,99);
    $pageURL .= $rand;
    }

    Above:

    if ($url != “nologout”) {
    $pageURL .=’#login’;
    }

    Appears to work, but caching problems are always tricky…

    Edit: Typo.

    Mike

    (@jolley_small)

    thanks, Ill give it a whirl.

    Mike

    (@jolley_small)

    For me, this stopped it from working on the homepage entirely.

    I’m having the exact same problem with version 2.2.5 and Firefox. I was going to try the above hack, but I can’t find the insertion point in this version.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Sidebar Login] FF3 – Recognizes Login Success only after Refresh’ is closed to new replies.