I am wondering if you guys plan to support OG, so the Views quiz results can be specified according to User's(quiz taker) OG membership. For example, quiz results in Group A.
Currently, if Quiz Results: User is added to the Relationship, then there is nothing show in the fields: (user) Organic groups: User's groups User's groups
Also, how about Date support? So, the results can be generated monthly/daily/yearly. Or at least make Quiz start/end time filter, so admin can specify a time range? For example, quiz results in April.
Comments
Comment #1
mbutcher commentedWe (palantir.net) have been experimenting with Quiz OG support. I don't know whether we will release it because we don't have anyone to maintain it. But basically we use it to assign users to groups, and then assign quizzes to groups. And we have Views support for all of that.
Once you have that information, you can run views that are date-sensitive (e.g. all results between dates X and Y).
So... do you think we should release it?
Matt
Comment #2
skyredwangMatt,
I don't know if you are aware of this implementation, but I just managed to create a Views with Quiz results to support OG. (Speed is not concerned at this point.)
Relationship:
Quiz Results: User
Quiz: Quiz Node NID
(user) Organic groups: Group node (member)
Fields:
(user) Profile: First Name First Name
(user) Profile: Last Name Last Name
Quiz Results: Quiz End Time Quiz End Time
Quiz Results: Score Score
(Group node (member)) Node: Title Title
Quiz Results: Result ID Result ID
Filters: (Not Necessary)
(user) Profile: Do you work in the beer trade? = Distributor
Quiz Results: Quiz State is Finished
(node) Node: Nid = 42097 /* The OG group I want to pull the results from, this can also be used in Argument */
Results Demo:
First_Name Last_Name Quiz_End_Time Score Group Result_ID
Jingsheng Wang May 4 2009 - 4:50pm 20 Union Beer Distributors 150 /*here Union Beer is my group*/
Eric McKay Feb 3 2009 - 11:20pm 4 Union Beer Distributors 26
Eric McKay Dec 4 2008 - 4:22pm 0 Union Beer Distributors 17
Eric McKay Dec 4 2008 - 4:24pm 50 Union Beer Distributors 18
Could you comment on this implementation? If OG is supported, could you support Filter: Date(quiz_result) ?
Thanks
Sheng
Comment #3
mbutcher commentedYes, that should work well. Most of what you need to combine OG and Quiz exists out of the box with those two modules.
Matt
Comment #4
skyredwangMatt,
Thanks for the confirmation. If this works, do you think it's still necessary to release your palantir.net unpublished OG support in order to get Date support? Or by any chance, if one of the Quiz gurus would create a Views2 Filter: Date(quiz_result) to work with Date Module?
Thanks
Comment #5
skyredwangMatt,
I added this Date Filter into Quiz Results, I am wondering if you could approve it and patch into 3.0? I used 'critical' priority, because you have already put 3.0 in Beta
/incldues/views/quiz.views.inc
Between line 571-572
add
Thanks
Comment #6
mbutcher commentedPatch was reviewed by sdboyer (reading over my shoulder) and committed. This will make it into beta 2.
Thanks!