Publicaciones hechas por por Joseph Rézeau

Imagen de Core developers Imagen de Plugin developers Imagen de Testers Imagen de Translators
The concept of general feedback goes against the concept of "appropriate detailed feedback" in the REGEXP question type. However, I may implement it if there is a demand. This will be for moodle 1.8 onward only (1.9, etc.). Which version are you using at the moment?
Joseph
Imagen de Core developers Imagen de Plugin developers Imagen de Testers Imagen de Translators
Hi James,
We'll have to wait until Tim Hunt returns from his (well-deserved) holiday for a definitive answer, but I have the feeling that what you want is not possible. It is not possible because the short answer "analysis" system would probably not be able to process students' answers formatted using the HTML editor.
Joseph
Imagen de Core developers Imagen de Plugin developers Imagen de Testers Imagen de Translators

Sylvain,

I have not problem at all creating T/F questions in Moodle 1.8.2 (latest available stable version). See attached. If you like you can send me privately (see my e-mail address in my profile) a set of those T/F questions which cause problem, but there must be something wrong on your moodle install which means your problem cannot be replicated on other installs.

The error message you are getting comes from file moodle/question/type/truefalse/questiontype.php

 if (!$true->id = insert_record("question_answers", $true)) {
 $result->error = "Could not insert quiz answer \"true\")!";
 return $result;
 }

It means there is a problem with inserting your question into the database, so I suspect there is a problem in your database.

For example, in table mdl_question_answers, it should record for question #58 something like:

id question answer fraction feedback
137 58 True 1 ok
138 58 False 0 no way

Which language are you using in your course? English or French? Have you updated the language pack recently?

Of course as a last resort you could use the MCQ question type to enter your T/F questions.

Joseph

Anexo image00.jpg
Imagen de Core developers Imagen de Plugin developers Imagen de Testers Imagen de Translators

Hi James,

In file moodle/question/type/regexp/display.html, line 15, change the size parameter from actual 80 to any value you like.

 <input type="text" <?php echo "$readonly $inputname $value"; ?> size="80"/>&nbsp;

Joseph

Imagen de Développeurs Imagen de Développeurs de plugins Imagen de Testeurs Imagen de Traducteurs

Valery,

La perte d'authentification peut survenir si on a lancé deux sessions dans des versions différentes de Moodle sur la même machine. J'ignore si c'est ton cas, mais comme c'est un cas de figure fréquent pour moi, la solution est de mettre un cookie prefix dans: Administration Server Session Handling: Cookie prefix sessioncookie

This setting customises the name of the cookie used for Moodle sessions. This is optional, and only useful to avoid cookies being confused when there is more than one copy of Moodle running within the same web site.

Evidemment, il faut mettre un "cookie prefix" différent pour chaque version de moodle sur ta machine; attention, mettre seulement des lettres, pas de chiffres.

Joseph