Hello,

I was wondering if someone could tell me is my idea is feasible or how I can overcome this problem I am experiecing.

Basically, I was originally using a login system to track my users quiz results and using views I was able to display them back to my users at the end of the e-courses I have been developing.

But due to users with different cookie level I have been forced to scrap the login system. Consequently all my users are anonymous which makes my views method to display results functionless.

So, I was wondering it it would be possible to find out how the quiz results are currently being save and it would be possible to save this in a separate custom session table that I intend on creating in order to track user activity.

As you can imagine I has been very frustrating spending hours developing an application only for the powers above to say in an instant to scrap it and create a new system.

Many thanks for the help,

rhughes

Comments

mbutcher’s picture

You might be able to write a module that uses hook_quiz_finished(). See DEVELOPER.txt for info. This hook gets called when a user has completed the quiz.

From there, you should be able to get all of the quiz data and store it wherever you want.

It's not exactly "trivially easy", but from that hook you have access to the entire quiz for that user.

Matt

rhughes’s picture

Great, Thanks for the info.

I have an additional question, Where would I find the function which displays the quiz summary page (at the end of the quiz)? I will probably need this to help me display the quiz summary at the of the course.

sivaji_ganesh_jojodae’s picture

Sorry for the late reply. Have a look into function quiz_admin_results in quiz.admin.inc line no ~46.

sivaji_ganesh_jojodae’s picture

Status: Active » Fixed

Hope #1 and #3 would have helped you, marking this issue as fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.