One of my client always like to sent mail to his members with updates of the website to make them participate. For long time he was demanded me a auto login system in joomla.
Today at last we got the solution how we can do it. I am sharing this with you hope that may help a lot of people.
function FnAutoLogin($ActivateID)
{
global $mainframe;
$db = JFactory::getDBO();
$Password = FnGenerateNewPassword(’9′); // Generating joomla password
//Fetching User Details according to Activation ID start
$query = “select * from #__users where activation=’”.$ActivateID.”‘”;
$db->setQuery( $query );
$UserDetailsInArray = $db->loadObjectList();
//Fetching User Details according to Activation ID end
if(isset($UserDetailsInArray[0]))
{
$TempPassword = $UserDetailsInArray[0]->password; // Storing user actual password
$query1 = “update #__users set password=’”.$Password.”‘ where activation =’”.$id.”‘”; //Updating temporary password
$db->setQuery( $query1 );
if($db->query())
{
// User Login start
$usersipass[’username’] = $UserDetailsInArray[0]->username;
$usersipass[’password’] = ‘9′;
$mainframe->login($usersipass);
// User Login end
$query1 = “update #__users set password=’”.$TempPassword.”‘, block=0 where activation =’”.$ActivateID.”‘”; //Update user actual password againand redirect to your appropriate page you like ![]()
$db->setQuery( $query1 );
if($db->query())
{
$Msg = ‘Please upload your picture to see your profile.’;
$mainframe->redirect( ‘index.html’,$Msg);
}
}
}
else
{
echo ‘You don\’t have account yet? <a href=”/join.html”>Join Us Today </a>’;
}
}
Hope this will help a lot of developer to make auto login system in joomla.
Joomla1.5 is basically the higher version of joomla 1.0 and the open source content management system.It is one of the most successful cms system here internet world.
If you want see my joomla1.5 cms website you can check it here in this url.
http://subikar.justforjoomla.com
You are thinking why I am writing all this stuff to here. Am I wasting my time ?
Nopes ![]()
Actually every one has a dream now a days have one personal website but without investing money. So I will ask them to have your website just today like me. Go to http://www.Justforjoomla.com and have your cms website today.
This is a short story a year back. I am designing a floating orkut system. Where user can scrap to other, can plan for there next blog post, can send private message to author of the blog and many more. At that time my boss Aji Issac Mathew plan to buy a domain for this tool. Today this tool is quite famous most of the blogger are using this tool and happy. Now the next phase of myblogplanner releasing now you will get thing here to do. Plan your blog to scrap your friend send private message to add your friend in your friend list. You can add video, audio, share your knowledge to other and make your blog known to the world a little time expand.
I hope you will enjoy to became part of this community and stay forever.
Best of luck
This is Subikar, an IT professional trying to run a website for the common net-savvy people . I have taken this decision only after being in the web-development industry for over 2 years. I have chosen the ‘myblogplanner’ domain as a platform, wherein I would be able to support the users with all the functionalities of the web-world & they might grasp it quite smoothly. I do not wish to say muchamidst the development of my site , but would like to have more of such opportunities ahead of us. It would just take a week’s time before I could launch this platform in order to let you feel the buzz around a newborn community!
