Does a similar module already exist?...

dmnelson

Joined: 2011-11-17
Posts: 1
Posted: Thu, 2011-11-17 18:11

I have never created a module before but am thinking I may need to. I wanted to see if something similar already exists before I begin.

Basically I am supporting an internal installation of gallery in an education setting, where the teacher creates albums corresponding to certain assignments, and has the kids post their work there. They then do a little "peer review" by posting comments (moderated of course) on each other's work.

We are already pretty well established doing this, but one missing piece is that the teacher would really like to be able to see, at a glance, who has or has not turned in a specific assignment.

What I'm thinking is I'd like to create a module that lets you pick a group (which corresponds a specific class) from one popup menu, and a pick album (assignment) from another menu, and it would produce a list that highlights who has and has not posted something to that album.

So before I embark on the exciting journey of creating this module... does something like this already exist? Or if not, anything similar enough that I could tweak it a bit to accomplish this?

Thanks in advance for the feedback...

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2011-11-17 19:36

if the students have their own userIds, then it might be easier than you think.
Group contains users by id ie. 3rd period group contains userIds [23, 45, 67, 87, 85, 86, 98]
And an album would also contain items owned by each user who submitted (again by userId) ie. [23, 67, 98]
using array_diff(groupArray, submittedArray); //returns [45, 87, 85, 86] users that have not yet submitted

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2