Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By luyendao on
Right now the registration in drupal is just user name + email, how do I modify the registration include more fields, like which country are you from? interests etc...i guess this would also reflect in the user profile, which at the moment is quite scarce.
Can anybody point me in the right direction? Thanks!
Comments
You actually hit the nail on the head... :)
...when you said the profile was quite scarce.
Check out the profile module.
With it, you can add additional profile information and also select whether or not it should be displayed on the registration form as well.
...
Thanks a ton webchick ! I probably should have looked around harder, but i'm glad there was some help around!
I do have one more question, i've added a bunch of new fields, and i'm so happy with that. Now if I wanted to theme the registration form, how would I go about that?
Do I create a new .tpl file, like there for nodes and pages? I'm sure there must be a way!
Many thanks once again.
Looking for same solution.
Hi,
If you resolve it, plz post it here. Looking for same solution.
Sunny
www.gleez.com
Theming is one area...
...of Drupal that I'm not too familiar with yet, unfortunately. :(
But, it's possible you could use the strategies outlined in Themeing front page and others to do this. Something like this in page.tpl.php:
Maybe someone has a better answer than that. :)
...
I was able to theme the user profile page, based on the link you provided webchick...that was pretty straight forward.
The basic idea is that you redirect the Drupal call by adding some code in template.php
Then you have another php file that takes the variables, and re-styles them the way you want, just like it's done for nodes,pages etc...
I'll post more if I manage to do it!