We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39053
    • 34 Posts
    Hi,

    does Quip work with recaptcha V2?

    If it does, how can i include it?

    This question has been answered by dubbs. See the first response.

      • 17301
      • 932 Posts
      I have used it before with Quip but I can't recall what site so unable to dig out the code. I'm pretty sure you just need to call the recaptcha snippet on the page though where you want it and it'll prevent any form being submitted on the site without verification.

      Deffo a good idea to use it though as I believe recaptcha v1 support is stopping pretty soon.
        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
        • 39053
        • 34 Posts
        It doesn't work.
        I have install the ReCaptchav2 Extra and include
        [[recaptchav2_render]] 

        in the chunk
        addCommentTpl

        How should i include it?
          • 17284
          • 54 Posts
          I can answer only one part of the question above, and am working on the actual reality of switching Quip to use recaptchav2.

          As noted, first install the RecaptchaV2 package. Then add your new Recaptcha api v2 public and private keys to the RecaptchaV2 settings. You got those from your google account:
          https://www.google.com/recaptcha/admin

          To add to template for Quip:

          [[!recaptchav2_render]]


          Note the ! which the poster had left off.

          This will make the recaptcha box appear, but so far I have not been able to get any further due to a complete lack of documentation about recaptcha and quip.

          In the main quip chunk, I have:

          [[!Quip? 
          &thread=`thread-[[*id]]` 
          &threaded=`0` 
          &useGravatar=`0`
          &tplComment=`tplQuipComment`
          &useCss=`0`]]
          [[$quip-top-1]]
          [[!QuipReply? 
          &thread=`thread-[[*id]]`
          &useGravatar=`0`
          &tplAddComment=`tplQuipAddComment`
          &recaptcha=`1`
          &disableRecaptchaWhenLoggedIn=`0`
          &autoConvertLinks=`0`
          &moderate=`1`
          &closeAfter=`0`
          ]]


          However this does NOT appear to have any connection the recaptcha v2, it's the old recaptcha, which have settings as well in the settings manager.

          The Quip doc page has no reference to the recaptcha v2 at all:

          https://docs.modx.com/extras/revo/quip
          https://modx.com/extras/package/recaptchav2

          So I think maybe it's time to update the docs here so that we can fairly easily figure out how to upgrade quip to using recaptcha v2.

          I've been experimenting here a bit, but as far as I can tell so far, while you can get the recaptchav2 box to appear and function superficially, so far I've found no way to make the recaptcha actually work in terms of showing the error messages and blocking form submit. In fact, form submit doesn't work at all in my tests.

          I may be missing some key error messages due to the total absence of docs however.

          [Update:] Because Quip simply does not work so far with RecaptchaV2 plugin, I've rolled it back to use v1, but given v1 expires on March 31, 2018, I'd say it's reasonably pressing to get the docs updated, and make sure these things all work together. Or switch the internal modx stuff to use recaptcha v2, not sure how those things hang together. [ed. note: lizardx last edited this post 6 years, 3 months ago.]
            • 17301
            • 932 Posts
            I haven't experimented with it for a while but I'm pretty sure recaptcha will just work out of the box from Google and prevent any form being submitted. You don't need to lace it in with quip, snippets or chunks necessarily. Try just using it as standard out the box and include it on the page.
              ■ email: [email protected] | ■ website: https://alienbuild.uk

              The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
              • 17284
              • 54 Posts
              It has to be integrated to some degree to show error messages, as far as I can tell.

              I'll play around with it some more, but really what we need for modx + quip is actual documentation, based on real data, then how to do it. This is totally absent, which is somewhat odd.

              Particularly how to change from recaptcha v1 to v2. v1 is natively integrated into quip/modx, but v2 is not yet natively integrated into modx, which is odd given that version 1 is about to expire and stop working in 3 months, and v2 has been up and running for a long time.

              Obviously each person who uses this can experiment for themselves to discover how to do it, but my goal here is to determine for all users how to do this in a non ambiguous, code based format, which can then be applied to the quip docs, so other users don't have to guess like I'm doing now.

              I've tried quip with recaptcha v1 enabled and disabled, and in both cases when using v2, the result is a form that does not submit, period. Well, it submits, but nothing actually gets submitted. Disabling v1 explicitly should then open quip up to v2 logic, and that should then work, and it does not. Thus my post. Using the recaptchav2 package simply adds stuff to the form, same as doing it manually as far as I can tell, it's a very simple package, though I believe it's return of error is incorrect for generalized processing, since it returns to $hook, which as far as I know isn't in quip at all.

              It's much better for one person to figure this out and then spread that information/documentation to all people than to leave it as random guesswork for all users.
                • 36591
                • 38 Posts
                There has been some efforts to integrate ReCaptcha v2 ... but I can't get it to work ... https://github.com/modxcms/Quip/pull/21
                  • 39053
                  • 34 Posts
                  Is there no way to integrate the extra RecaptchaV2 as preHooks, as it does with formit?

                  https://modx.com/extras/package/recaptchav2
                    • 36591
                    • 38 Posts
                    Quote from: mediengaarage at Jan 13, 2018, 09:01 AM
                    Is there no way to integrate the extra RecaptchaV2 as preHooks, as it does with formit?

                    https://modx.com/extras/package/recaptchav2

                    I'm afraid there is none. At least nothing that could be called "official". But the changelog says: "New in 2.0.0 [...] [#3519] Add pre and post Hooks to Quip".
                      • 34950
                      • 31 Posts
                      LOL