Posts made by Joseph Rézeau

Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hi George, thanks for clarifying things. This is weird.

Please tell us where exactly in your Cloze question text you place a link to an image, what kind of sub-questions the Cloze question contains, etc. I hope you are not placing the image in the sub-questions text itself? Please post here screenshots, complete text of your Close question, etc. anything which can help us to understand.

What happens if you insert a simple smiley?

Also, if you examine your exported question xml file (with an ordinary text editor), what can you see? Do you see what I highlighted in my xml file attached?

Joseph


Attachment image00.jpg
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hi George,

As you are aware, the question of images attached to Moodle's Quiz questions is recurrent on this forum.wink

As you say, it is, of course, quite possible to insert an image anywhere within a Cloze question's text, by using the Insert Image button in the HTML editor. However, what you must understand is that - by using that feature - you insert an absolute link to that image's URL where it is located in the moodle course where you are authoring that question.

  1. When you export your question (or, rather, the category where that question is located), the moodle XML format does not export your image file, it exports a link to its original, absolute URL.
  2. If you then import your question to another course on the same moodle or to another moodle installation, then the image's URL still points to its original location.
  3. In the very likely situation where you are a teacher in both those moodle courses, then, of course you will see the image, because the URL is valid and -very important- you have the rights to display the image, being enrolled in both courses.
  4. On the contrary, if the original location of the question was in Course A, and you export and import your question to Course B, then, a student enroled in Course B but not enroled in Course A will not see the question. Because they don't have access to Course A where the image is located.

It's a simple as that (unfortunately).

Tim, I seem to remember that - at some stage in the past - there was provision for exporting images, and not just for quiz questions, but other moodle modules as well. Images were included in the export, as a kind of "encoding" and were then "copied" to the new course where the export file was imported. But maybe I dreamed of this. Tim, please correct me if any of what I say above is incorrect.

Joseph

Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Oops! You should never ever copy-paste text from MS Word into Moodle's HTML editor. In that process you are sure to paste some invisible formatting code which will cause all kind of problems, including the one you are telling us about. Please make it an absolute policy for yourself, your teachers and the students:

Never copy-paste text from MS Word into Moodle.black eye

Joseph

Average of ratings: Useful (1)
Picture of Développeurs Picture of Développeurs de plugins Picture of Moodleurs particulièrement utiles Picture of Testeurs Picture of Traducteurs

Moi ceux qui me dérangent dans les forums, ce sont ceux qui ne parlent pas, ...

Pour la défense de ceux qui ne parlent pas :

Désormais est temps de moi taire,
Car de dire suis-je lassé.
Je veux laisser aux autres faire :
Leur temps est ; le mien est passé.

Alain Chartier, La Belle Dame sans merci