Questions tagged [quiz]
The Quiz module provides tools for authoring and administering quizzes through Drupal.
87 questions
0
votes
0
answers
30
views
Matching question types and answer types in quiz module
There are question types and answer types in the Quiz module. I am particularly interested in the question type Long answer question and the answer type Long answer response. In the answer type, I ...
0
votes
0
answers
21
views
Drupal: script all admin settings for site cloning
I am a newbie Drupal user here, tasked with an exam taking site for a school.
I have run a docker container with version 7.69 and installed Quiz and few other modules, made a lot of settings via an ...
0
votes
0
answers
23
views
why does entity_delete_multiple use a cursor not a set?
I am getting a lot of hits on the quiz module on my site, several thousand a month.
And I am finding from user feedback that I need to delete the old tests (they are all under anonymous login) to keep ...
0
votes
1
answer
164
views
Quiz Module persistance implementation details
In which part of the code is a new quiz stored in the database? What are the functions responsible for storing a new quiz in the database upon the submission of the form for creating a new quiz?
I'm ...
1
vote
1
answer
75
views
How to create custom template suggestion, when there is no hook suggestion?
I would like to create different templates for different nodes, but I cannot see any hook suggestion with theme debug. This is the template from quiz module.
So in theme debug it looks like that:
<...
-1
votes
1
answer
80
views
Drupal quiz permissions per role
How can I set Drupal role to a quiz? I will have more quizez and more roles. Each roles has its quiz.
I have a Drupal 7 with quiz module.
I tried different approaches using node acces and acl and ...
2
votes
1
answer
104
views
How to track user node views and quiz results
I am searching for the easiest way to track wether particular user has read particular group of nodes (training material) and did the quizes that are related to those nodes. In success case I would ...
0
votes
0
answers
225
views
Access denied when view quiz question by itself
If a user tries to access a quiz question, they get an access denied message because I have configured the permissions so that users can't view questions outside of the quiz. Is there a way they can ...
1
vote
1
answer
77
views
Which entity to check in Rules to disallow taking a Quiz after passing it?
I need a way to restrict Quiz access for users who have achieved a passing grade to stop them retaking the quiz to gain more user points.
It displays "You have already passed this Quiz.", but I can'...
1
vote
2
answers
564
views
How to check if user has passed the quiz already before granting user points?
I'm awarding users points for passing a quiz successfully. However, there's nothing stopping the user taking the quiz again and again to score more points.
I have thought of these options, but I don'...
1
vote
0
answers
97
views
Quiz Certificate doesn't show quiz results tokens
I am building a new website to replace a Drupal 7 website that has an online training platform using quiz, quiz_certificate and certificate and a custom content type called syllabus. The website also ...
0
votes
1
answer
147
views
Make quiz link look like a button or apply css style
I have rendered the quiz entity teaser display into a content type and would like to know how to apply a css class to the "download certificate" and "take quiz" links.
Usually this would be done by ...
0
votes
1
answer
521
views
Change display format of date in token
I am using the token for the quiz close date ([node:quiz:quiz-close] in a certificate for the quiz module and would like to change the format. I looked at Date & Time in the configuration settings ...
0
votes
1
answer
167
views
Migrate Quiz Results Data
I need to "migrate" all quiz results from one website to a new one. The quiz ID is different between sites, and therefore, copying over the table from mysql won't work. However, I've made sure that ...
0
votes
0
answers
37
views
What causes my PHP error in my custom VBO action using a Rules component?
I have created a view of unevaluated quiz results and added a vbo field. I created a rule component with action save entity "result" and added the component to the vbo.
When the operation is carried ...
0
votes
1
answer
117
views
PDOException: SQLSTATE[42S22] When adding quiz content
I am trying to implement the quiz module on a new website and it's throwing the following error when attempting to add content > quiz. I believe the code I have was part of a feature I was trying to ...
0
votes
1
answer
40
views
Does changing the order of questions reflected in past quiz results too? [closed]
I have two quick questions about implementing the quiz module:]
I have the questions in a particular order and about 100 people have taken the quiz. We have implemented the quiz results download ...
1
vote
0
answers
29
views
Profile mapping
I am using the Quiz module to create multichoice questions quizes.
I have taxonomy terms as Profile and each question is mapped to a profile using custom codes.
Now I want to display the result (One ...
2
votes
1
answer
169
views
How to create a rule that grants user points after a user passed a quiz?
I'm using Drupal 7 and the Quiz module (version 7.x.5.x).
I'd like to grant User Points to a user whenever a user answers correctly. I have to use the Rules module and I wonder how I can create a ...
2
votes
1
answer
128
views
How to grant User Points after Quiz questions are answered correctly?
I have the User Points module enabled and I want to use the Rules module to create a rule which lets a user win User Points whenever the user answers correctly my questions.
I don't know what should ...
0
votes
1
answer
131
views
Code to take quiz again on the next day after user is failed
In drupal 6, I had a requirement to enable the users to take the quiz on the next day if they failed and from somewhere I got the following code to make that work. They added one more variables, ...
2
votes
1
answer
173
views
How to know that the user has completed a quiz?
Is there any function to pass the user id and the quiz node id and get true or false if the user has completed the quiz?
Or I have to write sql query for this?
0
votes
1
answer
85
views
How to allow a particular user to take quiz very next day in drupal
I have gone through so many question asked here but not find exact answer. The main problem I have faced is to create a quiz using 7.x-4.0-rc2, I made some user who can take quiz. One user can take ...
2
votes
1
answer
585
views
How to perform a redirect after completing a Quiz?
I am using Quiz module. How can we redirect user to thankyou/someother page after clicking Finish button?
1
vote
0
answers
147
views
Drupalgap android app using quiz module
I am trying to create a Drupal 7 quiz site of multiple choice questions. The users should be able to attempt quiz on the desktop site and as well as on an android app developed using Drupalgap module. ...
1
vote
1
answer
76
views
How to insert 2 answers using Quiz submodule Short Answer?
I am using the Quiz module and enabled its submodule Short Answer.
How can I insert two answers instead of one?
Note: Multiple choice is fine, but my problem is at Short Answer: I'm only able to add ...
0
votes
1
answer
37
views
What is the path for form elements which are ajax-enabled
I am working on the quiz module.
I have to modify the form node/add/multichoice by hiding some of the form elements in it.
With the help of krumo function of devel module, I am able to find the ...
2
votes
1
answer
110
views
How to add time element to open date and close date when adding a quiz
I am using the following modules.
Quiz, Version 7.x-4.0-rc2
Date, Version 7.x-2.9
When adding a quiz, in the availability options tab, I want to be able to set the time as well.
In the open ...
1
vote
0
answers
29
views
Getting Issue while using quiz module
I am new to drupal and I am realy stuck.
Module - Quiz
The scenario is - While taking quiz from app suppose i left it in middle and resume it from web then it is working fine but when i ends the quiz ...
1
vote
0
answers
97
views
View of Quiz questions Grouped by their Quiz?
How do i build the following View configuration:
Group quiz questions by their assigned Quiz
Display Quiz title above each grouped list
Display only One question per group and link question to the ...
0
votes
2
answers
67
views
Start only one quiz per day
I used quiz module version 7.x-4.0-rc2 and drupal7 to create content in my site. I created student role to access quiz content.
I want each student can start only one quiz per day. Example: Today is ...
1
vote
0
answers
115
views
How to set marks for scale questions in quiz module?
I am using quiz module to set up a self-evaluation quiz, which consists of five scale questions, the answer of each question is preset (from "always" to "never"). After setting up the quiz I took a ...
-1
votes
1
answer
94
views
How to restrict number of quizzes that somebody can take in a day
I am new to quiz module. I wanted to restrict the users, in a way, they can take only a particular number of quizzes in a day. For example a user with name 'A' can take only 'x' number of quizzes in a ...
2
votes
1
answer
506
views
Multiple choice question - Able to have the question correct with any correct answer [closed]
I am using the Quiz and the Multiple choice modules. In a question, I have two answers correct and I'm hoping to have the question marked right, if any of the answer is chosen.
Right now, if both ...
1
vote
1
answer
322
views
Add multichoice question to quiz node programmatically
I'm using the latest version of drupal and quiz module. In my custom module, I have created a quiz by using below code
$quiz = new stdClass();
$quiz->title = 'Testing Quiz';
$quiz->type = ...
0
votes
1
answer
270
views
Quiz Module - Restart (Reload) the question of the quiz when it has been wrongly attempted four times
I am trying to reload the page (or) make the user attempt the question again if he/she has made four wrong attempts.
I am using Quiz module in Drupal 7.
Is there a possibility?
Thanks
3
votes
1
answer
454
views
How to add a condition (rule) to skip questions when using the Quiz module?
I'm using Quiz module and I have a quiz with questions 1 to 10.
I want this:
Question 1: If answer is yes jump to question 2. If answer is no jump to question 7.
How can I achieve this? Do I need ...
0
votes
0
answers
209
views
Quiz module - Results comments: Using points score instead of percentage
I am using quiz module and I have this:
Question 1:
a) Gathers 0 points
b) Gathers 0,25 points
c) Gathers 0,5 points
d) Gathers 1 point
I want the quiz to sum those points and show a final ...
-1
votes
2
answers
2k
views
How to calculate points for each question of a Quiz and show their total?
I want to build a quiz with points to each question and then sum those points and have a final result.
Example:
Question 1?
A. xxxxxxxx (add 0 points)
B. xxxxxxx (add 1 points)
C. xxxxxxxx (add 2 ...
2
votes
1
answer
121
views
Which .tpl file should I use to theme the quiz module's detail page?
I am using the Quiz module for a requirement.
I want to theme the quiz detail page, multiple choice questions page and the Jquery timer which I am using with that page.
Which .tpl files should I ...
1
vote
0
answers
204
views
Creating a list of Quiz questions that have randomized order?
I'm using the Quiz module and created a view (using the Views module) which lists all of the questions of the current Quiz being accessed, and whether each question has been completed.
The only issue ...
1
vote
0
answers
54
views
Showing the Quiz Score for the current user of current quiz attempt?
I am trying to create a block using Views which shows the current users score for the current attempt of the quiz being completed by the user. The idea here the student can see their overall score ...
0
votes
0
answers
183
views
How to add programmatically contextual link 'edit' to quiz question?
Since the way to get to a quiz question to edit it is very long, I want add a contextual link to each quiz question.
But somehow I struggle to find a solution. Because it is not a block and not a ...
1
vote
1
answer
290
views
Quiz permissions per user
I have installed the quiz module in drupal 7 and I know that there is a permission to allow roles participate in all quizzes. I want that a specific role can participate in specific quiz, not in all ...
0
votes
1
answer
49
views
Various forms of overrides
Hi, my friends!
Sometimes, making an override of a contributed module consists only of: in template.php, copy the function we want to modify and change its prefix "theme" for "my_theme". But this is ...
2
votes
1
answer
391
views
How to get the current question's NID?
When taking a quiz with multiple questions, how do I get the current question's NID? The URL only contains the quiz' NID (node/1234), even when I started the quiz there only this NID is available (...
1
vote
1
answer
627
views
Quiz results/score are over 100 points [closed]
I have a quiz with 5 questions of 10 points each one. When I score them, some exams save the result of the quiz with more than 100 points.
As you can see, I have an exam with 112 but if I open:
...
0
votes
1
answer
1k
views
SCORM (v 1.2) integration for Quiz module [closed]
We are looking for SCORM integration with Drupal's Quiz module.
Essentially we should be able to Import/Export quizzes and questions as SCORM package(s). Ideal if SCORM player can be used for quiz ...
1
vote
1
answer
73
views
How to autoupdate quiz question to newest version?
We have round about 200 quizzes with 5-10 questions. And most of the questions were updated by us. But we realized that quiz shows only the old versions.
Only solution so far is to check quiz by quiz ...
1
vote
0
answers
621
views
How to programmatically take a quiz with multiple questions
I have one quiz with multiple questions.I got a solution for taking quiz with multiple questions.
$account = user_load($quiz_taker_uid);
// Load quiz and question nodes
$quiz = node_load($quiz_nid);
...