Images in questions can't be seen

Images in questions can't be seen

by Bernat Martinez -
Number of replies: 6
I include images in the questions using a table (the image is inserted in a cell, see atachment).What happens is that if I acces as a teacher I can see the images. But, students from their computer can't see the images.( but if a acces from my computer as a student I can see the images).

I'm using moodle153, but some test in 16 shows the same

Has somebody come acroos something like that?

I have made many attemps but no succes til now

Attachment question.JPG
Average of ratings: -
In reply to Bernat Martinez

Re: Images in questions can't be seen

by Dr S Bhatia -
there may be several reasons. First question is: Where are these image files actually located?
If they are on one server while moodle on another server, then make sure URL linking is correct. Then make sure that the other server does not have  'hot link protection' turned on (HotLink protection prevents other websites from directly linking to files (as specified below) on your website. Other sites will still be able to link to any file type that you don't specify below (ie. html files). An example of hotlinking would be using a <img> tag to display an image from your site from somewhere else on the net.)

Another probable one that strikes me is: the link of these images has been placed incorrectly and probably(somehow) refers to that comp which is yours and thus works only on ur PC.

try this
upload a file on ur moodle website at (for e.g. at wwwroot/images/testimage.jpg (windows) or blah/blah/public_html/some folder/testimage.jpg

Then try a raw access by typing this link in a browser from a student's PC
If the image does not appear- server settings need to be checked
If the image appears, your linking pathways need to be checked.
Regards
In reply to Dr S Bhatia

Re: Images in questions can't be seen

by Bernat Martinez -
Many thanks for your answer. the images are stored in the same server as moodle, concretly inside moodledata.
As you recommend I have tried to store them in another file outside moodle and it worksw fine.
In reply to Bernat Martinez

Re: Images in questions can't be seen

by Fig Newton -

Images in published questions no longer display in moodle 1.6 if the question is used outside the course in which it is defined. The only work around that I know of is to upload the images into a directory that is open to all web users and to link the image using html, rather than the question drop down menu.

Insert this code into your question

picture

I've always had mixed luck with .gif format and try to stick to .jpg. Older versions of Internet Explorer often seems to be the culprit when my students report not being able to see images in a quiz.

Fig
In reply to Fig Newton

Re: Images in questions can't be seen

by Bernat Martinez -
Many thanks for your clarifying answer .
I will follow your advice but I couldn't see the code as it seems that the picture link is broken

Bernat
In reply to Bernat Martinez

Re: Images in questions can't be seen

by Fig Newton -
Sorry about that, I posted the html code but moodle defaulted to try to resolve the text into an image.

Here is the code snipet.

<img src="http://mymoodlesite.com/images/picture.jpg" title="picture" alt="picture" />

In reply to Fig Newton

Re: Images in questions can't be seen

by Dr S Bhatia -
I hope your problem is solved now.
This is exactly what i had meant. I never realized that u wouldn't know how to insert the html code for a picture. i thought you are inserting the code correctly but the folder in which it is located is not publicly accessible etc.

Actually this is the best way of doing this also because you can then do the following:

  1. lets say you have a folder called www.yoursite.com/images
  2. put ALL your images there in various folders. eg. test1, physics1, chemistry1 etc
  3. Create your tests offline in textpad/notepad. A question would look like this:
    1. which is the correct diagram for water's behaviour with change in temp?<img src="http://www.yoursite.com/images/physics1/q1.jpg"> { ~A ~B ~C ~D =E}
This way you can create a whole quiz offline, successfully inserting the images also.

Security: since images is a public folder, the students(who are pretty smart) may right click on images during quiz and locate the url of pictures. so do the following:
1. server: set server settings not to allow raw listing of directory contents
2. always show quiz in secure window where right click is disabled
3. enable hot-link protection on your site

This will provide some security, though nothing is fool proof.