Elxis CMS Forum

Support => General => Topic started by: ROUBOS on June 28, 2012, 17:05:33

Title: User login module not working...
Post by: ROUBOS on June 28, 2012, 17:05:33
Hi,
the user login module does not sign me in, and I guess its because once I click login, it loads the first page which in my case is a .html page instead of the normal php frontpage.

When I use the Login form instead, it works fine.

Can we overcome this? Or shoud I not use the module and just go with the login page?
Title: Re: User login module not working...
Post by: xmanhattan on June 28, 2012, 19:09:15
Hello Roubos,

The login module is for front end usage (registered, author, editor, etc.) not admin.  If you are trying to use for the backend it will not work.

If I misunderstood your question, please add more info.

Title: Re: User login module not working...
Post by: ROUBOS on June 28, 2012, 19:36:19
Once someone tries to log in using the medule, once they hit sign in, it loads the root page http://www.chalkitis.gr

but the problem is that the root page is not index.php, but an index.html which has a flash intro. and so they don't get loged in.

When they log in through the loging page (not the module on the right), it reloads the same page and displays the message gor the successful login
Title: Re: User login module not working...
Post by: apkoutsou on June 28, 2012, 21:24:41
This is happening because, having enabled the SEO Pro, mod_login translates your http://www.yourdomain.com/index.php to http://www.yourdomain.com/ that in turn tells your server to read index.html.

You may try this, if you are using version 2009.2:
Edit the file /modules/mod_login.php and change line 166 to:

$action = $mainframe->secureURL($action.'index.php');

This way you will be sure index.php is called and not index.html
Title: Re: User login module not working...
Post by: ROUBOS on June 29, 2012, 01:04:15
using version 2009.3
Title: Re: User login module not working...
Post by: xmanhattan on June 29, 2012, 09:08:06
Yes, what apkoutsou says sounds correct since you decided to use flash in that way.  You must modify the login module.

By the way, nice design.
Title: Re: User login module not working...
Post by: ROUBOS on June 29, 2012, 10:10:48
thank you :)
I will try to modify the login module