Meanwhile I solved it.
For people that are intrested in how I did it:
1) Install recall extension
2) Comment everything in DCA of recall(as we don't need these options)
3) Add to modules/frontend/languages/??/default.php
Code:
$GLOBALS['TL_LANG']['MSC']['remember'] = 'Remember Me';
4) Change your mod_login template (in my case mod_login_1cl.tpl). I added:
Code:
<input type="checkbox" name="remember" id="remember" /><?php echo $this->remember; ?>
5) Edit modules/frontend/ModuleLogin.php and add AFTER line 257
Code:
$this->Template->password = $GLOBALS['TL_LANG']['MSC']['password'][0];
this:
Code:
$this->Template->remember = $GLOBALS['TL_LANG']['MSC']['remember'];
And add after line 74-75
Code:
if ($this->Input->post('FORM_SUBMIT') == 'tl_login')
{
this:
Code:
//Check: remember me?
if ($this->Input->post('remember')){
$_SESSION['remember'] = "1";
}
else{
$_SESSION['remember'] = "0";
}
6) Change Line 98 in modules/recall/Recall.php from
Code:
if (intval($user->recall)) {
to
Code:
if ($_SESSION['remember'] == "1") {
And it works! Yes, this is hard coding, and I'm messing up main files, but if there are any tips to not mess up the main files, they are for sure very very very welcome!
What should you do for example, to use another file to add something to ModuleLogin.php? Or is it impossible?
Bookmarks