Hiding feedback/grade from students in single-file upload assignment

Hiding feedback/grade from students in single-file upload assignment

by Zahid Ahmed -
Number of replies: 1

Hi! Using version 1.9.7. Question is re single-file upload assignment.

I want to hide all feedback and final grades from students. Even when an individual student clicks on their assignment, I dont want them to be able to view their own feedback or final grade.

I have searched extensively and cant find a way to do this. I was thinking at the very least can someone help me identify the file in which I could comment out the code that displays the block "Feedback from teacher" and the following feedback when students click on the assignment link?

We essentially want non-editing teacher to have the ability to use the "comment" box to make internal comments about the students submission. But when we save all feedback it becomes visible to the students. I would like to be able to hide or comment out the code that displays this for them.


Any help is greatly appreciated! Thank you.


Zack

Average of ratings: -
In reply to Zahid Ahmed

Re: Hiding feedback/grade from students in single-file upload assignment

by Zahid Ahmed -

Okay, I think I got it, under the lib.php file I commented out the following echo. But I would really like to comment out the entire box that says Feedback. Although when I do this, it no longer displays a link to the submitted file (for students to see).

 

/// Print the feedback
print_heading(get_string('feedbackfromteacher', 'assignment', $this->course->teacher)); // TODO: fix teacher string

echo '<table cellspacing="0" class="feedback">';

echo '<tr>';
echo '<td class="left picture">';

if ($teacher) {
print_user_picture($teacher, $this->course->id, $teacher->picture);
}
echo '</td>';
echo '<td class="topic">';
echo '<div class="from">';
if ($teacher) {
echo '<div class="fullname">'.fullname($teacher).'</div>';
}
echo '<div class="time">'.userdate($graded_date).'</div>';
echo '</div>';
echo '</td>';
echo '</tr>';

echo '<tr>';
echo '<td class="left side">&nbsp;</td>';
echo '<td class="content">';
echo '<div class="grade">';
echo get_string("grade").': '.$grade->str_long_grade;
echo '</div>';
echo '<div class="clearer"></div>';

echo '<div class="comment">';
/*  echo $grade->str_feedback;  */
echo '</div>';
echo '</tr>';

echo '</table>';
}