text and/or an image, without requiring an answer. Can be used
to provide text for a following group of questions, or to insert
a joke in the quiz etc ...
This code is based on code sent in by Ursula Raab. Thanks!
See: http://moodle.org/mod/forum/discuss.php?d=508
... this grade is used as the default grade when adding questions
to a quiz.
At the moment it's just so that some imported questions can have
different defaults, but a field should be added to all question
editing pages.
of questions. These use 2 or more short answer questions at
random to construct a questions where you have to match
answers to questions. Only lightly tested so far.
Quiz questions can now be edited with Richtext editor.
Sundry little fixes along the way.
Firstly, I'm replacing all use of old-style global variables like
$HTTY_REFERER with their new-style equivalent $_SERVER["HTTP_REFERER"]
Also using $_POST instead $HTTP_POST_VARS etc
Secondly, if gdversion == 0 (ie GD is not installed) then:
- users are not even allowed to upload new images
- graphs now just print a message instead of failing.
this allows Moodle to still be used even if GD is not present
Should be fixed now. As a bonus, I've removed all the uses of
HTTP_POST_VARS from all scripts.
All forms should use the new data_submitted() function to collect
form data (it does the match_referer thing internally now).
Much nicer.
If you have existing quizzes, delete them all, then
drop all the quiz tables and delete the quiz line from
the modules table.
Things to do still:
- add/edit/remove categories
- display question feedback on submissions ...
- record the time they started the quiz, as well as the completion.
- place time limits between attempts
- add full specification of quiz open time and quiz close time