Problem with question categories

Problem with question categories

- mark furrer の投稿
返信数: 1
Hello

I found the following problem in the moodle documentation:

Qustion Categories:
There is a potential problem however if other courses try to use a question with an image: students will not be able to see the image unless they are also enrolled in the course that owns the question category. If you don't want this it might be better to create or import a local copy of the question in your own course.

This is the problem I have at the moment that the student are not able to see the pictures.

How do I create or import a local copy of the questions to the own course?

Please help

Greets Mark
mark furrer への返信

Re: Problem with question categories

- John Isner の投稿
Here are instructions for Moodle 1.6 (menus have changed in Moodle 1.7, but things work pretty much the same).

In the course that has the images,
  • go to Administration -> Files
  • check boxes next to all images you want to copy
  • in the "With chosen files" menu at the bottom, select "create zip archive"
  • once the zip file is created, click it; this will bring up a dialog allowing you to download the file to your local disk
In the target course (the course to which you want the images copied)
  • go to Administration -> Files
  • click the "Upload a file" button and upload the zip file from your local disk
  • once the zip file is uploaded, click the "Unzip" link (to the right of the file name)
If the images are in a subfolder in the original course, use the same structure in the target course (it will make things easier).

After doing this, your image links may still be broken. If so, you have another step. If there aren't too many images, I would suggest doing it manually. First, note the course number of the target course (look in the address bar for the id=x at the end of the URI). For each quiz question containing an image...
  • Edit the question (click the hand-with-pencil icon)
  • Toggle HTML mode (<> button in editor)
  • Replace the course number in the image src by the course number of the target course.
  • Toggle back to normal mode and you should see the image
Quite a pain, isn't it? When you're finished, please vote for MDL-9134 ("Need a good solution to the problem of sharing files and resources among courses").