Jump to:

10979 Posts in 2722 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » MathSpamProtection in SilverStripe3 - pulls and suggestions

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 259 Views
  • martimiz
    Avatar
    Forum Moderator
    1078 Posts

    MathSpamProtection in SilverStripe3 - pulls and suggestions Link to this post

    Hi Will,

    I sent some pullrequests regarding languages and fixes for deprecation notices in the MathSpamProtection module. So far the module seems to be working for me in SS3, even though it states in that built-in validation doesn't work?

    Suggestion
    Enabling jQuery validation for the Captcha field (required), I stumbled upon the following issue: it seems the plugin conflicts with Google Toolbar Autofill, so that instead of showing a 'this is a required field' message, it shows the input title. A remedy would be to set the Fields title to empty. Would that be acceptable? an alternative would be to use javascript to empty the title attribute...

    function Field($properties = array()) {
       if(self::is_enabled($properties = array())) {
          $attributes = array(
             ...
             'title' => $this->Title(), <-- Becomes: 'title' => '',
             ...
          );
          return $this->createTag('input', $attributes);
       }
    }

    Also I'd be interested in adding the Form ID to the session cookie, so MathSpamProtection can be used on multiple forms on the same page (having different form ID's). Would you be interested in a pull request for that as well?

    Martine

  • martimiz
    Avatar
    Forum Moderator
    1078 Posts

    Re: MathSpamProtection in SilverStripe3 - pulls and suggestions Link to this post

    OK - as to working on multiple forms on the same page - that is not something the MathSpamProtector is responsible for, I guess. It works perfectly as long as the right form is parsed on submit, not just the first form on the page

    259 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.