is it possible to test a quiz before it's starting?
TIA
No, but if you want to test a quiz without opening it for students, you can do the following:
- hide the quiz
- change the opening date to make the quiz available
- test the quiz
- change the opening date back
- reveal the quiz
Thanks
Hi Harald,
Przemyslaw answer is right.
But if you are taker for two small hacks then yours teachers will never have to worry about it:
moodle/mod/quiz/attempt.php
around line 244 add : if (!$available and !isteacher($course->id)) {
error("Sorry, this quiz is not available", "view.php?id=$cm->id");
moodle/mod/quiz/view.php
around line 157 add : if ($available or isteacher($course->id)) {
$options["id"] = $cm->id;
Please test it on a "sandbox" before.
Have good hack,
Bernard
Przemyslaw answer is right.
But if you are taker for two small hacks then yours teachers will never have to worry about it:
moodle/mod/quiz/attempt.php
around line 244 add : if (!$available and !isteacher($course->id)) {
error("Sorry, this quiz is not available", "view.php?id=$cm->id");
moodle/mod/quiz/view.php
around line 157 add : if ($available or isteacher($course->id)) {
$options["id"] = $cm->id;
Please test it on a "sandbox" before.
Have good hack,
Bernard
It would be nice to have it in the standard distribution. Or, are there any downsides of this?
hi bernhard, thanks for this,
i will try this, only thing it will get lost everytime i update with csv.
thanks
i will try this, only thing it will get lost everytime i update with csv.
thanks
Hi Przemyslaw,
I use it for more than one year ( it was my first Moodle hack not too big ) on some Moodle versions and I didn't notice downsides.
If others test it may be in standard distribution with maybe, a configuration switch to enable it.
Bye,
Bernard
I use it for more than one year ( it was my first Moodle hack not too big ) on some Moodle versions and I didn't notice downsides.
If others test it may be in standard distribution with maybe, a configuration switch to enable it.
Bye,
Bernard
This capability is now in MOODLE_14_STABLE and HEAD branches: teachers can always take a quiz regardless of start/end dates.