I have a couple of problems with the hotpot module on 1.8.
When I make a flashcard exercise the "give up" button doesn't work (it works fine for gapfil and drag and drop exercises). This problem has repeated both on a local install (using easyphp) and on a remote site. It is also the same with Firefox/IE.
Also, the "give up" button itself is not being detected as being unicode and is appearing in garbled form when the site language is switched over to Japanese.
Does anybody have any ideas about these problems?
Best regards,
James Phillips
PS The new (August?) Hotpot module sounds like it will be amazing!
I am not sure that the FlashCard exercises were intended to be used with the HotPot module. They don't give a score do they? I can't remember clearly.
Anyway, please could you upload the quiz to my server, so I can take a look:
- URL: http://bateson.kanazawa-gu.ac.jp/moodle/18/ms/
- course: Course Fullname 101
- username: guestteacher
- password: hotpotv24
Gordon
Thanks for uploading the file. For the time-being, I have fixed and bodged the "mod/hotpot/hotpot-full.js" so it will not try to calculate a score for Flashcards made with JMatch from Hot Potatoes 6.
For the next couple of days, you can download the modified "hotpot-full.js" for from here:
http://bateson.kanazawa-gu.ac.jp/moodle/18/ms/mod/hotpot/hotpot-full-jp.js
I don't think I will make this a permanent change because it is rather messy. Instead, I will make the new HotPot module better at recognizing when it doesn't have to do anything, as this will also cover the case of JGloss (a Michael Rottmeier adaption of JCloze), and there might be others.
all the best
Gordon
I just gave it a go. What happens now is that the "give up" button doesn't work for the last quiz of a chain. I have three quizzes chained together with the first two set to "show next quiz". The flashcard quiz now works, as does the second, but the third no longer works. Allow review is set to "no" in all cases. Have I made a mistake with something simple?
Best regards,
James Phillips
Hi James,
thanks for letting me access your site. I have furhter fixed your hotpot-full.js, so that the modifications to let FLashCards work, do not interfere with the other types of quiz. It should all work OK now.
The Japanese "Give Up" appeared because the encoding for the HotPot htm file is "iso-8859-1", but the Japanese messages are encoded as unicode. If your browser shows garbled characters, you will need to tell (=force) it to use the unicode encoding when displaying that page.
A more permanent fix would be to open up the htm file and locate the following line:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
Then change the above line to:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Probably, the HotPot module should do that for you, and I might make that change in the near future.
all the best
Gordon
Hi James,
I have modified the "mod/hotpot/view.php" on your site so that the Japanese "Give Up" buttons display OK now. This will be a useful fix for other languages too, so thanks very much for pointing it out.
In due course I will update the HotPot module script on the Moodle CVS so that everybody has accessto the fix.
Gordon
Sorry which problem returned? The "Give Up" button appearing garbed, or the fact that "Flash Cards" don't work?
I have checked the "mod/hotpot/view.php" and the fix for non-ascii characters in the Give Up button are still there, so that should still be working.
The fix for Flashcards I made on your site, and on your site only. I modified the hotpot-full.js so that it doesn't try to send results for Flahs card exercises. Sorry if I wasn't clear, but I did not apply this fix to the publicly available HotPot module. I cannot remember off the top of my head if any further changes have been made to hotpot-full.js since I modified your site, but the first thing I suggest you do is move across the old hotpot-full.js to the new site.
regards
Gordon
> The "give up" button is not working in 1.8.2
I assume you mean the "Give Up" button is working as expected on all types of exercise produced by Hot Potatoes 6, except Flash Card exercises. Is that right?
The HotPot module was never intended to work with the JMatch Flashcard format, because the Flashcard format does not produce a "score" and there is no information about which words were shown or whether the student was able to give a correct response or not.
If the FlashCard exercise is not in a "chain" of other HotPot exercises, then I suggest you add the FlashCard exercise as a Moodle "Resource" activity, rather than as a "HotPot" activity. Then you will not have to mess with the scripts and you can rest assured that your site will have no problems upgrading in the future.
However, I understand that you probably have good reasons to want to implement this modification so without further ado, here is the link to the amended file: hotpot-full.flashcard.js
regards
Gordon
P.S. If you do not already have software for finding differences between two files, I can recommend WinMerge to find out which lines in the attached file are different from the standard hotpot-full.js