Hello there!
In old version I used a code for autologin but now it doesn't work. Can anyone help me?
This was the code:
Find this line in components/com_comprofiler/comprofiler.php:
[code:1]echo "\n<div>" . implode( "</div>\n<div>", $messagesToUser ) . "</div>\n";[/code:1]
Replace with:
[code:1]
$options = array();
$options = false;
$credentials = array();
$credentials =$username;
$password = cbGetParam( $_POST, 'password', '');
$credentials = $password;
global $mainframe;
$error = $mainframe->login($credentials, $options);
//here you can add the default page after registration where
www.site.com Is your redirect page after registration for all users.
header( 'Location:
www.site.com/index.php?option=com_comprofiler') ;[/code:1]
Post edited by: harisg7, at: 2010/12/07 18:05