Jmatch images

Jmatch images

by Dale Quattrin -
Number of replies: 4
I am trying to include a match question w/images into my Moodle quiz. I created the question using Hot Potatoes Jmatch and save it as a jmt file. I then uploaded that file with the associated JPG images to the Moodles Files folder. After importing the file to the quiz and previewing the question, I do not see the image in the question. Instead, I see the names of the image files where the images should appear. If I export the file to a Hot Potatoes version 6 web page from within Jmatch and then preview it, everything displays correctly. What am I doing wrong in Moodle. Any help would be appreciated.
Average of ratings: -
In reply to Dale Quattrin

Re: Jmatch images

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers
Have a look at the source of the question when it is displayed in your browser and check to see what url the image is given. That should help you on your way to discovering where to put the image file so that it is where the Quiz module expects it to be.
In reply to Gordon Bateson

Re: Jmatch images

by Dale Quattrin -
Thanks for the response.
Below is an example of what is found in question question area when I am editing in the browser. This looks like it has the right folder and this is where there images are. I even tried this using the Hot Potatoes quiz module and still got the file name.

<img src="http://learning.bcisd.org/file.php/389/Chapter_04/Alphabet of Lines/Object line.JPG" alt="Object line.JPG" title="Object line" width="206" height="45"></img>
In reply to Dale Quattrin

Re: Jmatch images

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers
First please confirm that this is the same url that you see when you go to the course Files folder, nagivate to the "Chapter_04/Alphabet of Lines" folder and click on the "Object line.JPG" link.

If the URLs are not the same, then that is the cause of the problem and to fix it you need to make the URLs the same.

Otherwise ...

... I think your difficulties are caused by the spaces in the url so you should do the following:
  1. rename "Alphabet of Lines" to "Alphabet_of_Lines"
  2. rename "Object line.JPG" to "Object_line.JPG"
  3. adjust the URL in the quiz question
To prevent similar problems in the future, I suggest you remove *all* the spaces from the names of the folders and files on your PC that you intend to upload to Moodle in the future. You will also need to adjust the URLs of the images that are used in your Hot Potatoes quizzes.
In reply to Gordon Bateson

Re: Jmatch images

by Dale Quattrin -
I got it to work. First, renamed the image files to eliminate any spaces and reinserted the image in the question. However, when I imported the new version of the Jmatch file, it only displayed the images of the files where I change the name. The files with single word names did not display.

Therefore, I started from ground zero and recreated the question making sure that all the image and the Jmatch files were in the same folder when creating the question. I also renamed the image files so there were no spaces. I then zipped and uploaded all the files to the appropriate moodle folder. After unzipping and importing the jmt file into Quiz, all the images popped right up.

Thanks for your help and suggestions.