Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Convert
Wordpress to Elxis
with
Elxis importer
!
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
[Solved] Redirect to the homepage automatically ?
« previous
next »
Print
Pages: [
1
]
Author
Topic: [Solved] Redirect to the homepage automatically ? (Read 4356 times)
khaled
Newbie
Posts: 13
[Solved] Redirect to the homepage automatically ?
«
on:
October 09, 2008, 19:36:24 »
Hi everyone,
My apology if this is a too trivial question (I searched the forum but didn't find my answer)!
I have some areas that are only accessible by a certain group. Now if a user of that group logs out while accessing those areas (logs out without going to the home page first) then immediate after logging out, the site doesn't redirect to the home page automatically instead it displays a message "Warning! You are not authorized to view this resource...You need to login.." (see the attached screenshot)
I was wondering if there's a way to redirect automatically to the
home page
after someone logs out.
Thank you.
[attachment deleted by admin]
«
Last Edit: October 09, 2008, 20:37:51 by khaled
»
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: Redirect to the homepage automatically ?
«
Reply #1 on:
October 09, 2008, 20:02:02 »
Elxis 2008 redirects you to the same page as long as that page is available and your menu settings tells Elxis that this page is also available for the logged out users too. You have set up your menu items wrong.
If you want to always get re-directed to the front-page open index.php and index2.php files and modify the red coloured lines:
} else if ($option == 'logout') {
.......
if ($return) {
mosRedirect( $return );
} else {
mosRedirect( 'index.php' );
}
Leave only this:
mosRedirect( 'index.php' );
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
khaled
Newbie
Posts: 13
[Solved] Redirect to the homepage automatically ?
«
Reply #2 on:
October 09, 2008, 20:37:13 »
Problem solved...Thank you datahell
Logged
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
[Solved] Redirect to the homepage automatically ?