Quiz/Summary of Previous Attempts/Review option is blank

Quiz/Summary of Previous Attempts/Review option is blank

by tim wilde -
Number of replies: 6

Hi all,

 Moodle 2.2.7+ (Build: 20130118)

Immediately after taking a quiz the “review” option on the summary of previous attempts is blank. (see attached file)

I understand that this is because the “immediately after previous attempts” actually means after 2 minutes and as our Quiz Settings  for "immediately after previous attempts” does not include “The attempt” the review option is blank until we refresh the page after the 2 minute period has expired.

Is there anyway that we can either change the “immediate” to be less than 2 minutes or include some text in the “review” field to indicate that the user has to wait 2 minutes?

The file mod/quiz.renderer.php (line 1085) has the following, which looks like it may be relevant to adding some text, but I cannot see how to set set it up

    /**

     * Displayed where there might normally be a review link, to explain why the

     * review is not available at this time.

     * @param string $message optional message explaining why the review is not possible.

     * @return string HTML to output.

     */

    public function no_review_message($message) {

        return html_writer::nonempty_tag('span', $message,

                array('class' => 'noreviewmessage'));

    }

 

Thanks in advance

Tim

Average of ratings: -
In reply to tim wilde

Re: Quiz/Summary of Previous Attempts/Review option is blank

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

If you want students to be able to review before two minutes have passed, why not just allow review immediately after the attempt? (You can change that review option now in the quiz settings.)

What you really need to do is to work out where $message comes from. That should already include some text telling students when they can review.

In reply to Tim Hunt

Re: Quiz/Summary of Previous Attempts/Review option is blank

by tim wilde -

Thanks Tim,

For future reference I managed to get this to work by setting the theme renderer. Example as follows;

theme/renderers.php

     include_once($CFG->dirroot . "/mod/quiz/renderer.php");
 
  class theme_XXX_mod_quiz_renderer extends mod_quiz_renderer{
  public function no_review_message($message) {       
     return html_writer::nonempty_tag('span',get_string('quiz_review', 'theme_XXX'),array('class' => 'noreviewmessage'));
}
}

Tim

In reply to tim wilde

Re: Quiz/Summary of Previous Attempts/Review option is blank

by Anis Jradah -

Dear All,

How can we extend the 2 minutes review time for "Immediately after the attemp" in the quiz settings. Many students needs more time to review their attempts and check their mistakes.

Thank you,

Best regards,

Anis

 

In reply to Anis Jradah

Re: Quiz/Summary of Previous Attempts/Review option is blank

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Allow review more than immediately after the attempt?

Get the students to click the 'Show all on one page' link during the first two minutes?

Implement improvement MDL-18395?

In reply to Tim Hunt

Re: Quiz/Summary of Previous Attempts/Review option is blank

by Anis Jradah -

Dear Tim,

Thank you for your reply.

It is a good idea to ask the students to click "show all in one page".

I checked the MDL-18395 and it is not implemented yet.

Moreover, I was checking quiz/locallib.php and found "function quiz_attempt_state($quiz, $attempt) { " where "if (time() < $attempt->timefinish + 120) {
        return mod_quiz_display_options::IMMEDIATELY_AFTER;"

If 120 is changed to another number, will the student have more time to review?

Thank you.

Anis

 

 

 

 

 

In reply to Anis Jradah

Re: Quiz/Summary of Previous Attempts/Review option is blank

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Yes, you can just change that number.