Quiz in ezsurvey

Author Message

Michael Enger

Wednesday 16 February 2011 12:52:38 am

I want to create quizzes for my site and I was wondering if it was possible to do this using ezsurvey. I'd like to validate the answers given to show a final score, associate the quiz with a user to prevent multiple entries and have statistics on how many people answered correctly.

Can this be done using ezsurvey or should I create a new extension?

Michael Enger

Tuesday 08 March 2011 11:46:42 pm

I have discovered that you can add custom entry types in ezsurvey by using the ini setting QuestionTypeList. Does anybody have any information about this?

Also: bump

xavier cousin

Thursday 10 March 2011 1:47:41 pm

Hi Michael,

eZ Survey allows you to add your own question type so it is possible to do but it requires a bit of development.

I just released an extension that adds a "matrix" type to the question types:

http://www.mugo.ca/Blog/New-Matrix-question-type-for-eZ-Survey

You should find in this extension the information you need to create a new question type.

I'm sure you can even re-use it and with little changes make it work for your specific needs. You would probably just need to store an extra information in the question description which would be for each possible answer the correct one and then in the report just change the logic so that you get a report per user rather than per question.

Hope this will help!

Xavier

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.