I found some interesting part about the auto-login hack.
Before I applied this hack to my site, people just need to enter my URL (for example: http://www.abc.com), and it would redirect users to my news module.
But, when I applied the hack to my website, It couldn't redirect users to any module, in other worlds, I couldn't use any module to be my first page.
Is there any solution for this problem? Thank you.
Hmmm.
In my environment, it works fine with any start module.
I guess this is a FAQ of header('Location').
You'd better check some output is started before index.php
It is so weird..
I still can't make it work.
Here is some error messages that shows on my screen.
I hope this will help.
Thank you.
Warning [PHP]: session_start(): Cannot send session cookie - headers already sent by (output started at C:\business\XOOPS\language\tchinese\global.php:1) in file C:\business\XOOPS\include\common.php line 178
Warning [PHP]: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\business\XOOPS\language\tchinese\global.php:1) in file C:\business\XOOPS\include\common.php line 178
Warning [PHP]: Cannot modify header information - headers already sent by (output started at C:\business\XOOPS\language\tchinese\global.php:1) in file C:\business\XOOPS\include\common.php line 257
Warning [PHP]: Cannot modify header information - headers already sent by (output started at C:\business\XOOPS\language\tchinese\global.php:1) in file C:\business\XOOPS\index.php line 39
hi Zombie.
Warning [PHP]: session_start(): Cannot send session cookie - headers already sent by (output started at C:\business\XOOPS\language\tchinese\global.php:1) in file C:\business\XOOPS\include\common.php line 178
Warning [PHP]: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\business\XOOPS\language\tchinese\global.php:1) in file C:\business\XOOPS\include\common.php line 178
Warning [PHP]: Cannot modify header information - headers already sent by (output started at C:\business\XOOPS\language\tchinese\global.php:1) in file C:\business\XOOPS\include\common.php line 257
Warning [PHP]: Cannot modify header information - headers already sent by (output started at C:\business\XOOPS\language\tchinese\global.php:1) in file C:\business\XOOPS\index.php line 39
It makes it quite clear.
When you modify language/tchinese/global.php manually, you added a blank line.
Try to restore original global.php first.
great!! when I put my orginal language file back, it worked. Thanks a lot, GIJOE!!
However, when I tried to modify the languale (global.php), it gave me the same error messages.
even I deleted the new definitions, I still got the same error messages. So, the only thing I could do was using the old file to overwite the new one.
So, how can add the 2 new definitions?
Thank you again!!
hi Zombie.
I recommend you to use some better text-editors.
Another solution:
- Edit your template system_userform.html and system_block_login.html
- Replace directly <{$smarty.const._REMEMBERME}> to "Rememer me" in your word.
OK, Thanks a lot, GIJOE..
it's really helpful.