Posted by hoangbien on March 31, 2016 at 3:23am
Dear All,
In my site I created quiz content and set Allowed number of attempts.
- I set allowed number of attempts is 5. I test with a student user take a quiz 5 times. The user can't access to that quiz more time. I want to reset allowed number of attempts for the student. So, they can they can take the quiz 5 times again.
How to do that? - I want to choose allowed number of attempts from 1 to 20.
How to do that?
Thank you so much,
Comments
What we usually do is just
What we usually do is just delete the user's previous attempts.
How to do
Thank you for your help,
I don't understand your solution. What you want to talk?
Delete the user's previous attempts, it mean delete user and add user again?
or reset user's attempts? How to reset user's attempts?
Thank you so much,
HOANG BIEN
Sounds like you need to read
Sounds like you need to read the documentation for the quiz module. All quiz attempts are stored. You find them under the result tab. You can delete them there.
Thank you fuzzy76
It work fine! Many thanks.
I have another question. In my site have 10 quiz. I want:
In quiz1 i set pass rate for Quiz is 75%. I want a user can't start quiz2 if he/she can't pass quiz1. I tried start quiz1 and my pass rate is 20%,but i still start quiz2. Please help me how to:
if (pass rate of quiz 1 of student1 >= 75%)
student1 can start quiz2
else
student1 need to learn quiz1 a gain
Each user can learn only one quiz in a day. Example: Today is 22/04/12, a user can learn only one quiz from 00:00:00 to 23:59:59 (H:M:S) . If they open and start quiz1, they can't start quiz2 until to 23/04/2012
Please help me.
Thank you so much,
BIEN
HOANG BIEN
quiz module does not relate
quiz module does not relate quizzes to eachother in any way. So you need to write your own code to accomplish this, or use the course module.
Thank fuzzy76 very much!
Thank fuzzy76 very much!
HOANG BIEN
Not sure if this helps, a few
Not sure if this helps, a few years ago I wrote this module: https://www.drupal.org/sandbox/joel_osc/1620070 which allows you to make one quiz depend on the result of another quiz. I have not updated it to the most recent rev of quiz, but if you are a developer it is a good starting point.
Thank you joel_osc! I am a
Thank you joel_osc!
I am a developer. Could you send for me the source code of quiz_dependency module? I want to testing and developing the module if could be.
Thank you so much,
Bien
HOANG BIEN
Thank you joel_osc. I tried
Thank you joel_osc. I tried quiz_dependency, it work. Could you share for me the ideas to do this question below.
Each user can learn only one quiz in a day. Example: Today is 22/04/12, a user can learn only one quiz from 00:00:00 to 23:59:59 (H:M:S) . If they open and start quiz1, they can't start quiz2 until to 23/04/2012.
Thank you so much,
Bien
HOANG BIEN
Hi hoang bien, What quiz
Hi hoang bien,
What quiz version did you tried the quiz_dependency? Is it version 4 or version 5?
To make a user can start only
To make a user can start only one quiz per day. I add some code lines in quiz.module
<?php
function quiz_availability($quiz) {
+ $day1 = date("m/d/Y", $quiz->quiz_open); //I don't know how to get Started date of user from user result page.
+ $day2 = date("m/d/Y", $now);
+ $dayTakeStart = strtotime($day1);
+ $dayNow = strtotime($day2);
+ if($dayTakeStart == $dayNow){
+ $result = t('You can not start new lesson now. Please start new lesson on tomorrow.');
+ }
}
?>
However, I don't know "How to get Started date of student from student result page?
Please help me,
Thank you so much,
Bien
HOANG BIEN
Dear don, I tried
Dear don,
I tried quiz_dependency version 4. http://cgit.drupalcode.org/sandbox-joel_osc-1620070/tree/?h=7.x-4.x
Do you think we can add dependency for:
Each user can learn only one quiz in a day. Example: Today is 22/04/12, a user can learn only one quiz from 00:00:00 to 23:59:59 (H:M:S) . If they open and start quiz1, they can't start quiz2 until to 23/04/2012.
on quiz_dependency?
Thank you so much,
HOANG BIEN
Hi Hoang Bien, I'm not sure
Hi Hoang Bien,
I'm not sure if we can do that. Like fuzzy76 said, you need to create your own module to accomplish that.
Thank all, I was finished
Thank all,
I was finished this task yesterday.
I wrote some code in quiz_dependency.module. Now, Each user can access only one quiz per day.
Thank you & kind regards,
Bien
HOANG BIEN
Great and congrats. i wish
Great and congrats. i wish your project running succesfull.