Archiving Voting Results

Events happening in the community are now at Drupal community events on www.drupal.org.
Jaesin's picture

I am using plus1 to vote for music on a web site.

Music tracks are nodes. I know how to create a view to show the current results which is great but I would like to be able to archive results.

Every week at a certain time, I would like to be able to make a snap shot of the results and reset the voting.

In essence "Music Charts"

So my question is, what would be the best approach? Is there a combination of modules that might permit such a thing?

Thanks ahead of time.

Comments

I have the same requirements

amateescu's picture

I have the same requirements for a project i'm working on :)

Did you solve this problem somehow?

I did but...

Jaesin's picture

First, I switched to using flag instead of Plus1. Then I created a module with a cron hook. Every week, I access a view that gives me the current position of each music track.

I use that information to programmatically create new content of a new archive content type. With this I can use views to generate all I need.

After that, I use the flag api to clear the flag then manually clear the flag_counts db for my flag type.

Voting Systems

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: