FOUND A SOLUTION!!!
Just thought someone out there may want to incorporate this into their own quizzes.
What I have done is allowed the students to take the quiz twice in a 24 hour period.
- 1st attempt = failed
- wait 30 mins
- 2nd attempt = failed
- wait 24 hours
- 3 attempt = failed
- wait 30 mins
- 4 attempt = failed
- wait 24 hours
- and so on and so forth.
This is a really simple modification to make. You have to edit 2 files (attempt.php and view.php) under the mod/quiz folder.
In attempt.php, around line 177 find this line:
- if ($numattempts == 1 && $quiz->delay1) {
and change it to:
- if ($numattempts % 2 == 1 && $quiz->delay1) {
around line 181 find this line:
- } else if($numattempts > 1 && $quiz->delay2) {
and change it to:
- } else if($numattempts % 2 == 0 && $quiz->delay2) {
In file view.php, around line 321 find this line:
- if($numattempts == 1 && $quiz->delay1) {
and change it to:
- if($numattempts % 2 == 1 && $quiz->delay1) {
around line 328 find this line:
- } else if($numattempts > 1 && $quiz->delay2) {
and change it to:
- } else if($numattempts % 2 == 0 && $quiz->delay2) {
I hope that someone finds this useful.
Sam