Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-4261

Show user initials as a placeholder for the user profile picture

XMLWordPrintable

    • Hide

      Navigate through the app and check that there are places where instead of the image placeholder of the user, the initials are shown.

      There will be places (ie: database) where the firstname and lastname fields are not available in the WS and the legacy placeholder will be shown.

      There is not a rule to know if legacy image will be shown or the initials, but you could find the initials in the following pages:

      • Sites lists: Reconnect, change site, space usage, synchronization...
      • Online users block
      • Course participants: A capability is required
      • User menu

      This issue can be deeply tested during release testing.

      Show
      Navigate through the app and check that there are places where instead of the image placeholder of the user, the initials are shown. There will be places (ie: database) where the firstname and lastname fields are not available in the WS and the legacy placeholder will be shown. There is not a rule to know if legacy image will be shown or the initials, but you could find the initials in the following pages: Sites lists: Reconnect, change site, space usage, synchronization... Online users block Course participants: A capability is required User menu This issue can be deeply tested during release testing.
    • MOODLE_402_STABLE
    • MOODLE_403_STABLE
    • Moodle Apps - 2023 Sprint i2.2

      This was introduced in 4.0 and it should be now supported on the app.

      See MDL-72305

      This might be a bit tricky to implement and maybe we could limit only to the own user profile picture (because for participants for example we don't receive the firstname and lastname separately)

      This is the PHP code for the web version:

      $output = html_writer::tag('span', mb_substr($user->firstname, 0, 1) . mb_substr($user->lastname, 0, 1),
      ['class' => 'userinitials size-' . $size]);

            pferre22 Pau Ferrer
            jleyva Juan Leyva
            Dani Palou Dani Palou
            Isabel Renedo Rouco Isabel Renedo Rouco
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.