Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
Is it possible to have some way to tell the Quiz module how many userpoints should be given for each question?
I have 2 scenario's:
1. A 1 question quiz that when answered correctly, xxx points will be earned.
2. A series of questions where you can get variable userpoints e.g.
Q1: 10 userpoints
Q2: 150 userpoints
etc ...
For scenario 2 maybe add a php field to each question where you can type your own points-calculation for this question.
Thanks in advance
FF
Comments
Comment #1
Sivaji_Ganesh_Jojodae CreditAttribution: Sivaji_Ganesh_Jojodae commentedYes. In "manage question" tab set max score to desired value. If the question is answered correctly the respective point will be added to userpoints at the end of the quiz. Hope this will help.
Comment #2
FreeFox CreditAttribution: FreeFox commentedThanks very much for the quick answer. This is what I was searching for, except ... the max points there is 99.
Any idea where I can raise the max score?
Thanks in advance
FF
Comment #3
Sivaji_Ganesh_Jojodae CreditAttribution: Sivaji_Ganesh_Jojodae commentedI can't imagine a question with max score > 99.
Anyways here the fix. In quiz.admin.inc around line no. 850 change to '#maxlength' => 3,
Comment #4
FreeFox CreditAttribution: FreeFox commentedThanks again for you quick answer ;)
The reason why > 99 = that the site is working with userpoints and when answered the question correctly you get 500 points extra, can be even > 10.000 ;)
I'll change the code accordingly and keep this alive as feature request.
Thanks
FF
FEATURE REQUEST
------------------
Please provide a field in the quiz settings where you can enter the maximum points.
Thanks in advance
Comment #5
FreeFox CreditAttribution: FreeFox commentedChange category
Comment #6
djdevinThis issue is being closed because it is filed against a version that is no longer supported.