I've been using Quiz for a couple weeks for a project and I thougt of 3 features that could be added to this wonderful module (nice work by the way).

The first feature would be to add an other state beyond 'not started', 'in progress' and 'finished'. The state would be something like 'checked'/'seen'/'closed'. Because 'finished' is automatic but it would be nice to inform Drupal, that someone checked the results of a candidate. (I was able to add a state by some specifi dev, but not sure it was the best and the most efficient way). Here is a similar post.

The second feature is about being able to leave a general comment or an appreciation to a quiz results (using relation between rid and the comment module, but I'm not sure how).

An other great update would be about the permission and access with quiz. Right now it's confusing. It's even more confusing when you add modules like content access with ACL. I would like to be able to associate a quiz to a specific user and inform that user that he needs to answer the quiz and link him to this specific quiz, but it doesn't seem to work. You can find a similar post here.

If you need furthermore information, let me know.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pbonnefoi’s picture

Title: 2 features requested » 3 features requested

Any Idea for the general comment for a quiz results ? I was thinking about adding a new field in the comment table to store the result_id on top of the nid. I'm having trouble building the comment form on the quiz-report-form.tpl.php. I would appreciate any help.

Also with the quiz access issue, any idea of a more granular management of the quiz access (by user).

pbonnefoi’s picture

I don't know if anyone is interested but I was able to find a solution for my issues.

Some dev was needed to be able to comment a result and to display it. I'm not sure I used properly the ressources of Drupal for that, but still I added a field in the comment table to get the rid of a quiz.

About the user access, I was able to fix the problem with digging in the content access with acl settings. Now the quizes only show to the proper user, but no automatic email is send.

I can give more detail if someone is interested.

acrazyanimal’s picture

I have a similar need as your #1 request. My use case is that we do not want to release results to the quiz takers until a quiz admin has taken a look at the results first.

I noticed that there is a 'released' field on the quiz_node_results table that is not being used anywhere in the module. I'm not sure what the maintainers are envisioning for this field, but I imagine it is something close to what I and @pbonnefoi are looking for. I'm including a patch that exposes this field to views.

What I am thinking is that I will create an action that will set this 'released' field to 1 through some rules integration. A rules action component. Then in views I will have a block/page that displays all quiz results that have released=0. Using bulk operation I will pass the quiz result id to my rules component that then sets the released value to 1. Then on the user page there will be two views. One that displays all quizzes they've taken but have not had their marks released yet. So no score displayed. The second would display the quizzes that have been released and the marks would be shown.

I have not implemented this yet, but here is the patch for the views. I'll post again if I get it to work.

acrazyanimal’s picture

woops, BTW, my patch is against 7.x-4.x

pbonnefoi’s picture

Well thanks for the reply. At least if the feature is planned to the version 7.x, it's a great news as I'm not planning to stay on the version 6.x for ever :D. (I installed the version 6.x as it was not stable on Drupal 7 at the time).

It's a great module and the more settings there is, the better the module will be. This module could suit a lot of needs.

acrazyanimal’s picture

Status: Active » Needs review
ssoulless’s picture

Version: 6.x-5.x-dev » 7.x-5.x-dev
Priority: Normal » Major
Issue summary: View changes
Status: Needs review » Active

Hello this features are nice. I would like to add another feature to this issue. Would be nice custom permissions for score quizzes. for example:

User 1 creates a quiz, then he gives the permissions to User2 and User3 for score the results of his quiz. use some hooks for this or an API for this feature would be fantasctic for let developers like me add these permissions programmatically.

Drupal 6 is near to be deprecated, so please, new features should be developed for Drupal 7 first then we can think in backport them to Drupal 6.

djdevin’s picture

Category: Feature request » Support request
Status: Active » Closed (fixed)

5.x results use the entity API

Commenting on results will be possible in #2386103: Decouple quiz result/scoring