Yii 1.1: tryiimath


Math Challenge, captcha alternative. Forget about image captchas. Try Tryiimath :D





  • Yii 1.0 or above


  • Extract the release file under protected/extensions


See the following code example for contact form:

// protected/views/site/contact.php:
// replace captcha row:
    <div class="row">
        <?php echo $form->labelEx($model,'verifyCode'); ?>
        <?php $this->widget('application.extensions.tryiimath.ETryiimath'); ?>
        <?php echo $form->textField($model,'verifyCode'); ?>
        <div class="hint">Please enter the math result.</div>
// protected/models/ContactForm.php
// replace verifyCode line:
            array('verifyCode', 'application.extensions.tryiimath.ETryiimathValidator'),
// protected/controllers/SiteController.php
// include TryiiMath Action:
// ...
// define action:
    public function actions()
        return array(
            // captcha action renders the CAPTCHA image displayed on the contact page
// ...

Change Log

May 25, 2010

  • Initial release. version 0.1

Total 8 comments

#3654 report it
totoloco at 2011/04/26 11:13am

It's accesible for non js browsers, and for blocked js browsers. Not for blinds, of course :S

#3653 report it
Parham Doustdar at 2011/04/26 10:31am
It's all right.

Of course it would be great, Totoloco. But the problem is, this extension is trying to draw numbers using ansi art (creating shapes with a combination of characters) and this does not help accessibility in any way. If anything, it makes things even harder! There are automated solutions to solve captchas for the blind, but they can't be used for this captcha. This method is quite secure, but inaccessible.

#3648 report it
totoloco at 2011/04/26 07:13am
Sorry about old text

But, imagine accesibility without javascript.

#3644 report it
Parham Doustdar at 2011/04/26 05:33am
"Forget about f***in & -inaccesible- captchas."

Am I correct in assuming that this extension is trying to be accessible, based on this statement? If so, please tell me how I can make sense of "._. ._.: ;" as someone who is blind and uses a screen reader (http://en.wikipedia.org/wiki/Screen_reader). Imagine hearing, dot underscore dot semicolon dot underscore! :-)

#3546 report it
totoloco at 2011/04/18 04:29pm
Re: FF Mac

I don't know about tryiimath in ffox4@mac. I try pastii.com.ar (with tryiimath) in ffox4@linux and I don't have any problem :S

#3545 report it
totoloco at 2011/04/18 04:24pm
Re: Is it really working that good?

trejder, did you try Get a new math? Math => 5 * 3

#3542 report it
evan108108 at 2011/04/18 01:40pm
FF Mac

Does not seem to be working on FF 4 on mac. Any suggestions?

#2052 report it
Trejder at 2010/11/05 04:41am
Is it really working that good?

You say: "Forget about f***in & inaccesible captchas". Well... This one is from YOUR demo:

Tryiimath error?

Please, tell me wise guy, what should I enter in above situation? Because I got a little bit confused! 53? S3? S*E?

A tip for future: Before you start yelling that captchas are f***in and inaccessible, first test your alternative solution if it has any errors! Big thumb down! :(

Leave a comment

Please to leave your comment.

Create extension