-
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
-
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.
-
1 Attachment(s)
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.
-
I need your ftp details to check, send me them to my PM
-
Hi Rudi, and many thanks.
Have a great day.
-
Is there a way to do this in 4.7.0 please ?
-
Pete, it should be the same as Rudi's solution.
-
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
-
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
-
Hello,
it should work on all pages
you can try and check