Could you tell me what version of Moodle (1.4? 1.5?) you are using, and what version of the HotPot module (v1? v2?)
if possible, could you send me a link to your site, so I can see the frame for myself? My email is: gordon at-sign kanazawa hyphen gu dot ac dot jp
Hello again Colin,
thanks a lot for sending the off-list email with the link to the sample quiz. Hopefully you have seen my reply by now, indicating that the quiz I looked at seems to be HotPot v1 quiz, so I don't think you have installed "HotPot v2" yet.
Once you have HotPot v2" installed you will be able to control whether or not the Hot Potatoes navigation buttons are visible.
However, even if you had "HotPot v2", the size of the top frame would be fixed a 85 pixels. This is hard coded into the script which sends quizzes out to students (view.php).
I can see that it would be useful to change the size of the top frame.
Looking at the "resource" module, it has a setting which you can change on the resource settings page. To get there, choose Administration -> Configuration -> Modules, then click on "Settings" for the "Resource" module. The top setting is "resource_framesize".
I will change the HotPot module to use the same size for the top frame as the resource module. By default the resource module uses a setting of 130 pixels. If anybody doesn't like the change, and wants to stick with the 85 pixels that HotPot was using, you can simply adjust the "resource_framesize" for the resource module.
many thanks for pointing this out
all the best
yes once i saw what was in the folder I upgraded to hotpot module v2.
I changed the date on version.php to have moodle update - it wasn't until then I discovered that hotpot.php had never been in the lang folder - clearly a mistake I made during the last install!
However now I can't get moodle to re-declare because I already updated
I tried deleting the module and then installing the new module but I still get the error message:
Fatal error: Cannot redeclare hotpot_upgrade() (previously declared in /public_html/moodle/mod/hotpot/db/mysql.php:3) in /public_html/moodle/mod/hotpotold/db/mysql.php on line 3
all suggestions welcomed warmly, with open arms!
*hotpotold was the renamed original folder since deleted
I have seen the "Cannot redeclare hotpot_upgrade()" error before, when there is another hotpot folder in the mod directory. Possibly you made a copy or backup of the old hotpot folder and called it "hotpotold"? If this is the case, all you need to do is move the "hotpotold" folder out of the "mod" folder, so that Moodle doesn't detect it.
Oh just a minute, the final part of your message seems to indicate that you have deleted the "hotpotold" folder. That's another (more drastic!) solution. The upgrade should be OK now, if you login as administrator and go to the site configuration page.
If the upgrade goes ahead and completes successfully, then you don't need to worry about the version settings as they will have been updated automatically. However, if the upgrade does not begin when you look at the Administration Configuration page, then it may be that you need to bodge the version settings. If that is the case, I'm sure there will be someone on this forum who can offer adivce if you need it.
all the best
I had deleted the old folder but I had not deleted yet another old folder! Once it was deleted Hotpot reinstalled itself without request, serving to remind all what a marvellous application it is and what a great concept these forums are.
I shall now go and read all those other posts about backgrounds in hotpot.
Great news, Colin! Sounds like you're up and running.
I am not surprized you made backups of the HotPot folder. It is the prudent thing to do. When (If?) I get the time, I may adapt the update script to check for such a situation, and display a helpful message.
You may not need this now, but I have attached an amended "view.php" so that you can adjust the size of the Moodle navigation frame, should you choose to use it.
To install the new script, simply place it in your "moodle/mod/hotpot" folder and then unzip it, so that it overwrites the "view.php" that is currently there.
As I think I explained in an earlier message, you can then set the height of the Moodle navigation frame by clicking the "Settings" link for the resource module on the "Adminstration -> Configuration -> Modules" page.
I have also put the amended script into the Moodle CVS, so that in due course it will be available through the downloads on "moodle.org".
This is a great idea (see my other post about my business manager) apart from...
I installed the view.php but I do not have a "settings" link in my modules page - I never had one before, if that matters.
I was surprized when you said you do not have a settings link on your modules page, because the resource module has a setting link all the way back to Moodle v1.
Perhaps we are talking at cross-purposes?
The attached file is a screen dump of the modules page on my Moodle v1.4.4. I have indicated where the "settings" for the resource module is.
Hope it helps
P.S. the url for your modules page should be:
I guess this is the point where I have to utter the Homeric D'oh.
Looking in the wrong place. Yes the resource module is there and has been there since v1
Thanks for the help!