The Joomla! Forum ™



Forum rules


Please use the official Bug Tracker to report a bug: http://issues.joomla.org



Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Thu Dec 27, 2012 9:34 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Dec 22, 2012 6:53 am
Posts: 20
in login form i want to make a check-box foe keep me logged in. how can i achieve this


Top
 Profile  
 
PostPosted: Fri Dec 28, 2012 2:00 pm 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Mon Nov 12, 2012 10:48 pm
Posts: 1270
Location: Winnipeg, MB
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.

_________________
I like working with Joomla :)
PM, Email, Contact Via Site, sitesrus @ Skype - Free Support
However any contact attempt without details as to why will be ignored...


Top
 Profile  
 
PostPosted: Wed Jan 02, 2013 6:54 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Dec 22, 2012 6:53 am
Posts: 20
i has been create new menu form users manger->login form but it not showing the check box


Top
 Profile  
 
PostPosted: Wed Jan 02, 2013 2:53 pm 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Mon Nov 12, 2012 10:48 pm
Posts: 1270
Location: Winnipeg, MB
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.

_________________
I like working with Joomla :)
PM, Email, Contact Via Site, sitesrus @ Skype - Free Support
However any contact attempt without details as to why will be ignored...


Top
 Profile  
 
PostPosted: Wed Jan 09, 2013 8:57 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Dec 22, 2012 6:53 am
Posts: 20
no i am using correct menu item and nothing is override this form.
screen short attached


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
PostPosted: Fri Mar 01, 2013 4:33 am 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Thu Dec 31, 2009 12:04 am
Posts: 107
Hi Neha, Did you get a solution to this problem?

thanks,
Geoff


Top
 Profile  
 
PostPosted: Fri Mar 01, 2013 4:40 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Dec 22, 2012 6:53 am
Posts: 20
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...... :pop


Top
 Profile  
 
PostPosted: Fri Mar 01, 2013 4:59 am 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Thu Dec 31, 2009 12:04 am
Posts: 107
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


Top
 Profile  
 
PostPosted: Fri Mar 01, 2013 5:04 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Dec 22, 2012 6:53 am
Posts: 20
i am using j3.0.


Top
 Profile  
 
PostPosted: Fri Mar 01, 2013 5:08 am 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Thu Dec 31, 2009 12:04 am
Posts: 107
OK. I'm still not seeing that field on the Login page Perhaps there's an override somewhere?

thanks,
Geoff


Top
 Profile  
 
PostPosted: Fri Mar 01, 2013 6:12 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Dec 22, 2012 6:53 am
Posts: 20
you have to create new field in the login form


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 



Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group