How to show userid in assignment submission

How to show userid in assignment submission

by Panyarak Ngamsritragul -
Number of replies: 2

In the assignment submissions page, the following items are shown in the table:

  1. First name and Surname
  2. Grade
  3. Comment
  4. Last modified (Student)
  5. Last modified (Teacher)
  6. Status
  7. Final grade
Can anyone supply a quick code to also show the user_id ? Thank a lot.
Average of ratings: -
In reply to Panyarak Ngamsritragul

Re: How to show userid in assignment submission

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Hi Panyarak,

You can easily show user id numbers for assignments and other graded activities in the grader report in Moodle 1.9 by setting 'Show user id number' to Yes in the grader report preferences. Please see Grader report preferences for more details.
In reply to Helen Foster

ตอบ: Re: How to show userid in assignment submission

by Panyarak Ngamsritragul -
Thanks a lot Helen. Maybe I have mis-conveyed what I would like to do.

If we are going to view the report of grades from all courses, it is possible to do the way you kindly pointed out. ?But if we just want to view the submission of certain course, then there is no choice at all but the default report.

Anyway, I have figured out how to do that by modifying a bit in mod/assignment/lib.php. I have attached here so that you may consider updating in the next relealse.