We also need the import feature and I am about to code it. Unfortunately I cannot promise anything, but if I am not finished within 1 month I get in troubles here .
If Marting likes the code and accepts the changes, then maybe import/export will be in one of the next releases.
I know my students easily steal their knowlege one from another, with pleasure!
So random questions would be interesting step towards privacy and reliable answers.
Hi,
Think i can help with the .txt quizzes. Finishing off a module to input text quizzes directly to the database at the moment, it willl also have the capabity to add any images to a limited number of the questions, say the first 10 or so of each batch. will have more news soon, busy at the minute finishing off my thesis. The format being worked on is in the attached file.
I'd love to take a look at your module when you've had a break from the thesis writing. Format looks like a multiple choice only. Does the module differentiate a true false like:
FOO333;;
Will studying about the law give you cancer?!Yes:No|0:1;;
// no that's a trick question..
Also did you have an particular attachment to the formating of the text inputs?
good luck with the writing!
haven't done anything to differentiate the question type as yet James. it should n't be a big task to make an adjustment for True/false, it would require an extra parameter to specify the question type for entry to the database.
i'll have more news when i get a bit more time.
In our installation of the moodle system we decided to create a new module to work in conjunction with the quiz module to upload a file containing prepared multiple choice questions.
The import section being introduced in the moodle quiz module in the CVs seem to be the adapted approach for moodle. However in our system we did manage to upload a file and insert the questions in to the relevant databases so the questions were available in the course. We also facilitated the insertion of images for the first 10 questions.
We used a file originally based on the index.php and mimetypes.php file in moodle/files directory to upload and select the required files from the PC, and then a file called readfile.php to split up and insert the question details.
I am attaching our code we are using in the hope that it will help with the development of the new import function in the quiz module. It may take a bit of work to integrate to your own system but the basic functionality is there.
I have also included the format for the quiz files accepted by our system. We have made some changes from the format; the course code is not now needed.
Paul