I am looking to see how hard it is to modify the drupal registration system.

I want to have a required email field but not require the users to choose a username. As well, add optional fields like phone number.

Are there any customizations that can be done to make the registration box modal?

Ideally I would like the user to try and click on a part of the site they cannot yet access, a modal dialog appears with the registration form and once input the page would navigate to the page they were clicking on.

I am looking into the premium project... but it doesn't appear to have a stable release for drupal 6. Not sure if there is any other ways people go about building sites like this.

Comments

WorldFallz’s picture

I don't believe username can be optional, but you might want to check out the http://drupal.org/project/logintoboggan module for email login.

Not sure about the modal part though there appear to be a few modal modules:

http://drupal.org/project/modules?text=modal

grobemo’s picture

I'd recommend the Popups module (along with Logintoboggan and Login Destination) to do the modal dialog.

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.

WorldFallz’s picture

Clever idea!

mcsolas’s picture

These modules look perfect.. I am downloading them all to test out.

I see there is a few things that I can do to improve the system and start from there... and the popups api just looks cool.

I may not need to hide the username... but I dont think that will matter too much.

mcsolas’s picture

I am going over things as I enable the logintoboggan module. I read the inline setup instructions on the form and created a role "pre-authorized" and set it to be the default role on registration.

I was using a different module to do this: registration role.. but from what I am seeing.. it looks like they are going to do the same thing. I am going to remove the module and test to see how it behaves. Thanks again for pointing me in the right direction.

grobemo’s picture

While you're working on improving the user experience during registration, you might look at this tutorial on theming the user registration form, or check Google's other results for theming the registration form.

mcsolas’s picture

I am looking into the tutorials. I am going through them but not quite sure how to simply add a field like "full name" to the form. I will keep looking around in there to find my answers.

I was also searching around for autogeneration of usernames.
http://drupal.org/project/generate_username

There seems to be a few others in development and in various stages of release.

I would really like to mod the form to show a First / last name field, an email and then let it autogenerate the username.

grobemo’s picture

The Content Profile module might be helpful to you. If you're adding all these elements to the form, you'll need somewhere to store that data. I think Content Profile would give you a good way to do that.

grobemo’s picture

Actually, now that I think about it, the simplest way add something like that is with the core Profile module. Have you tried that? (It's in the optional Core modules.)