PDA

View Full Version : Quiz reports with Real Names


jamesmaloy
02-18-2008, 01:52 PM
I would like to generate a quiz report with real names instead of User names so it is easier for other people in my organization to see who passed the quiz - usernames are not appropriate for this.

Generating a user report for a course gives you both username and real name. I'd like this information along with the quiz results to make things easier.


Is this possible?
james

tomcat
02-18-2008, 06:41 PM
I would like to generate a quiz report with real names instead of User names so it is easier for other people in my organization to see who passed the quiz - usernames are not appropriate for this.

Generating a user report for a course gives you both username and real name. I'd like this information along with the quiz results to make things easier.


Is this possible?
james

the issue with this is that multiple students can have the same name in your system. but you cannot have multiple usernames that are the same.

to get around this, i just open up my gradebook in a new window/tab and copy and paste the username to get the actual name.

Tom

den
02-19-2008, 11:42 AM
Open the files components/com_joomla_lms/includes/quiz/admin.joomlaquiz.class.php find line 2214, which contains

. "\n q.c_title, q.c_author, q.c_passing_score,sq.c_student_id, u.username, u.name, u.email, q.c_full_score, q.c_id as cur_quiz_id"

and change it to:

. "\n q.c_title, q.c_author, q.c_passing_score,sq.c_student_id, u.username as name, u.name as username, u.email, q.c_full_score, q.c_id as cur_quiz_id"

jamesmaloy
02-20-2008, 01:31 AM
Bravo! Thank you yet again Den - and for your suggestion as well Tomcat.
Regards,
James