Closed (fixed)
Project:
Quiz
Version:
6.x-4.x-dev
Component:
Code - Quiz module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Jul 2009 at 01:45 UTC
Updated:
22 Jul 2010 at 14:50 UTC
To support question bank uses, we can have an "item collection" type that organizes questions into a collection. This would be much simpler than quiz and not have any score weights or other features for "taking" a quiz.
The collections can be modified and shared between users. With a button press they can be turned into quizzes or exported into other formats.
Comments
Comment #1
sivaji_ganesh_jojodae commentedSound good for me. I think this Item collection type will have only the "manage questions" functionality of a typical quiz isn't it ?
Comment #2
turadg commentedYes, basically. I just committed it so you can take a look.
The "Manage items" tab is mostly the same as "Manage questions" of the Quiz type, but changes the terminology, layout and organization of the interface to be appropriate to a collection.
I based it off code in quiz.admin.inc but took out random question handling and refactored quiz.admin.inc so I could re-use just the relevant parts.
Comment #3
sivaji_ganesh_jojodae commentedNice it works. Few thoughts for you
1. keep the "Add new question" collapse open by default
2.
"question bank" name sounds more appropriate than "question Item collection" isn't it ?This question has been answered here http://www.imsglobal.org/question/qtiv2p1pd2/imsqti_oviewv2p1pd2.html and http://www.imsglobal.org/question/qtiv2p1pd2/imsqti_infov2p1pd2.html
3. How do i convert a "item collection" into a quiz ?
4. There is a better way to load file
module_load_include('inc', 'quiz', 'quiz.admin');. You can use this instead of PHPrequire_once.5. make sure you have turned off all the debugging statements like
print "wtf?";exit;before you commit the code.6. warning: Invalid argument supplied for foreach() in /home/sivaji/Public/quiz-dev4/includes/form.inc on line 757. i get this error message when i submit an empty autocomplete form. Quiz module doesn't behaves in this way.
Do you mind adding this feature to quiz 4.x alpha 1 (http://groups.drupal.org/node/24066) ?
Comment #4
turadg commented1. I had thought about whether to have "Add new question" collapsed or not. I decided to collapse it because it kills so much space. I have some better ideas now for how to save space so I'll leave it open until I implement those.
2. For other people reading, I thought I'd clarify that Sivaji and I discussed this suggestion in IRC. I explained that "item" is a more standard and encompassing term than "question", and that this type is for a "collection" within a full "bank", that a Drupal installation may be.
3. That's next on my list.
4. That's handy. Thanks.
5. oops. That was frame some late-night debugging I forgot about. I didn't notice because it was in an uncalled block of code.
6. I can't reproduce that warning. Can you backtrace it to a line in qcollection?
Comment #5
turadg commentedThe quiz generator is implemented now with an "Export as quiz" button in the view.
I've also added the question items to the main view, though there's more work to do there.
Comment #6
turadg commentedComment #8
JoeMemory commentedIt's fantastic! I love what you're doing right now! Also, another quiz generator
Comment #9
turadg commented@JoeMemory, this feature was removed some months back. What did you like about it that we can try to make sure stays around? Are you planning to link it with the QuizCreator product you sell?