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

Show user initials as a placeholder for the user profile picture

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.2.0
    • None
    • UI (User Interface)
    • MOODLE_402_STABLE
    • Moodle App 4.3.0

    Description

      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]);

      Attachments

        Issue Links

          Activity

            People

              pferre22 Pau Ferrer
              jleyva Juan Leyva
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: