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

Libravatar (and other avatar services) support

    Details

    • Testing Instructions:
      Hide

      If you don't already have one, go to http://en.gravatar.com/ and http://www.libravatar.org/ and create two accounts each on Gravatar and Libravatar, using email addresses you control, for testing. Create (or edit) Moodle users to use these email addresses - two with Gravatar accounts, two with Libravatar accounts; one each with an uploaded user picture, and one each without. You will also want at least two other Moodle users with non-avatar email addresses, one with an uploaded picture, and another without. (Alternatively, you could simply alter fewer users, or even one user, as you go, to fulfil the various testing criteria as needed).

      Run a site upgrade at /admin/ to pick up the new "Enable Avatars" setting (leave at the default: NO, unchecked).

      1. Avatars OFF
      Examine user pictures (in user profile view and edit pages, in forums, course participants, etc.) to see that the default existing Moodle behaviour has persisted (normal user pictures, no avatar images, user can upload and change their pictures).

      2. Avatars ON, using Gravatar (default)
      Change the "Enable Avatars" to enabled (checked), and leave the "Avatar Service" setting to the default, Gravatar.
      Examine user pictures again - the user picture should now be the Gravatar image for those users with a Gravatar-enabled email address, unless they have uploaded their own image. Moodle users without a Gravatar-enabled email address should show their picture as normal (if any). For an account with a Gravatar-enabled email address that is showing a Gravatar image, uploading a user picture should override the avatar image.

      3. Avatars ON, using Libravatar
      Repeat 2, but the avatar image should be from the Libravatar service.
      Additionally, the Libravatar image should come from a local federated libravatar image server, as queried from the DNS SRV record on the domain of the user's email address, as described at http://wiki.libravatar.org/api/ We have a federated server at Catalyst that we can test this on.

      Show
      If you don't already have one, go to http://en.gravatar.com/ and http://www.libravatar.org/ and create two accounts each on Gravatar and Libravatar, using email addresses you control, for testing. Create (or edit) Moodle users to use these email addresses - two with Gravatar accounts, two with Libravatar accounts; one each with an uploaded user picture, and one each without. You will also want at least two other Moodle users with non-avatar email addresses, one with an uploaded picture, and another without. (Alternatively, you could simply alter fewer users, or even one user, as you go, to fulfil the various testing criteria as needed). Run a site upgrade at /admin/ to pick up the new "Enable Avatars" setting (leave at the default: NO, unchecked). 1. Avatars OFF Examine user pictures (in user profile view and edit pages, in forums, course participants, etc.) to see that the default existing Moodle behaviour has persisted (normal user pictures, no avatar images, user can upload and change their pictures). 2. Avatars ON, using Gravatar (default) Change the "Enable Avatars" to enabled (checked), and leave the "Avatar Service" setting to the default, Gravatar. Examine user pictures again - the user picture should now be the Gravatar image for those users with a Gravatar-enabled email address, unless they have uploaded their own image. Moodle users without a Gravatar-enabled email address should show their picture as normal (if any). For an account with a Gravatar-enabled email address that is showing a Gravatar image, uploading a user picture should override the avatar image. 3. Avatars ON, using Libravatar Repeat 2, but the avatar image should be from the Libravatar service. Additionally, the Libravatar image should come from a local federated libravatar image server, as queried from the DNS SRV record on the domain of the user's email address, as described at http://wiki.libravatar.org/api/ We have a federated server at Catalyst that we can test this on.
    • Affected Branches:
      MOODLE_22_STABLE
    • Pull Master Branch:
      wip-MDL-29584_4

      Description

      Extend Gravatar functionality to support Libravatar and potentially other similar avatar services

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                7 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: