We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36582
    • 463 Posts
    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
      • 36582
      • 463 Posts
      Tumbleweed blows across another forum post
        Web site design in Nottingham UK by Chris Fickling http://www.chrisficklingdesign.co.uk
        • 43312
        • 3 Posts
        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.
          • 43312
          • 3 Posts
          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)