Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Customisable user profiles: Difference between revisions

From MoodleDocs
Line 44: Line 44:


=== Signup page ===
=== Signup page ===
 
The signup form will be changed to include all required custom profile fields.


==See also==
==See also==
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=55814 Should I hack the mdl_user table, or add my own?] forum discussion
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=55814 Should I hack the mdl_user table, or add my own?] forum discussion

Revision as of 21:55, 5 February 2007

Overview

The main goal is to allow administrators to add/edit user profile fields. These fields may also be categorised, ordered, locked, hidden.

Database Changes

New tables

There are 3 new tables:

  • user_info_field
  • user_info_category
  • user_info_data

Splitting the current user table

In version 1.9, the following fields will be moved from the user table and placed in a category named optional

  • icq
  • skype
  • yahoo
  • aim
  • msn
  • phone1
  • phone2
  • institution
  • department
  • address
  • url

The remaining fields will remain hardcoded in the user profile form.

Admin's Interface

Various field flags

  • required - a required field. Fields marked as required will also be displayed in the signup form;
  • locked - can the user edit this field?;
  • visible - can the user see this field?;

Adding/Editing fields

Link to the custom profiles interface from the site administration block

User's Interface

User profile page

Signup page

The signup form will be changed to include all required custom profile fields.

See also