Bueno, para hacer auto-login después que el usuario se registra en Community Builder:
1. No tiene que estar habilitada la confirmación por e-mail.
2. En components/com_comprofiler/comprofiler.php, línea 1388 que dice echo \”n” . implode( “\n”, $messagesToUser ) . “\n”;
Sustituimos por:
$options = array();
$options[‘remember’] = false;
$credentials = array();
$credentials[‘username’] =$username;
$password = cbGetParam( $_POST, ‘password’, ”);
$credentials[‘password’] = $password;
global $mainframe;
$error = $mainframe->login($credentials, $options);
//here you can add the default page after registration ie: http://www.inowweb.com
$return_page=”index.php”;
//message that will appear after registration
$mainframe->redirect($return_page, ‘Registration Completed.’);
hello!,I lofe your writing very much! percentage wwe keep in touch
extra about your post on AOL? I need a specialist on this space to solve my problem.
May be that’s you! Having a look forward to peer you.