Skip to Content

Configure, Add and Edit User Profile Fields

Categories:

To configure profiles, click Administer » User management » Profiles. The following goes into detail about how to configure individual fields for users to type in their information.

Bryght sites come with a default set of fields so that site users can add profile information. Users are not required to fill in any of the blanks, but the ones with an asterisk (*) are shown at the new user registration screen.

The profiles page lists the fields currently defined, with the following columns:

  • Title: the user visible label
  • Name: the internal, unique form name used for the field
  • Type: the field type (see "Field Types" below for definitions)
  • Category: area the field will be grouped under

The Operations column allows you to edit or delete fields. At the bottom of the fields table is a list of all the different field types that can be added. Clicking on a field type will add a new field of that type.

Adding or Editing Fields

Adding or editing a field will show a form with the following fields. Field type-specific entries are explained in the description of the field type:

  • Category: each category will display as a separate tab when editing a user profile. The fields are grouped using this category name as a header in the user's profile page display.
  • Title: the user label for the field
  • Form Name: will contain "profile_" by default, and is the internal name for the field. It cannot contain spaces and must be unique. An example entry for a form field titled "Home Phone" would be "profile_home_phone".
  • Explanation: an explanation or description of the field that will displayed to the user underneath the field.
  • Weight: affects the order in which the fields are displayed in a category.

Permissions, Visibility, and Required Fields

Each of the fields can be set to have four separate visibility options:

  1. Hidden profile field, only accessible by administrators, modules and themes.: administrators can't see these fields, and they will not appear on the registration page if you make that setting (see the section below). Only themes and modules (and other internal systems) can access the data in these fields.
  2. Hidden profile field, only accessible by administrators, modules and themes: no one except for site administrators and the user herself can see this field; "privileged users" means they have the "administer users" permission.
  3. Private field, content only available to privileged users:
  4. Public field, content shown on profile page but not used on member list pages: anyone visiting a user's profile will see these fields.
  5. Public field, content shown on profile page and on member list pages: viewable on member overview pages, as well as being visible on the profile page.

(The Page Title option is only applicable to the "freeform list" field type, which is explained below)

In addition to the above viewing permissions, you can apply three other options:

  • Form will auto-complete while user is typing: when a user types in profile info, it will search existing information to find a match that someone else has already typed in.
  • he user must enter a value: any field can be made required by checking this box.
  • Visible in user registration form: you can choose to display this field as part of the user registration process by checking this box.

*Note: Currently, when users use a distributed authenticaiton method to sign in (using a Drupal login or a SXIP login), their account is created immediately without going through a registration screen. This means that even if some fields are listed as required, the user will not be forced to fill them out unless they try to edit their profile, at which point they will be prompted to fill out the required fields that are empty.

Field Types

The following field types are available:

  • single-line textfield: entry of text on a single line; e.g. City
  • multi-line textfield: multi-line text box; e.g. Biography or About Me section
  • checkbox: basic on/off checkbox whether a user agrees/disagrees with the title of the field; e.g. I would like to be contacted by phone
  • list selection: dropdown list of choices from which the user can choose one option. The add field form has a Selection Options field. Each option should be on a separate line; e.g. Favourite Colour, with selection options of "red", "blue", "green", etc.
  • freeform list: a large textarea where the user is prompted to enter a list of words separated by commas. This special freeform list box allows users to be searched/filtered by the words they list here. Each word is hyperlinked to a filter of the user list that displays all other profiles with the same word. This is where Page Title is used; e.g. on this Bryght support site, here is a list of all the microcontent enthusiasts. The Page Title field was filled out with %value Enthusiasts and the local name of the freeform list field is called "Personal Keywords".
  • URL: a web address; e.g. home page
  • date: a date field; e.g. Birthday

Comments

Is this for Drupal 5 only?

Hmm. I don't see these options, but H2otown.info is on 4.7. Is this for 5 only?

I've been having a lot of fun adding the userpoints and buddylist modules to my site, and it made me think, gee, people would be more likely to use buddylist if they could easily browse user profiles...and the user profiles on my site should be improved.

So I experimented with:

Bio+CCK

and

Usernode/Nodeprofile/Nodefamily+CCK

I couldn't pull the content type provided by bio into CCK to modify it, so that didn't help.
I learned about the Usernode/Nodeprofile/Nodefamily+CCK recipe from this tutorial, but while trying it I got utterly confused. (I did manage to create usernodes that have autonodetitles, which is pretty cool. But right now the usernodes just have the user's username in them -- and that's it. Not too useful).

Experimenting with CCK is very tantalizing. I'm hoping the new Pro Drupal Development book covers CCK -- the two books on Drupal I have don't, and the existing docs are good, but haven't gotten me to the point of doing really useful stuff yet.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.