This is a small patch to make the Math captcha a bit nicer.
First of all, I renamed it to 'Simple addition' because that describes it better and because I'm planning to make a more advanced 'Math' captcha.
I also made the UI nicer: the challenge '$x + $y' is now in front of the textfield, which is also made smaller, because a page wide textfield for a two digit number is a bit silly.

CommentFileSizeAuthor
simplemath.patch1.38 KBsoxofaan

Comments

robloach’s picture

Status: Needs review » Fixed

Commit 77639... I put in the cosmetics, but I left the backend as "Math". If you want to add more math related captcha stuff, either make a whole new module, or add it to the Math Captcha Challenge here.

A couple of neat ideas with the Math captcha:

  1. Have the Math captcha encapsulate all forms of math questions. Division, multiplication, subtraction, etc. It would pick a random operator, and use it.
  • Randomly substitute "+" with "plus", "added with", "in addition to", etc so that a simple eval() on it wouldn't work.
  • soxofaan’s picture

    The more advanced Math captcha that I am working on does all that and more:

    • addition, subtraction and multiplication questions.
    • numbers can get a textual representation, e.g. 'four' instead of '4'. this has the added benefit that it can be localized
    • operators can get a textual representation
    • negative values can be enabled, which makes automatic parsing harder
    • not only questions like "x + y = ?" but also "x + ? = z"

    more suggestions welcome

    robloach’s picture

    Those sound like neat ideas! Should they go into an "Advanced Math" captcha challenge in your Captcha Pack module? ;-)

    Here's another idea:

    • Use Image Captcha in tandem with Math Captcha to generate an image representation of the math question.
    Anonymous’s picture

    Status: Fixed » Closed (fixed)