The issue specifically deals with how grades are reported at the site level. Currently, if you go to a user's profile, click activity reports, and then grades, you get a list of the grades for front page activities (course id = 1).
This may be exactly what you want if you are doing graded activities on the front page, which may be the case with some installs that only have one or two teachers, but if you're not doing any graded activities on the front page, this report is not useful at all, and in fact is not at all what we need - we have parents that log in regularly to check on their students and would expect to see the overview report - showing the grades overview for all the student's courses, instead.
What I'd like to find out is this: what is the expected behavior at the front page level when you click on a user's profile, then activity reports, and then grades?
Should this be an option the site administrator should be able to configure? (e.g - an option in Grades->Grade Settings that shows a drop-down for Front Page or All Courses)
Thanks,
Matt
Re: Your input wanted - grade report at site level in 1.9
Re: Your input wanted - grade report at site level in 1.9
I may just figure out how to make it happen for me at the site level and then post the code.
Thanks,
Matt
Re: Your input wanted - grade report at site level in 1.9
Here's what I'm doing to enable mentors, students, admins, etc - anyone with rights to view student activities - to see the grade overview for that student when they look at the student's user profile:
In /course/user.php, line 71 (where it says case "grade":), you'll want to replace everything from the case statement to the break with the following:
case "grade":
$course = get_record('course', 'id', required_param('id', PARAM_INT));
require_once $CFG->dirroot.'/grade/lib.php';
if ($course->id == 1) {
require_once $CFG->dirroot.'/grade/report/overview/lib.php';
$context = get_context_instance(CONTEXT_COURSE, $id);
/// return tracking object
$gpr = new grade_plugin_return(array('type'=>'report', 'plugin'=>'overview', 'userid'=>$user->id));
// Create a report instance
$report = new grade_report_overview($user->id, $gpr, $context);
}
if ($course->id <> 1 and !empty($course->showgrades)) {
require_once $CFG->dirroot.'/grade/report/user/lib.php';
$context = get_context_instance(CONTEXT_COURSE, $id);
/// return tracking object
$gpr = new grade_plugin_return(array('type'=>'report', 'plugin'=>'user', 'courseid'=>$id, 'userid'=>$user->id));
// Create a report instance
$report = new grade_report_user($id, $gpr, $context, $user->id);
}
$gradetotal = 0;
$gradesum = 0;
// print the page
print_heading(get_string('modulename', 'gradereport_user'). ' - '.fullname($report->user));
if ($report->fill_table()) {
echo $report->print_table(true);
}
// print_student_grade($user, $course);
break;
I'd appreciate any comments about this - it would be a nice feature to get into core, but I'd like to get more input on what the desired behavior would be.
Thanks,
Matt
Re: Your input wanted - grade report at site level in 1.9
Re: Your input wanted - grade report at site level in 1.9
Thanks,
Matt
Re: Your input wanted - grade report at site level in 1.9
Hmmm..
Well it's showing the grade, but not the percentage column. The two do not match up in some courses, so it's important to see both.
Re: Your input wanted - grade report at site level in 1.9
I just tried with 1.9.4 - and it did not seem to work for me.
Linux server - I was unable to see more grades (maybe I just looked at the wrong place?
Where exactly to I need to look? (I am administrator)
Olaf
Re: Your input wanted - grade report at site level in 1.9
Thanks,
Matt
Re: Your input wanted - grade report at site level in 1.9
Those courses where the only assignments i activated were offline-activities are not shown on the profile page. Even though i enroled users and filled in gradings for their offline assignments.
Does anyone hav an idea why those courses won't show and what's to be changed to make them appear on my list?
Thx a lot, Felix
Re: Your input wanted - grade report at site level in 1.9
Re: Your input wanted - grade report at site level in 1.9
This code above worked for me in 1.9 for many many years. Thanks Matt and Anthony!
I would love to see this updated for Moodle 2.5 which I use now. Please vote for both of these issues below:
Thank you!
Re: Your input wanted - grade report at site level in 1.9
I am also looking for this feature.
I want to have an overview of all grades of all students in 1 moodle site, or in allor one categorie.
Is this allready made? Or is this whisfull thinking?
Lauran
Re: Your input wanted - grade report at site level in 1.9
Or, vote for MDL-12874 and see if we can get this included in 1.9.
Thanks,
Matt