Your Moodle version

Reports: My Grades report

Maintained by David David Bezemer
A Moodle Report that shows all user grades in all courses

This report displays a searchable and sort able table with the User's grades per course.
When clicking a link from this table, the user will be redirected to their course grade overview.

The report is available from two areas:

  1. User activity reports
  2. Personal reports
The report shows a sort able and searchable table of all obtained grades course wide.
Teachers/managers can view all grades of students in courses they have access to, user can see grades of themselves but not of others.




David Bezemer (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Plugins bot
    Mon, May 26, 2014, 5:36 AM
    Thanks for sharing this plugin with the Moodle community. Some formal issues were detected and reported by our automated plugin checker tool. Please review all the plugin checker results and fix the issues mentioned, if possible. These changes are typically pretty easy to make but if you have any questions just let us know. For now, I am going to mark this plugin as needing more work. Once you get these formal issues resolved, please use the link “Schedule this plugin for re-approval” so that the plugin code can be fully reviewed and approved by my human colleagues.
  • Picture of David Mudrák
    Fri, Aug 1, 2014, 8:29 PM
    Hi David,

    thanks for sharing this plugin with the Moodle community. The uploaded version did not have Supported Moodle version selected. Using
    the information from the version.php, I set it to be for Moodle 2.5. You may wish to eventually edit and extend the list of
    supported versions.

    In the DEBUG_DEVELOPER mode, the report throws Notice: Undefined property: stdClass::$text in report/mygrades/index.php on line 112
    which, by looking at the code, should be easy to fix.

    Many of your CSS selectors in the styles.css file do not contain the report specific scope so it is likely to affect other areas of
    Moodle unintentionally (see selectors like ".sorting" etc) if they use same CSS class names. Please fix that by having more specific
    selectors to affect your plugin only (I personally found awesome tool for that).

    In the code $PAGE->set_context(context_course::instance(1)); the identifier can not be hardcoded like that. Not all sites have the
    site id set to 1. If you really need it, use SITEID constant. But maybe better - should not the context be set to the context_system
    or context_user ? On that note, I would expect a capability 'report/mygrades:view' declared to control access to the report.

    I am going to approve the plugin now with the hope these issues are fixed in a future update of the report. You are cleared to land,
    welcome to the Plugins directory!
  • David
    Fri, Aug 15, 2014, 5:11 PM
    Hi David, I think you misread because I do not get the siteID context, but for course 1, which to my knowledge is ALWAYS the frontpage (course id = 1). I have however rewritten this to use your current course, which surprisingly from the user profile context is always 1! Kind regards,
  • Picture of Gary Lynch
    Fri, Aug 22, 2014, 3:49 AM
    Hi David
    How do you change the display to show full course names as opposed to short ones?
    An it would be really useful to have completion dates too
    Regards Gary
  • Picture of Gary Lynch
    Fri, Aug 22, 2014, 4:11 AM
    Hi David managed to locate the line to change for full course names in the index.php changed line (144 in dreamweaver) from
    $coursename = format_string($course->shortname , true, array ('context' => $coursecontext));
    $coursename = format_string($course->fullname , true, array ('context' => $coursecontext));
    Worked a treat smile
    Regards Gary
    ps still would be nice to have completion times/status on there smile
Please login to post comments