How To / General

Customising "My Grades" module/view

  • Web Buster UK Ltd
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
7 years 10 months ago #11 by Web Buster UK Ltd
Replied by Web Buster UK Ltd on topic Customising "My Grades" module/view
Thank you, we are now re-doing our layout, it works really well. We now just need to find out a way to make a filter or make the headings collapsable as the list of courses is very long and will keep getting longer. We are at 15 with 5 more on the way. I have to say though, this is a massive step forward. We had students and parents complaining as to how difficult it was to navigate, this will really help now. So thank you so much for that. Do you have any idea out to make it collapsable or filter?

Please Log in or Create an account to join the conversation.

More
7 years 10 months ago #12 by Antonio Durán
Replied by Antonio Durán on topic Customising "My Grades" module/view
> Do you have any idea out to make it collapsable or filter?

I am not a GUI guy, so I cannot help you there, sorry.
I guess the other option I gave you to have a page linking to all course grades did not suit your needs?

Please Log in or Create an account to join the conversation.

  • Web Buster UK Ltd
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
7 years 10 months ago #13 by Web Buster UK Ltd
Replied by Web Buster UK Ltd on topic Customising "My Grades" module/view
The suggestion was brilliant, it is really good and the work you did making the courses clickable is awesome, it has really made a difference. We are just going to try and find a way now to remove the need to scroll down past 15 courses to find the one you want.

If we find a solution we will let you know and you can have the code.

Please Log in or Create an account to join the conversation.

More
7 years 10 months ago #14 by Antonio Durán
Replied by Antonio Durán on topic Customising "My Grades" module/view
I was talking about the suggestion to link to mycoursegrades view, which shows all your courses, linking to the coursegrades view for each one.

Please Log in or Create an account to join the conversation.

  • Web Buster UK Ltd
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
7 years 10 months ago #15 by Web Buster UK Ltd
Replied by Web Buster UK Ltd on topic Customising "My Grades" module/view
Oh right, that sounds a great idea. Yes, I will try that.

Please Log in or Create an account to join the conversation.

  • Web Buster UK Ltd
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
7 years 10 months ago #16 by Web Buster UK Ltd
Replied by Web Buster UK Ltd on topic Customising "My Grades" module/view
Hi again, I think this has been brought up before. In the "My Grades" gradebook view, the tasks within the courses do not seem to be sorted according to moodle's sorting.

It seems to be sorted by "time created" instead, as a result eg. our last task (which was created earlier) is above the first task (which was created last). Is this a known issue?

Please Log in or Create an account to join the conversation.

More
7 years 10 months ago #17 by Antonio Durán
Replied by Antonio Durán on topic Customising "My Grades" module/view
Hi.
Please try this:
Edit file: moodle/auth/joomdle/auth.php
Look for this code:
Code:
// Get items. $query = "select * from {$CFG->prefix}grade_items where categoryId = ?";
And after it, add:
Code:
$query .= " order by sortorder";

Please Log in or Create an account to join the conversation.

  • Web Buster UK Ltd
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
7 years 10 months ago #18 by Web Buster UK Ltd
Replied by Web Buster UK Ltd on topic Customising "My Grades" module/view
Thanks Antonio, we tried that but unfortunately it didn't change anything.

Please Log in or Create an account to join the conversation.

More
7 years 10 months ago #19 by Antonio Durán
Replied by Antonio Durán on topic Customising "My Grades" module/view
Sorry, I forgot to tell function: get_grade_user_report
Did you modify it there?

Please Log in or Create an account to join the conversation.

  • Web Buster UK Ltd
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
7 years 9 months ago - 7 years 9 months ago #20 by Web Buster UK Ltd
Replied by Web Buster UK Ltd on topic Customising "My Grades" module/view
What do we put after "get_grade_user_report"?

Edit: We tried this (Line 2405, under get_grade_user_report)
Code:
// Get items. $query = "select * from {$CFG->prefix}grade_items where categoryId = ?"; $query .= " order by sortorder";

And it seems to work but only the first course is ordered correctly, the following courses are still the same as before.
Last edit: 7 years 9 months ago by Web Buster UK Ltd.

Please Log in or Create an account to join the conversation.