We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28475
    • 28 Posts
    don’t you mean set it to 0?
    I just tried setting it to 0 and looks like it works! Yay!
      • 25772
      • 35 Posts
      Sorry, yes I do mean `0`. However, I don’t think this is the problem. The problem seems to be that on my setup $hasAuth is permanently true whether logged in or not. This means that the Remove comment link shows to everyone, whether logged in or not.
        • 36053
        • 5 Posts
        version: MODX Revolution 2.1.3-pl (traditional)

        quip recaptcha isnt working, i have this code in my template:

        <p>[[!Quip? &thread=`threadNameHere` &threading=`0` &useGravatar=`0` ]] <br /> [[!QuipReply? &thread=`threadNameHere` &recaptcha=`1`]]</p>



        and i have entered the public and private keys under system settings, but recaptcha isnt showing/working when comments are posted?

        thanks
          • 31724
          • 24 Posts
          I think I found bugs and just logged it in http://bugs.modx.com/issues/4346#change-13099
          Using Quip 2.1.1. in MODX 2.1.3 had problem to display reCapcha when not logged-in. After setting disableRecaptchaWhenLoggedIn=`0` reCaptcha appears but still does not work - not validates.

          Fix for displaying:

          in \quip\controllers\web\ThreadReply.php in function loadReCaptcha():
          //if ($useRecaptcha && !($disableRecaptchaWhenLoggedIn && $this->hasAuth) && !$this->hasPreview) {
          if ($useRecaptcha && !($disableRecaptchaWhenLoggedIn && $this->modx->user->hasSessionContext($this->modx->context->get('key'))) && !$hasPreview) {


          Fix for validating:

          in \quip\processors\web\comment\create.php
          //$disableRecaptchaWhenLoggedIn = $this->getProperty('disableRecaptchaWhenLoggedIn',true);
          $disableRecaptchaWhenLoggedIn = $this->getProperty('disableRecaptchaWhenLoggedIn',true,'isset');

          //if ($this->getProperty('recaptcha',false) && !($disableRecaptchaWhenLoggedIn && $this->hasAuth)) { 
          if ($this->getProperty('recaptcha',false) && !($disableRecaptchaWhenLoggedIn && $this->modx->user->hasSessionContext($this->modx->context->get('key')))) {


          Tested, works for me - hope they are the right ones.
            • 31724
            • 24 Posts
            Bug-fixes were just applied and will be in 2.1.2 release - thanks Shaun.