User information

As site member I want to be able to view details about other site members, such as real name, a user image and in which country they live. It should be possible to enter this information when creating an account on the site. This is important since it makes it easier to get to know the people I'm cooperating with on the website.

How to Demo: 
  1. As anonymous visitor, create a new account on the website. Verify that it is possible to enter real name, upload a user image, and enter which country you live in.
  2. Verify that your user information is displayed when viewing the new account. (Copy the URL for use in the next step – the unique URL for this user account can be found by going to the user edit page and copying all but the /edit part of the path.)
  3. Log out. As anonymous visitor, verify that you cannot access the page with the user information. (Manually paste the URL into your browser.)
  4. Log in as another user. Verify that you can view the user information for the newly created account.
Required Preparations: 
  • An empty Drupal site.
Additional Comments: 
  • The default picture field for user accounts cannot be used in this case, since there is no easy way of having it appear in the user registration form.
  • Whenever adding fields to user accounts, it is sensible to have help texts letting the end user know if the information will be displayed publicly or not.
Modules: 
Downloads: 
AttachmentSize
5.5 KB
Suggested Solution: 
  1. Go to the account settings on your site, and change the registration settings to allow people to register without administrator approval. Also turn off the default image used for user accounts. (See other user account settings in the users and permissions chapter.)
  2. Go to the manage fields tab on the account settings page. Add a new text field with the label real name. Give it a help text and set it to be displayed in the user registration form. (See comment and user account fields plus adding new fields, in this chapter.)
  3. Add another field, for user images. Add a help text, and have the field being displayed on the user registration form.
  4. Add a last text field, for country. Provide it with a help text – and have it displayed on the user registration form.
  5. Change the permission settings to allow all authenticated users to view the profile pages.
Solution Video: