+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: User Log Out

  1. #1
    Junior Member
    Join Date
    Oct 2016
    Location
    Switzerland
    Posts
    26

    User Log Out

    Hi

    Template = General Modern

    When a signed-in user, logs out, the sign in page is displayed by default. I would like on log out to return to the Home page. There must be a link setting somewhere, does anyone know which file to edit, so l can change it to the Home page link ?

    Many thanks

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Hi Andrew,

    Go to your ftp > includes > controllers > login.inc.php > find a code on ~69 row:
    PHP Code:
    Only registered members can view the code
    change it to:
    PHP Code:
    Only registered members can view the code
    then go to includes > classes > rlAccount.class.php > function logOut() (~1860 row) > find:
    PHP Code:
    Only registered members can view the code
    change to:
    PHP Code:
    Only registered members can view the code
    Last edited by Rudi; April 4, 2019 at 11:21 AM.

  3. #3
    Junior Member
    Join Date
    Oct 2016
    Location
    Switzerland
    Posts
    26
    Hi Rudi

    Thanks for that, tried it but on logout still does not go to Home Page, have attached Txt file (PDF was too large) of change towards end of page as you told me. l have checked it a few times, i.e. Logging In / Logging Out. Even created a new user, logged in / out etc but still the same, returns to Login Page rather than Home Page.
    Attached Files Attached Files

  4. #4
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    I need your ftp details to check, send me them to my PM
    Last edited by Rudi; November 18, 2016 at 03:44 AM.

  5. #5
    Junior Member
    Join Date
    Oct 2016
    Location
    Switzerland
    Posts
    26
    Hi Rudi, and many thanks.

    Have a great day.

  6. #6
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    2,028
    Is there a way to do this in 4.7.0 please ?
    Last edited by Pete Young; February 20, 2021 at 12:57 PM.

  7. #7
    Pete, it should be the same as Rudi's solution.

  8. #8
    Hello Rudi,

    I have a very similar question to this, in general, not just the sign-in page, (as Andrew points out) but will your code also work for all pages? Ex: If I am on the contact page, or any page at all while logged in, when I log out I want to return to the homepage, will your code do the trick?

    Brian
    Thank you - Your Welcome
    Brian

  9. #9
    Anyone know if making those changes (By Rudi) will affect all the pages as I posted in my previous message, or is that just for the login page? And if just for the login page, how can I make the adjustment so that if I am logged into the website, and then logout of the website, I will be redirected back to the homepage regardless of what the last page I was on before logging out of the website.

    Brian
    Thank you - Your Welcome
    Brian

  10. #10
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Hello,

    it should work on all pages

    you can try and check

+ Reply to Thread