Wednesday, December 26, 2007

How to: Add registration fields using profile module

How to add extra fields to drupal default registration form in your site?

Its very simple using profile module:
Go to Administer » Site building then choose modules and enable profile module,
save changes.
Now,
go to Administer » User management then choose profiles - here you will see a list of field types which you can add
* single-line textfield
* multi-line textfield
* checkbox
* list selection
* freeform list
* URL
* date

Add the fields which you wish the user to fill in the registration form of your site.

Lets see few examples:

1) If you wish your user to enter some realname field, then add a 'single-line textfield' & fill in the required information like title etc etc & at last click on 'Visible in user registration form' to allow this field to appear in registration form & then save it.
Here theres your 'realname' field with other drupal registration fields.

2) If you wish to add a text area of say 5x5, then add 'multi-line textfield' & follow the same procedure as above.

3) checkbox - this can be used for giving terms & conditions options

7 comments:

  1. thanks for giving me very good information regarding how to add extra fields in registration form.

    by the way,i would like to know how to install drupal in my system.if possible pls mention navigation od installation.

    Thanks in Advance,
    Chakri,
    Hyderabad

    ReplyDelete
  2. Hi Chakri,

    Use WAMP Server from www.wampserver.com
    or
    xampp from http://www.apachefriends.org/en/xampp.html
    or
    web developer suite from
    http://www.devside.net/

    Once you are able to run PHP, MySql & Apache successfully as per the instructions just follow drupal installation guidelines.

    If you are still stucked at any point feel free to drop a message here....

    ReplyDelete
  3. Hi Sree, how can i stop others to do not create their own logo,titles,fields and registration forms and total site. i mean i only wants admin rights on total site.how can i stop other people. at present homepage seems,any one can do change settings know. that's why i am searching how to solve this problem.i hope you got what i am asking.

    bye,chakri

    ReplyDelete
  4. hi,

    you should create an admin role & then assign access rights ...
    check admin>>user management

    ReplyDelete
  5. Hi sree, if others can open their account, they should not see the steps to set up their website. they should see only what i designed right.so how can i delete that all steps? once users logged into their account at present it should shown just blank page or under construction. so how can i did this.
    thank you,chakri

    ReplyDelete
  6. go to admin> site maintenance ...
    make it offline setting your message....
    Later admin can login using http://www.example.com/http:/?q=user

    ReplyDelete
  7. Hi Sree, Great to see your Answers.
    How Can I add Registration Form after entering into User Account.

    ReplyDelete