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

mbutcher’s picture

Issue tags: +views, +Organic Groups

We (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

skyredwang’s picture

Title: OG, Date support » OG(supported? need confirmation), Only date support needed
Status: Active » Needs review

Matt,

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

mbutcher’s picture

Yes, that should work well. Most of what you need to combine OG and Quiz exists out of the box with those two modules.

Matt

skyredwang’s picture

Matt,

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

skyredwang’s picture

Title: OG(supported? need confirmation), Only date support needed » Date Filter Support in Views2
Version: 6.x-3.x-dev » 6.x-3.0-beta1
Priority: Normal » Critical
Status: Needs review » Needs work

Matt,

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

'filter' => array(
         'handler' => 'views_handler_filter_date',
         'allow empty' => TRUE,
      ),

Thanks

mbutcher’s picture

Status: Needs work » Fixed

Patch was reviewed by sdboyer (reading over my shoulder) and committed. This will make it into beta 2.

Thanks!

Status: Fixed » Closed (fixed)
Issue tags: -views, -Organic Groups

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