Community & Support

Competitions with random winner

Hi guys,

The site I'm building will require the ability to have a competition going that will allow the user to read a body of copy then select one of a selection of answers to a question (multiple choice) the system should then be able to select a winner at random when the compo ends - so there needs to be a start and end date ability.

This is a fairly basic competition set up so I'm hoping that somebody has already done something like this - or at least that there is a module that can do this, if there's one that can do this and more than I'd be happy with that.

I've had a quick look but can't see anything that quite fits the bill - I may well be missing something obvious though.

Any thoughts?

Comments

Here's a though, use webform

Here's a though, use webform to create the contest form, create the form in the unpublished state. Use scheduler to set publish/unpublish (start/end) dates. Pick on of the entries at random, I think webform has views integration so you could write a view that sorts by "Global: random" and make the list size 1.

OK! I'll give that a go - if

OK! I'll give that a go - if it works (or not) I'll say. Thanks for the prompt response.

Getting there...

OK, I've got my form made up without a problem - I've created a simple question for testing purposes:

Which animal goes woof?
Cat
Pig
Dog

All this works nicely and answers can be submitted with a nice thank you message appearing afterwards.

Question is, how do I set the system up so that it knows that "Dog" is the correct answer and to randomly select a user that has answered correctly?

Sorry to bump this old one but...

This is still an issue for me if anyone has an answer - I've tried to get my head round it but can't figure it out.

CAPTCHA?

In a similar situation, I used "CAPTCHA Pack" module. http://drupal.org/project/captcha_pack I did a missing characters CAPTCHA with a custom dictionary of words that fit my user base. That protected me against automated submissions while still being kinda cool for my users.

Hope that helps.

Bill P.

Not sure if I understand...

My problem at the moment isn't protecting myself from bots, it's getting the form to work in the first place. I can't figure out how to tell the system which one of those three options is the correct answer and to then randomly select a user(s) from those that answered correctly.

It would be nice to also know how many people answered incorrectly for each other question but I'd be happy with the above first.

These guys: http://drupal.org/node/419484 seem to have done it, but haven't put it out for others to use. Which seems (in my opinion) to go against the Drupal way.

I'd love to be able to go and build my own module but I'm more of a visual person than coder.