Displaying "Username" on the Manul Enrolments page (2.6)

Displaying "Username" on the Manul Enrolments page (2.6)

by Michael Skwara -
Number of replies: 2

I'd like to see users' usernames in addition to thier firstname, lastname, and email address on the page where teachers can manually enroll students.   Our usernames contain information that isn't available in the First/Lastname and Email address that will be helpful in determining, for example, which student is which for students with identical common first and last names.

I had figured out how to get this to display in 1.9, but haven't been able to track it down in Moodle 2 yet.  Can anyone point me to the correct file or line(s) that I should be working with to add that field to this screen? 

Thanks!

MichaelExample

Average of ratings: -
In reply to Michael Skwara

Re: Displaying "Username" on the Manul Enrolments page (2.6)

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

This is not officially supported, so you cannot select username under Show user identity on Admin -> Users -> Permissions -> User policies.

However, if you define it in config.php, like

$CFG->showuseridentity = 'email,idnumber,username';

then it works.

Average of ratings: Useful (3)
In reply to Tim Hunt

Re: Displaying "Username" on the Manul Enrolments page (2.6)

by Michael Skwara -

Wonderful! An easy solution to accomplish exactly what I needed to do!  Thanks very much, Tim!