How To Stop/Change Forced Navigation at end of HotPot quiz

How To Stop/Change Forced Navigation at end of HotPot quiz

by Peter Lindop -
Number of replies: 11

Dear All

I am using Hot Potatoes JCloze as a tool for students to fill in the gaps as they work through various exercises.  I would like them to be able to see their responses when they have completed the quiz, but while this is not yet possible, I would like them to be able to print off the page in order to be able to file it for revision.

When configuring a HotPot quiz, there is the option below Save Changes to Display Hot Potatoes quiz, Course Page or HotPot Index next.  Once the Answers have been checked, I would like the student to have an opportunity to Print (I have inserted a Print button on the quiz) before being moved on. 

Can anyone tell me how to either add printing into this process of moving on to the next quiz or to remove the automation so that the student can Print it and then manually go back to the course page?

There may be a better way to do this and I am open to other suggestions. 

I am using Moodle 1.6.3

Thanks very much

Peter

Average of ratings: -
In reply to Peter Lindop

Re: How To Stop/Change Forced Navigation at end of HotPot quiz

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers
Hi Peter,
to prevent the "automatic navigation" try this:
  1. open "mod/hotpot/attempt.php" with a text editor
  2. locate the following line:
    redirect($next_url, get_string('resultssaved', 'hotpot'));
  3. change the above line to:
    // redirect($next_url, get_string('resultssaved', 'hotpot'));
    header("Status: 204");
    header("HTTP/1.0 204 No Response");
  4. save the modified file
As you may be aware, I am intending to significantly increase the functionality and flexibility of the HotPot module this year (2007), and allowing students to browse their answers as soon as they finish the quiz is one of the options I hope to enable.

Probably you already have discovered that students can "review" their answers to a HotPot activity, but the layout of the answers on the "review" page is very different from the layout of the questions and answers in the HotPot activity, so it is not always clear to the students what the information on the "review" page represents.

best regards
Gordon
In reply to Gordon Bateson

Re: How To Stop/Change Forced Navigation at end of HotPot quiz

by Peter Lindop -
Hi Gordon

Thanks for the response. I will take a look at how this works and let you know if I have any further questions.

I don't know if you are aware, but a Beta version of a new HotPot version was released this week which incorporates the awaited SCORM functionality which I mentioned to you before. I have downloaded it, but haven't had time to play around yet.

Thanks again
Peter
In reply to Peter Lindop

Re: How To Stop/Change Forced Navigation at end of HotPot quiz

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers
Yes, the Beta version of Hot Potatoes 7 is an exciting development. I am interested to see how the Hot Potatoes 7 exercises behave when they are run through Moodle's SCORM module.

regards
Gordon
In reply to Gordon Bateson

Re: How To Stop/Change Forced Navigation at end of HotPot quiz

by Peter Lindop -

Hi Gordon

This fix worked a treat for us in 1.6 and since we have just upgraded to 1.8, I am going to be doing the change again assuming that it should still work.

I was wondering whether it is possible to add this code which is taken out in your post namely -

redirect($next_url, get_string('resultssaved', 'hotpot'));

to the working of the Next button in the Hot Potatoes source files so that you can move on to the next quiz, but only once you have had an opportunity to print the page.

Could you advise?

Thanks

Peter/span>

In reply to Peter Lindop

Re: How To Stop/Change Forced Navigation at end of HotPot quiz

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers
> I was wondering whether it is possible to add this code ... to the working of the Next button .. so that you can move on to the next quiz, but only once you have had an opportunity to print the page

I think I understand.

You want a button for the students to manually click to the next quiz. The Hot Potatoes "next" buttons, should work as you wish if you choose "Hot Potatoes quiz buttons" for the "Navigation" setting for the quiz (on Moodle's "Editing a Hot Potatoes quiz" page)

Is that what you mean?
Attachment next-button.gif
In reply to Gordon Bateson

Re: How To Stop/Change Forced Navigation at end of HotPot quiz

by Peter Lindop -

Hi Gordon

We have now upgraded to Moodle 2.2 and have the same problem that the Navigation going straight back to the Course homepage as before.

Will this fix that you gave me last time (5 years ago!) work again or has the structure changed?

I have seen that there is now an option for Exit page, but what I would like is for the person to be able to stay on the page to print the final 100% correct answers and then go on to the next exercise.

You can see the buttons which I have previously had enabled at the bottom of the screenshot below.

Thanks for your help

Peter

Attachment Hotpot image.JPG
In reply to Peter Lindop

Re: How To Stop/Change Forced Navigation at end of HotPot quiz

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi Peter,
I thnk the modification will still work. I suggest you try it and see.

best regards
Gordon

In reply to Gordon Bateson

Re: How To Stop/Change Forced Navigation at end of HotPot quiz

by Peter Lindop -
Hi Gordon
 
I sent a link to Synergy Learning, the Moodle specialists who look after our site and this is their response:
 
Unfortunately the file for this version doesn't have any lines similar to the one given in this forum posting.
 
Could you look into it and see if there is another way of doing this now for 2.2?
 
Could you give us any further direction?
Thanks
Peter
In reply to Peter Lindop

Re: How To Stop/Change Forced Navigation at end of HotPot quiz

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Peter,

how about if you set the "Delay 3" setting for your HotPot to "Do not continue automatically" (see attached screenshot). Does that do what you want?

Gordon

P.S. "Delay 3" is the delay at the end of the HotPot quiz before returning to Moodle.

Attachment Screen Shot 2012-10-18 at 8.28.29 PM.png
In reply to Gordon Bateson

Re: How To Stop/Change Forced Navigation at end of HotPot quiz

by Peter Lindop -

Hi Gordon

I have tried your suggestion of changing delay 3 but it doesn't seem to have any effect. The lesson still goes directly back to the Course homepage.

We are currently running Moodle 2.2.3

Is this a bug or is there something else I am missing?

Thanks
Peter

Attachment Delay 3.JPG
In reply to Peter Lindop

Re: How To Stop/Change Forced Navigation at end of HotPot quiz

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Peter,
I understand that you are reporting that setting Delay 3" to "Do not continue automatically" has no effect on Moodle 2.3. I will investigate and report back.

Gordon