Wednesday, 25 March 2009 13:28
This hack will let users auto login after completed registration . so they dont have to go and login . but you must disable the email confimation from the community builder backend
Community Builder -> Configurations -> Registrations -> Require Email Confirmation
and Set it to "NO".
no we will have to edit the components/com_comprofiler/comprofiler.php
on line 1388
echo \"n" . implode( "\n", $messagesToUser ) . "\n";
replace with
$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.’);
This works on Community builder Version 1.2
here is the comprofiler.php you can download it from here

O no, concluded to fast...
The hack is indeed not working with the password generator.
But when users put their own password in it works great. Well I can get over it but will search for a solution also.
My users do not have to put in a password because it is only for a one time survey-website, so maybe I can give the password field a default value in the code and then remove it from the registrationpage...
Thank you so much for this code. It worked like a charm in CB1.4 / j1.6 installation.
I had only to fix 2 typos in the code:
1 - double quotes in line $return_page=”index.php”;
I used: $return_page = "index.php";
2 - replaced the quotes in line $mainframe->redirect($return_page, ‘Registration Completed.’);
I used $mainframe->redirect($return_page, 'Registration Completed.');
Other than that the code worked perfectly.
Thank you so much for posting.
| < Prev | Next > |
|---|
Click Here Web Design Every great business idea takes wings with the launch of a professionally designed website. e-commerce Ecommerce is an agile and trusted business solution.














