Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-20053

Database: create ##userpicture## tag to allow the user's profile picture to be displayed

    XMLWordPrintable

Details

    • MOODLE_19_STABLE, MOODLE_20_STABLE, MOODLE_24_STABLE, MOODLE_29_STABLE
    • MOODLE_29_STABLE
    • wip-MDL-20053-master
    • Easy
    • Hide
      1. Create a database activity.
      2. A a field or two to the activity.
      3. Go to the templates.
      4. In the list template add
      5. Check that the user picture is now available in the "Available tags"
      6. Add the user picture tag to the template.
      7. Add an entry.
      8. Go to the view list and check that the user picture is displayed.
      9. Do a search using the advanced search at the bottom (or the search tab at the top).
      10. No errors are expected to be found.
      11. Delete one entry and make sure no warning/error happens
      12. Create more entries and select all
      13. Click Delete selected
      14. Make sure no error/warning is visible
      15. Click Delete and make sure all selected entries got deleted.
      Show
      Create a database activity. A a field or two to the activity. Go to the templates. In the list template add Check that the user picture is now available in the "Available tags" Add the user picture tag to the template. Add an entry. Go to the view list and check that the user picture is displayed. Do a search using the advanced search at the bottom (or the search tab at the top). No errors are expected to be found. Delete one entry and make sure no warning/error happens Create more entries and select all Click Delete selected Make sure no error/warning is visible Click Delete and make sure all selected entries got deleted.

    Description

      Similar to forum, it would be good to display a user's profile picture within the database activity module. We currently have a ##user## tag so ##userpicture## seems obvious. I am attaching a patch which implements this feature. Feel free to test the patch and provide feedback. Peace - Anthony

      Attachments

        1. data_userpicture_large.patch
          3 kB
        2. data_userpicture.patch
          2 kB
        3. MDL-20053.patch
          2 kB
        4. MDL-20053.patch
          2 kB

        Issue Links

          Activity

            People

              abgreeve Adrian Greeve
              aborrow Anthony Borrow
              Mark Nelson Mark Nelson
              David Monllaó David Monllaó
              Dave Cooper Dave Cooper
              Amaia Anabitarte, Carlos Escobedo, Laurent David, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              8 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/May/15