Moodle
  1. Moodle
  2. MDL-474

allow customizable fields in user profile

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.8
    • Component/s: General
    • Labels:
      None
    • Environment:
      All
    • Rank:
      37255

      Description

      Allow admin-customizable fields in user profile (adding new fields and making them required or optional).

        Activity

        Hide
        Martin Dougiamas added a comment -

        From Martin Dougiamas (martin at moodle.com) Saturday, 31 May 2003, 08:16 PM:

        Yes, thanks, I've been thinking the same.

        From Martin Dougiamas (martin at moodle.com) Friday, 13 June 2003, 09:01 PM:

        Required, optional or not shown (for admin-private fields).

        From Martin Dougiamas (martin at moodle.com) Wednesday, 28 July 2004, 12:28 PM:

        See this discussion for more information

        <a href=http://moodle.org/mod/forum/discuss.php?d=10467>http://moodle.org/mod/forum/discuss.php?d=10467</a>

        From Gustav Delius (gwd2 at york.ac.uk) Wednesday, 25 August 2004, 09:46 PM:

        I have assigned this to me and hope to act on it in September.

        From Martin Dougiamas (martin at moodle.com) Wednesday, 25 August 2004, 10:31 PM:

        Thumbs up!

        From David Keenan (ict_support at kilmarnock.ac.uk) Thursday, 18 November 2004, 03:58 AM:

        I think this is a great idea and would 100% support it, it would do away with my feature request. MDL-2189 - New Feature: User Registration Date in Profile.

        From David Keenan (ict_support at kilmarnock.ac.uk) Thursday, 18 November 2004, 03:59 AM:

        It would also be a good idea to have maybe a tick box beside the information so you can either show the information on the profile view or not? What does anyone think about this?

        From Martin Dougiamas (martin at moodle.com) Thursday, 18 November 2004, 10:57 AM:

        Yes, exactly, see the third comment on this bug.

        From Gustav Delius (gwd2 at york.ac.uk) Thursday, 18 November 2004, 01:37 PM:

        Thanks for the reminder. I guess I said I would do something about this in September before our las pre-term update. Unfortunately it didn't happen. I hope now to do it before the next update in January. If someone else is quicker that would be fine.

        From Martin Dougiamas (martin at moodle.com) Thursday, 18 November 2004, 01:42 PM:

        Don't worry about it, I TOTALLY understand how this can pile up. Thanks for the news.

        From Gustav Delius (gwd2 at york.ac.uk) Tuesday, 7 December 2004, 05:06 PM:

        Related discussions on the forums:

        http://moodle.org/mod/forum/discuss.php?d=14676

        http://moodle.org/mod/forum/discuss.php?d=15967

        From Gustav Delius (gwd2 at york.ac.uk) Sunday, 9 January 2005, 03:09 PM:

        I finally found the old discussion at http://moodle.org/mod/forum/discuss.php?d=4023 again.

        It doesn't currently look likely that I will get around to this any time soon so so I am re-assigning this back to Martin just in case moodle.com wants it.

        From Martin Dougiamas (martin at moodle.com) Tuesday, 11 January 2005, 07:01 PM:

        Each field should include information about how to display that field (with a short HTML template that includes the field variable).

        This would allow a Skype field that includes an image button, for example.

        From Jens Gammelgaard (jens.gammelgaard at optimon.dk) Thursday, 13 January 2005, 09:19 PM:

        So here is my draft for the user edits and views. Look forward to hear your feedback and new ideas refined from the attachment.

        From non non (nbhansen at midway.uchicago.edu) Sunday, 10 April 2005, 08:28 AM:

        I like Jens' mockup. I'm just wondering if the control should be more specific. For example, perhaps certain fields could be made visible only to admins and/or teachers when viewing a specific profile. And who should have control over this-admins only, or teachers?

        From Martin Dougiamas (martin at moodle.com) Tuesday, 31 May 2005, 12:55 AM:

        Note to self: when we have this, we can remove all fields from email signup page except username, email and name, since all the rest will be prompted for after login.

        Show
        Martin Dougiamas added a comment - From Martin Dougiamas (martin at moodle.com) Saturday, 31 May 2003, 08:16 PM: Yes, thanks, I've been thinking the same. From Martin Dougiamas (martin at moodle.com) Friday, 13 June 2003, 09:01 PM: Required, optional or not shown (for admin-private fields). From Martin Dougiamas (martin at moodle.com) Wednesday, 28 July 2004, 12:28 PM: See this discussion for more information <a href= http://moodle.org/mod/forum/discuss.php?d=10467 > http://moodle.org/mod/forum/discuss.php?d=10467 </a> From Gustav Delius (gwd2 at york.ac.uk) Wednesday, 25 August 2004, 09:46 PM: I have assigned this to me and hope to act on it in September. From Martin Dougiamas (martin at moodle.com) Wednesday, 25 August 2004, 10:31 PM: Thumbs up! From David Keenan (ict_support at kilmarnock.ac.uk) Thursday, 18 November 2004, 03:58 AM: I think this is a great idea and would 100% support it, it would do away with my feature request. MDL-2189 - New Feature: User Registration Date in Profile. From David Keenan (ict_support at kilmarnock.ac.uk) Thursday, 18 November 2004, 03:59 AM: It would also be a good idea to have maybe a tick box beside the information so you can either show the information on the profile view or not? What does anyone think about this? From Martin Dougiamas (martin at moodle.com) Thursday, 18 November 2004, 10:57 AM: Yes, exactly, see the third comment on this bug. From Gustav Delius (gwd2 at york.ac.uk) Thursday, 18 November 2004, 01:37 PM: Thanks for the reminder. I guess I said I would do something about this in September before our las pre-term update. Unfortunately it didn't happen. I hope now to do it before the next update in January. If someone else is quicker that would be fine. From Martin Dougiamas (martin at moodle.com) Thursday, 18 November 2004, 01:42 PM: Don't worry about it, I TOTALLY understand how this can pile up. Thanks for the news. From Gustav Delius (gwd2 at york.ac.uk) Tuesday, 7 December 2004, 05:06 PM: Related discussions on the forums: http://moodle.org/mod/forum/discuss.php?d=14676 http://moodle.org/mod/forum/discuss.php?d=15967 From Gustav Delius (gwd2 at york.ac.uk) Sunday, 9 January 2005, 03:09 PM: I finally found the old discussion at http://moodle.org/mod/forum/discuss.php?d=4023 again. It doesn't currently look likely that I will get around to this any time soon so so I am re-assigning this back to Martin just in case moodle.com wants it. From Martin Dougiamas (martin at moodle.com) Tuesday, 11 January 2005, 07:01 PM: Each field should include information about how to display that field (with a short HTML template that includes the field variable). This would allow a Skype field that includes an image button, for example. From Jens Gammelgaard (jens.gammelgaard at optimon.dk) Thursday, 13 January 2005, 09:19 PM: So here is my draft for the user edits and views. Look forward to hear your feedback and new ideas refined from the attachment. From non non (nbhansen at midway.uchicago.edu) Sunday, 10 April 2005, 08:28 AM: I like Jens' mockup. I'm just wondering if the control should be more specific. For example, perhaps certain fields could be made visible only to admins and/or teachers when viewing a specific profile. And who should have control over this-admins only, or teachers? From Martin Dougiamas (martin at moodle.com) Tuesday, 31 May 2005, 12:55 AM: Note to self: when we have this, we can remove all fields from email signup page except username, email and name, since all the rest will be prompted for after login.
        Hide
        Martin Dougiamas added a comment -

        Go Shane!!!!

        Show
        Martin Dougiamas added a comment - Go Shane!!!!
        Hide
        Richard Eagleton added a comment -

        If I were designing this, I would probably try to do something similar to the Database module; allowing the definition of fields by an administrator, and then the fields would appear as the optional fields do now and would have the same options for locking, hiding, etc.

        I see a lot of people talking about adding extra fields but it would be simpler to create the custom field section. Is there anybody working on this (such as Jordan Ilott in http://moodle.org/mod/forum/discuss.php?d=10467%3Ehttp://moodle.org/mod/forum/discuss.php?d=10467)? If not, is there anyone willing to work on it with me (looking for designers, etc.)?

        Show
        Richard Eagleton added a comment - If I were designing this, I would probably try to do something similar to the Database module; allowing the definition of fields by an administrator, and then the fields would appear as the optional fields do now and would have the same options for locking, hiding, etc. I see a lot of people talking about adding extra fields but it would be simpler to create the custom field section. Is there anybody working on this (such as Jordan Ilott in http://moodle.org/mod/forum/discuss.php?d=10467%3Ehttp://moodle.org/mod/forum/discuss.php?d=10467)? If not, is there anyone willing to work on it with me (looking for designers, etc.)?
        Hide
        Shane Elliott added a comment -

        We're working on this now. Hopefully we'll have some code put into CVS soon and some documentation. The database tables were added in 1.7 (user_info_field, user_info_category, user_info_data) but there is no interface yet - to come in 1.8.

        We're basically working on what you have described. See: http://moodle.org/mod/forum/discuss.php?d=55814

        Show
        Shane Elliott added a comment - We're working on this now. Hopefully we'll have some code put into CVS soon and some documentation. The database tables were added in 1.7 (user_info_field, user_info_category, user_info_data) but there is no interface yet - to come in 1.8. We're basically working on what you have described. See: http://moodle.org/mod/forum/discuss.php?d=55814
        Hide
        Shane Elliott added a comment -

        An update. The code for the user fields has been added to user profile pages while we changed the profile page to use the new forms class (see MDL-7024).
        The base class and main code for the profile fields is in user/profile/lib.php
        The profile field types are directories in user/profile/field/. At present 'text' and 'menu' types have been written - following the naming convention used in the database module.

        It is unlikely that the admin gui for adding the new fields will be added in 1.8. There are a number of issues that need be resolved before it can become a fully supported feature. However it is possible to manually add categories and fields to the database tables.

        Show
        Shane Elliott added a comment - An update. The code for the user fields has been added to user profile pages while we changed the profile page to use the new forms class (see MDL-7024 ). The base class and main code for the profile fields is in user/profile/lib.php The profile field types are directories in user/profile/field/. At present 'text' and 'menu' types have been written - following the naming convention used in the database module. It is unlikely that the admin gui for adding the new fields will be added in 1.8. There are a number of issues that need be resolved before it can become a fully supported feature. However it is possible to manually add categories and fields to the database tables.
        Hide
        Shane Elliott added a comment -

        Closing this issue as the code was released in 1.8.
        Follow up issue was MDL-9285 which has now been resolved.

        Show
        Shane Elliott added a comment - Closing this issue as the code was released in 1.8. Follow up issue was MDL-9285 which has now been resolved.

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: