I would be nice if I could define multiple questions and have a random one picked at each form display.

Nice module, btw :)

CommentFileSizeAuthor
#12 riddler.module.patch2.87 KBsteev
#6 multiriddle.patch8.5 KBDavid Stosik

Comments

tknospdr’s picture

I was going to post the exact same request, good thing I always search first.

Thanks,
David
http://www.FloridaPets.org

imerlin’s picture

Assigned: Unassigned » imerlin

Good suggestion. I'll look into it.

mariuss’s picture

A suggestion regarding multiple questions. It could be an overkill, not sure, but worth mentioning I thing.

One way to implement multiple questions would be using a template question and an array of values and expected results. For example:
- question: "How many !limb does a !animal have?"
- array of values (column 1 and 2) and expected results (column 3):
legs chicken 2
legs dog 4
wings penguin 2
tails human 0

imerlin’s picture

I'd like to get some input on how it would be best represented for the user.

So far I have:

  1. Single textarea with comma separated questions, answers
  2. Two textfields (question/answer) and on submit add the data to an array
  3. Some jquery magic to update the question list

So far I'm leaning towards 1. or 2. due to simplicity in the programming and the fact that I don't know jquery. Suggestions welcome.

imerlin’s picture

Priority: Normal » Minor
Status: Active » Postponed

Postponed until further

David Stosik’s picture

Version: 5.x-1.x-dev » 5.x-3.1
Assigned: imerlin » David Stosik
Priority: Minor » Normal
Status: Postponed » Needs review
StatusFileSize
new8.5 KB

Hello,
Here is a patch for Captcha riddler to accept multiple riddles, and throw a random riddle when a Captcha is needed.
It applies to 5.x-3.1 version, and was parsed by Coder to have Drupal compliant code.

Regards,
David

imerlin’s picture

Status: Needs review » Reviewed & tested by the community

Looks very nice. Been wondering how it would be best to implement this but I'm liking this so far.

Testing for a few days on my website, then I'll submit to CVS. Thanks!

cwgordon7’s picture

Has there been any movement on this since August? This is quite an old issue... :)

awolfey’s picture

I've just added a drupal 6 version of riddler that includes this patch. It also allows multiple possible answers.

janeks’s picture

The feature needed for captcha riddler for multiple language sites would be filter for language. I.e the field in a riddler definition that is filled with a language supported by a site. And then the givven riddler question appears only in that langugage.

brgds
Janeks

awolfey’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Janeks,

I'll take a look at adding this. I'm going to create a new issue for it and close this one.

Moving to #788948: Add multiple language support for Riddler questions.

steev’s picture

StatusFileSize
new2.87 KB

here's a much simpler patch for multiple questions.

awolfey’s picture

steev, I don't know if imerlin is maintaining the D5 branch anymore, but I'm definitely not. He can probably add you as a maintainer if you're interested. Additionally, you can submit a patch for the D6 branch in a new issue, which is being maintained.