Posts made by Joseph Rézeau

Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Mike,

When you include in an HTML block any object (usually a picture, but could also be a table, etc.) whose width exceeds the default width of the left or right blocks, FireFox and MSIE differ in their display behaviour.

Firefox will automatically extend the width of all the blocks in that column in order to accomodate the wider object existing in one of the blocks. MSIE will display the over-wide object in its HTML block but will not extend the width of the blocks, hence the unpleasant "pushover" resulting effect.

Reason: a difference in the interpretation of the CSS rules between those two browsers.

In the case a hand, it is the Match Up "game" which you have included in one HTML block on the right hand side of your site's front page which is the culprit. When you included it (from http://www.thefreedictionary.com/) you selected as width: 225px. But the default width of blocks in Moodle is min. 160px and max. 210px (for the front page).

Remedy: I have not found a way to do this by tweaking the CSS in your theme. However, there is a solution which is only valid for the front page of your site (not if you have the same problem inside courses themselves).

You'll have to hack file \moodle\index.php, right at the beginning of the file, locate:

/// Bounds for block widths on this page
define('BLOCK_L_MIN_WIDTH', 160);
define('BLOCK_L_MAX_WIDTH', 210);
define('BLOCK_R_MIN_WIDTH', 160);
define('BLOCK_R_MAX_WIDTH', 210);

Change e.g. define('BLOCK_R_MIN_WIDTH', 235);

and... your Match Up block now fits inside its HTML block and all the other blocks take up the same width (in MSIE). This hack does not change anything to the (desired) display in FireFox.

QED,

Joseph

Picture of Développeurs Picture of Développeurs de plugins Picture of Testeurs Picture of Traducteurs

Bonjour Christophe,

Lorsqu'on a créé une question (de n'importe quel type) dans la "banque de questions" de Moodle, il est possible de la modifier ultérieurement. Une fois la question modifiée, on la sauvegarde en cliquant sur le bouton Enregistrer.

Si on souhaite recopier une question existante pour créer une autre question sur le même modèle avec une petite variante, on l'édite, on fait la modification (on change éventuellement son nom, pour éviter la confusion avec la question originale) et on clique sur le bouton Enregistrer comme nouvelle question.

C'est à ça que sert ce bouton.

Joseph

PS.- On parle bien ici de question, pas de test. Un test comporte plusieurs questions.

Average of ratings:Utile (2)
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

Hello Jean-Michel,

Actually the place to change the separator is not in file question/type/multianswer/questiontype.php but rather in your own detailed plugin file: quiz\report\responses\report.php, line 363, replace:

$response = implode(', ',$responses);

with

$response = implode(' ',$responses);

Tested with Moodle 1.6.3, it works fine.

Careful! If you want to be able to analyse answers for each Cloze subquestion in Excel you must not select Dowload in Excel format but Download in text format and save the file, e.g. MyCourse_myQuiz.txt.

Then go into Excel and import MyCourse_myQuiz.txt into Excel. If you are using an UTF-8 compliant version of Moodle (i.e. from version 1.6) and if you have non-English characters in your exported file, you'll probably have to tell Excel to use Unicode UTF8 import instead of the default Windows ANSI character set. Then tell Excell that your data is semi-colon separated, and... that's it.

Of course, the column headings won't be correct, because there is no mechanism provided in detailed responses export to break questions into subquestions (or answers into sub-answers in the case of multiple choice, multiple answer). So you'll have to type those column headers by hand (see line 4 in red in Excel screenshot). See attached screen shots.

Hope that helps.

Joseph