I created one QuizPort and three HotPot activities on your test site, that demonstrate the problem I am faced with.
As part of a QuizPort the HotPot quizzes are not displayed as they supposed to be, when one of the navigation options "navigation frame" or "embedded IFRAME" is selected. Both options doesn't have any effect compared to the option "navigation bar". As single HotPot quizzes however they do.
Do I get something wrong? I would be great, if you could take a quick look.
Thanks for your support,
Best R. Fritz
thanks very much for uploading the quizzes to my server.
The problem here is very simple: the "embedded IFRAME" and "navigation FRAME" options are not impemented yet in QuizPort. I do plan to put them in at some point. Probably I will have a time for it in December.
hoping you can wait a little longer
it seems I was being a little over-cautious in my previous email. I had a look at what was involved and realized that it was basically a case of copying over some code from the HotPot module. So I did that and tidied it up and now "moodle navigation frame" and "Embedded IFRAME" work.
Actually, this functionality now works better than in QuizPort than it does in the HotPot module, so I need to go and fix up HotPot.
I think one reason I had not implemented this in QuizPort in the past, was that since the CSS (=stylesheets) are pretty well separated in QuizPort, they do not conflict with the Hot Potatoes CSS as much as they do in the HotPot module, so there is less need for the navigation frame and iframe. As I rememeber, my motivation for adding those to the HotPot module was to allow the styles to remain separate.
Anyway, QuizPort is all fixed up now so please download the latest version and enjoy!
can you still let me know, where I can find the code in QuizPort that prints the page for the case HOTPOT_NAVIGATION_FRAME.
For normal HotPot quizzes this happens through view.php in the hotpot folder. Modifications I made there, however, does not have any effect to the display of HotPot quizzes inside a QuizPort. Am I correct and QuizPort uses its own code for the page setup?
Thanks again for your great support,
the pages containing the frames are printed here in the following script ...
P.S. I just made a small but important change to "mod/quizport/output/class.php" so that it doesn't try to print frames when the QuizPort cron job is running. Please could you download the latest QuizPort when you have a chance.
print '<frame title="'.$title_top.'" src="'.$src_top.'" noresize scrolling="no">'."\n";
print '<frame title="'.$title_main.'" src="'.$src_main.'" noresize>'."\n";
Thanks for your support. Everthing is working well again.
I have put them into QuizPort. By default they are not enabled, but if you add the following switch in your config.php, then the frames become "fixed" that is to say they lose the border, they are not resizeable and the top frame does not scroll.
Here's the switch to add to your config.php:
- $CFG->quizport_fixedframes = true;
Please download the latest version QuizPort to get the new functionality:
I went ahead and added two new QuizPort config settings for frames which you can modify via the Site administration -> Activities -> QuizPort page.
- Frame height (default = 85)
When a quiz is displayed within a frame, this value is the height (in pixels) of the top frame which contains the Moodle navigation bar.
- Lock frame (default = No)
If this setting is enabled, then the navagation frame, if used, will be locked so that it is not scrollable, not resizable and has no border