I messed up on the post titled "How I omit grades (crude and primitive)", dated Thursday, 17 April 2003, 01:49 PM so please ignore that. My mistake was to completely comment out the "Administration" box. That meant that I, the administrator could not see the Admin box!!
I believe the following code is better. It prevents students and guests from seeing the admin box that contains the link to grades, but when you are logged in as the admin you will see the admin box that contains all the other important links!!
I am so very sorry I posted that bad information and wish there was a way to delete it from this forum so no one can be hurt by it. I did post a reply to that incorrect post stating that it wasn't a good approach and I hope that will be effective in protecting people from my error.
Here is the corrected post
I'm using moodle to teach continuing education to K12 teachers. These teachers have to accumulate a certain number of continuing education credit per year in order to keep up their certification. These classes don't have grades. They are "pass/fail" in that if the teacher completes the assignments they get the credit.
I didn't want to use grades so I modified two files.
- Prevent students and guests from seeing the Administration box (located in the left column) containing grades link on the course home page. But allow administrators to see this Admin box.
- Open moodle/course/lib.php
- at about line 679 I replaced
print_side_block(get_string("administration"), "", $admindata, $adminicon, "", $width);
with this:
// paula blocking student and guest view of course Admin box
// see also moodle/mod/assignment/view.php line 69
if (isadmin()) {
print_side_block(get_string("administration"), "", $admindata, $adminicon, "", $width);
}
}
- Open moodle/course/lib.php
- Removed assignment due date and grade from view of an assignment
- Open moodle/mod/assignment/view.php
- at about line 69 I commented out the following lines:
// paula commented out lines that display grading information on
// view an assignment
// see also moodle/course/lib.php line 679
// print_simple_box_start("CENTER");
// echo "<B>".get_string("duedate", "assignment")."</B>: $strduedate<BR>";
// echo "<B>".get_string("maximumgrade")."</B>: $assignment->grade<BR>";
// print_simple_box_end();
- Open moodle/mod/assignment/view.php
I know this is a very crude and primitive approach. It means that no course will see references to grades, not just this one course. Ideally, when creating a course, there would be an on/off flag for "Use grades" but I don't know how to do that.