Paid affiliate advertisement

registration toboggan

mcsolas - June 15, 2009 - 16:27

I am working on a new site which revolves around easy user registration. I've been searching all over and found a few posts on configuring the registration forms.. but I haven't found a way to easily make this type of registration possible on drupal sites.. I think it would be a nice addition to the module library.

The http://drupal.org/project/logintoboggan project and configured it to assign a "pre-authorized" role to new registrations, and forward them to another page on login. This part is working fine.

I am looking to customize the registration form so that:
1. the form only asks for: name, phone and email. ( this means I need to hide the username input, usernames for this site are not that important as I am using login toboggan to enable login via email )
2. autogen username (if needed) and password.
3. hide all username/password related fields during registration.

I liked this suggestion out of another thread which was helpful in getting me this far.

http://drupal.org/node/480154#comment-1658384
With a little bit of mucking around in the Logintoboggan code (or writing a small custom module, perhaps using hook_user), you can probably set the username to their email address automatically. I'm pretty sure you could prevent the username field from getting sent to the browser at all, and you could certainly hide it using display: none in your CSS. From their end, it's like they've never chosen a username.

Do you you think this might be a good module (registration toboggan?) or addition to the existing one?
Also, which other modules might this involve, the only item I can think of is adding the fields to the user profile.. I wasn't sure which one to use for that part.

I'm willing to offer a bounty of $250 to get the project rolling.

Asking someone for their name

Garrett Albright - June 16, 2009 - 04:11

Asking someone for their name instead of a username on the registration or log in forms can be done easily at the translation layer, with no custom modules. Add this to your site's settings.php file:

$conf['locale_custom_strings_en'] = array(
  'Username' => 'Name',
  'Enter your @s username.' => 'Enter your name.',
  'Enter the password that accompanies your username.' => 'Enter the password that accompanies your name.',
  'Sorry, unrecognized username or password. <a href="@password">Have you forgotten your password?</a>' => 'Sorry, unrecognized name or password. <a href="@password">Have you forgotten your password?</a>',
  'Username or e-mail address' => 'Name or e-mail address',
);

Steps 2 and 3 will require some custom development, though.

Check out

noahb - June 16, 2009 - 05:57

Check out http://drupal.org/project/realname and in particular this issue (http://drupal.org/node/433158) where I've posted an add-on module to the realname module that auto generates a username from the fields specified as a user's realname.

Assigned.

mcsolas - June 16, 2009 - 14:36

I appreciate the responses and will keep an eye on this thread for any additional feedback on this new project.

I got a pm this morning and I have found someone to assign the bounty, I think this project is getting underway.

I will post as this one develops.

---------------------------
www.crsurfcam.com

 
 

Drupal is a registered trademark of Dries Buytaert.