• Resolved mpbaweb

    (@mpbaweb)


    Hi
    When attempting to comment on a post, a line appears “Logged in as [username] Log out?”
    If you click on the logout link, you get a bad redirect (image1). This should just be a straight logout with no redirect.

    This messes up the front end login page which in my case

      should have no user accessible content

    other than the login form ie I use a full width template with no sidebar so what it should go to is (image2).

    What it does is some weird combination which leaves the sidebar visible and breaks the page security (image3).

    I could possibly workaround this issue if you could tell me how to prevent the “Logged in as…” text from displaying on the form. It seems pretty pointless having it there anyway.

    Image1
    Bad redirect1

    Image2
    Bad redirect2

    Image3
    Bad redirect3

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mpbaweb

    (@mpbaweb)

    Ok, so I searched for the ‘Logged in as…’ string in ExpressionWeb and found it in ‘includes/comment-template.php’

    I know nothing about php (Am a SQL developer) but I found this bit of code:
    [a href=”%1$s”>Logged in as %3$s[/a]. [a href=”%4$s”>Log out?[/a]

    I made a backup of the comment-template.php file and removed the logout href [a href=”%4$s”>Log out?[/a]

    Seemed to fix it (Get rid of it). However, I don’t know what other knock-on damage I may have caused. I have a backup, so I guess time will tell.

    • This reply was modified 8 years, 1 month ago by mpbaweb.
    • This reply was modified 8 years, 1 month ago by mpbaweb.
    Plugin Author Jeff Starr

    (@specialk)

    Hi mpbaweb,

    Glad to help, but the “logged in as..” text is something that is handled by WP, so it’s not anything that the plugin is doing. Hopefully you found a solution that doesn’t involve hacking the WP core, which is not recommended.

    • This reply was modified 8 years, 1 month ago by Jeff Starr.
    Plugin Author Jeff Starr

    (@specialk)

    Hi mpbaweb, I hope you got this sorted out. I’m gonna go ahead and mark this topic as resolved to help keep things organized. Feel free to follow-up or post afresh with any new issues or questions, I’m glad to help however possible. Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bad Redirect on logout’ is closed to new replies.