School quiz. Source: http://upload.wikimedia.org/wikipedia/commons/a/a6/2013_school_wikipedia_quiz.JPG |
The Description Question Type is useful when you want to include text or graphics before a quiz section. The one problem I find is that the Quiz Navigation block will show up a [i] box for every Description question type. Not very user-friendly for the student who is taking the quiz.
For three days I searched for a solution to the problem. Talk about tough!
After many hits and misses, I finally got it! I just had to add the following code
if (!$this->attemptobj->is_real_question($slot)) {
continue;
}
to the file named attemptlib.php. The magic code goes immediately inside the foreach loop of the public function get_question_buttons() function, like so:
The effect of this code hack is immediately apparent. Here's what the Quiz Navigation block looks like now.
regards
Frankie Kam
No comments:
Post a Comment