HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Recaptcha Options?

Hi, after looking at the reCAPTCHA website, I noticed there are some theming options You can add to the captcha. Is there any way you could add them into the forum?

Comments

  • Options
    peregrineperegrine MVP
    edited September 2014

    I don't use recaptcha - so I can't test.

    this plugin might work in vanilla 2.1.3.

    You didn't mention your vanilla version not sure why?

    you can change the js to what you want in Recap/js/recap.js

    If it doesn't work - someone else might have an answer.

    be interesting to find out if it does change your theme.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP

    You would add the script to your default.master.tpl or default .master.php in the head section of the document.

    This makes it black

    <script type="text/javascript">
     var RecaptchaOptions = {
        theme : 'blackglass'
     };
     </script>
    
  • Options
    peregrineperegrine MVP
    edited September 2014

    if the Recap plugin works the only advantage of using the plugin, is that it will work across all themes, and only loads on the registration page. Whereas, generally adding the script in default.master.xxx would load it on every page, whether you are registering or not.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options

    I don't think it would matter if it you have 5 lines added to the bottom of the default view. Thanks @vijvlinder!

  • Options
    hgtonighthgtonight ∞ · New Moderator
    public function EntryController_AfterRenderAsset_Handler($Sender) {
      if($Sender->EventArgument['AssetName'] == 'Head') {
        // Only spit out the customization if we are in the head asset on the entry controller
        echo <<< EOT
          <script type="text/javascript">
            var RecaptchaOptions = {
              theme : 'blackglass'
            };
          </script>
    EOT;
      }
    }
    

    This is theme independent, and only puts the script on the entry controller. You could even only put it on the register controller if you wanted.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Options
    peregrineperegrine MVP
    edited September 2014

    .

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Sign In or Register to comment.