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

    I downloaded the last login version (1.5 pl) and the recaptcha don’t work anymore in the Register page (I haven’t visited this page for a while so I’m not sure it doesn’t come from something else).

    My call is:
    [[!Register?
      &submittedResourceId=`64`
      &activationResourceId=`28`
      &activationEmailTpl=`activationMail`  
      &activationEmailSubject=`Confirm your registration for Galileo Active` 
      &activationttl=`2880`
      &usergroups=`Webuser`
      &preHooks=`recaptcha`
    ]]
    

    and in the form:
    [[!+register.recaptcha_html]]
    


    The recaptcha don’t even show.

    Is there a problem with the new version? or is it a descendant compatibility problem?
    Please anyone knows?

    Thierry
      • 26334
      • 77 Posts
      I am seeing exactly the same thing. Noticed the critical update for the login package in my admin page and as soon as I upgraded my recapture doesn’t work anymore.

      Any ideas or suggestions?
        • 28215
        • 4,149 Posts
        Hm, it seems the update changed the placeholder to:

        [[!+recaptcha_html]]
        [[!+error.recaptcha]]
        


        Since there’s now a proper &placeholderPrefix property on the Register snippet (ie, with a &placeholderPrefix=`reg.`, the placeholder for recaptcha would be "reg.recaptcha_html" and "reg.error.recaptcha".

        I’ll update the docs to reflect the change.
          shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
          • 26334
          • 77 Posts
          Unfortunately that isn’t working either.

          This is what I am using:

                 [[!Register?
          	    &activationResourceId=`152`
          	    &activationEmailTpl=`treadly_user-activateemail`
          	    &activationEmailSubject=`Activate your treadly.com membership`
          	    &submittedResourceId=`151`
          	    &usergroups=`Member`
          	    &preHooks=`recaptcha`
          	]]

          and
          			<td colspan="2">
          				<strong>Enter the two words</strong><br/>
          				[[!+reg.recaptcha_html]]
          			</td>

          Here:
          http://treadly.com/member/createaccount.html
            • 28215
            • 4,149 Posts
            Use [[!+recaptcha_html]]

            since you’re not specifying a &placeholderPrefix.
              shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
              • 26334
              • 77 Posts
              Thanks.

              Working now.

              Much appreciated.
                • 3866 ☆ A M B ☆
                • 350 Posts
                I’ve recently moved my site from a 2.0.4 version to 2.0.6 and have the latest Login package 1.5.2 rc running but the following doesn’t display recaptcha on with Register

                [[!Register? &submitVar=`registerbtn` &activationEmailTpl=`myRegistrationEmail` &activationEmailSubject=`Registration Submitted` &submittedResourceId=`17` &usergroups=`MyUserGroup` &postHooks=`hookNotifyAdminEmail` &preHooks=`recaptcha`]]

                And in the form the following call for recaptcha

                [[!+register.recaptcha_html]]
                [[+error.recaptcha]]

                Have tried putting &preHooks at the beginning of the call, in the middle and the end but to no avail.

                Have also tried but the recaptcha call as reg.recaptcha_html but it doesn’t work.

                Recaptcha does however, work with the Formit snippet... huh

                Suggestions....
                  Helen Warner
                  Number one pixel!
                  Proud to be linked with MODX at Crimson Pixel
                  • 3866 ☆ A M B ☆
                  • 350 Posts
                  Ok managed to resolve this issue. I couldn't find where to add the recaptcha keys - had added it to the Formit snippet settings, but recaptcha settings on their own were not appearing as an individual setting.  Managed to locate these by doing a search in the System Settings. Having added these and cleaned up my code I was able to make recaptcha work.

                  My call on the Registration form is as follows:

                  [[!Register? &preHooks=`recaptcha` &submitVar=`registerbtn` &activationEmailTpl=`myRegistrationEmail` &activationEmailSubject=`Registration Submitted` &submittedResourceId=`17` &usergroups=`MyUserGroup` &postHooks=`hookNotifyAdminEmail`]]


                  and my call for recaptcha in the form is:

                  [[!+recaptcha_html]]
                  [[!+error.recaptcha]]


                  Sweet..  :D [ed. note: boomerang last edited this post 15 years ago.]
                    Helen Warner
                    Number one pixel!
                    Proud to be linked with MODX at Crimson Pixel