add check box of "Keep me logged in" in login form
Moderator: ooffick
Forum rules
Please use the official Bug Tracker to report a bug: https://issues.joomla.org
Please use the official Bug Tracker to report a bug: https://issues.joomla.org
-
- Joomla! Apprentice
- Posts: 20
- Joined: Sat Dec 22, 2012 6:53 am
add check box of "Keep me logged in" in login form
in login form i want to make a check-box foe keep me logged in. how can i achieve this
- sitesrus
- Joomla! Ace
- Posts: 1469
- Joined: Mon Nov 12, 2012 10:48 pm
Re: add check box of "Keep me logged in" in login form
The login box already contains a "Remember me" feature/check box which is identical to what you want. If you want to change the wording do a language override and change it to something else.
Go into the language manager, override, and search for the language string and alter the constant to whatever you want.
Go into the language manager, override, and search for the language string and alter the constant to whatever you want.
I like working with Joomla . I offer the following professional services: Custom extension development, SEO/marketing, maintenance/support, security and WCAG audits, and will work on websites at a reasonable rate.
-
- Joomla! Apprentice
- Posts: 20
- Joined: Sat Dec 22, 2012 6:53 am
Re: add check box of "Keep me logged in" in login form
i has been create new menu form users manger->login form but it not showing the check box
- sitesrus
- Joomla! Ace
- Posts: 1469
- Joined: Mon Nov 12, 2012 10:48 pm
Re: add check box of "Keep me logged in" in login form
Hi,
Did you create the correct menu type? You can also load a page with a login module on it as well.
Please provide a screen shot of the issue in question.
Also, make sure you don't have a third party template that is using overriding to change the appearance of the login.
Did you create the correct menu type? You can also load a page with a login module on it as well.
Please provide a screen shot of the issue in question.
Also, make sure you don't have a third party template that is using overriding to change the appearance of the login.
I like working with Joomla . I offer the following professional services: Custom extension development, SEO/marketing, maintenance/support, security and WCAG audits, and will work on websites at a reasonable rate.
-
- Joomla! Apprentice
- Posts: 20
- Joined: Sat Dec 22, 2012 6:53 am
Re: add check box of "Keep me logged in" in login form
no i am using correct menu item and nothing is override this form.
screen short attached
screen short attached
You do not have the required permissions to view the files attached to this post.
-
- Joomla! Enthusiast
- Posts: 160
- Joined: Thu Dec 31, 2009 12:04 am
Re: add check box of "Keep me logged in" in login form
Hi Neha, Did you get a solution to this problem?
thanks,
Geoff
thanks,
Geoff
-
- Joomla! Apprentice
- Posts: 20
- Joined: Sat Dec 22, 2012 6:53 am
Re: add check box of "Keep me logged in" in login form
yes.
in user controller there is login function there is remember me code is there i just get the value of check box
e.g:- $data['remember'] = JRequest::getString('remember', '', 'post', JREQUEST_ALLOWRAW);
then
// Get the log in options.
$options = array();
if($data['remember']){
$options['remember'] = $this->input->getBool('remember', true);
}else{
$options['remember'] = $this->input->getBool('remember', false);
} .
it's working......
in user controller there is login function there is remember me code is there i just get the value of check box
e.g:- $data['remember'] = JRequest::getString('remember', '', 'post', JREQUEST_ALLOWRAW);
then
// Get the log in options.
$options = array();
if($data['remember']){
$options['remember'] = $this->input->getBool('remember', true);
}else{
$options['remember'] = $this->input->getBool('remember', false);
} .
it's working......
-
- Joomla! Enthusiast
- Posts: 160
- Joined: Thu Dec 31, 2009 12:04 am
Re: add check box of "Keep me logged in" in login form
OK, I think I got it. What version of Joomla are you using. Syntax for J 2.5.9 appears to be:
if($data['remember']){
$options['remember'] = JRequest::getBool('remember', true);
}else{
$options['remember'] = JRequest::getBool('remember', false);
}
Yes?
thanks!
Geoff
if($data['remember']){
$options['remember'] = JRequest::getBool('remember', true);
}else{
$options['remember'] = JRequest::getBool('remember', false);
}
Yes?
thanks!
Geoff
-
- Joomla! Apprentice
- Posts: 20
- Joined: Sat Dec 22, 2012 6:53 am
Re: add check box of "Keep me logged in" in login form
i am using j3.0.
-
- Joomla! Enthusiast
- Posts: 160
- Joined: Thu Dec 31, 2009 12:04 am
Re: add check box of "Keep me logged in" in login form
OK. I'm still not seeing that field on the Login page Perhaps there's an override somewhere?
thanks,
Geoff
thanks,
Geoff
-
- Joomla! Apprentice
- Posts: 20
- Joined: Sat Dec 22, 2012 6:53 am
Re: add check box of "Keep me logged in" in login form
you have to create new field in the login form