WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Sidebar Login] FF3 – Recognizes Login Success only after Refresh

[Resolved] [Plugin: Sidebar Login] FF3 – Recognizes Login Success only after Refresh

Viewing 6 replies - 1 through 6 (of 6 total)
  • Appears to only be an issue on the homepage. http://www.example.com/ has the issue, but http://www.example.com/?p=70 works fine.

    Ha! I got it.

    Login form submission sends me to http://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.

    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 ‘[Resolved] [Plugin: Sidebar Login] FF3 – Recognizes Login Success only after Refresh’ is closed to new replies.
Skip to toolbar