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

webchick’s picture

...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.

luyendao’s picture

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.

sangamreddi’s picture

Hi,

If you resolve it, plz post it here. Looking for same solution.

Sunny
www.gleez.com

webchick’s picture

...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:

if (arg(0) == 'user' && arg(1) == 'register') {
  include 'registration.tpl.php';
  return;
}

// Rest of your normal page template goes here

Maybe someone has a better answer than that. :)

luyendao’s picture

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!