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

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

by Zahid Ahmed -
Number of replies: 0

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>';
}