On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Looked everywhere but how do I change the Recaptcha theme when using Quip with articles. I'm using the sample templates and to the best of my knowledge everything is working as it should but I just can't find where to change this.

    Revo 2.2.2-pl trad
    Quip 2.3.0
      Web site design in Nottingham UK by Chris Fickling http://www.chrisficklingdesign.co.uk
    • Tumbleweed blows across another forum post
        Web site design in Nottingham UK by Chris Fickling http://www.chrisficklingdesign.co.uk
      • I also cannot find the solution to this. Changing the theme from 'clean' in the QuipReply snippet on line 170 does nothing.

        $recaptchaTheme = $modx->getOption('recaptchaTheme',$scriptProperties,'clean');


        I've literally tried everything to do this.

        Please help!! It would be very very much appreciated.
        • Ok, I've come up with a hack that works but is far from ideal.

          Open core/components/quip/model/recaptcha/recaptcha.class.php

          Replace line 128:

          return '<script type="text/javascript">var RecaptchaOptions = '.$this->modx->toJSON($opt).';</script><script type="text/javascript" src="'. $server . 'challenge?k=' . $this->config[reCaptcha::OPT_PUBLIC_KEY] . $errorpart . '"></script>


          With:

          return '<script type="text/javascript">var RecaptchaOptions = {"theme":"red","lang":"en"};</script><script type="text/javascript" src="'. $server . 'challenge?k=' . $this->config[reCaptcha::OPT_PUBLIC_KEY] . $errorpart . '"></script>


          (change "red" to the theme you would like)