We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38685
    • 59 Posts
    BTW the recaptcha library (recaptchalib.php) is a modified version, which changes the output of

    recaptcha_get_html function!!


      Paul AL Bakulich - Association for Computing Machinery Professional Member
      http://palbakulich.me/ | http://twitter.com/#!/palhmbs
      • 18913
      • 654 Posts
      Thanks for that. I couldn’t get your code to work, so I went back to square one. The following does work :

      - Create a document with this as the content
      [!neweForm? &vericode=`1` &formid=`ContactForm` &subject=`[+subject+]` &to=`[email protected]`  &tpl=`contactform_chunk` &report=`contactformreport_chunk`  &gotoid=`1`!]


      - Create a chunk called (in this example) "contactform_chunk". Put "[+captcha_html+]" (no quotes) in the form in the place that you want the recaptcha field to be. In this case, the form was named "ContactForm".

      - Create a chunk called (in this case) "contactformreport_chunk". This is just the stuff that gets sent back to you.

      - Create a snippet called (in this case) "neweForm". The code is attached, being a merging of the eForm snippet and eForm.inc.php file. (I got tired of bouncing around between editors, so I stuck the whole thing in a snippet). Here’s the code - search for "MattC" to see where I made changes.

      Credit to the code presented in the thread I noted earlier - the key was to get the output of recaptcha_get_html merged into the form template before letting eform do it’s processing.

      Lemme know if you get it to work...
      Matt
      UPDATE : code replaced. See below
        • 38685
        • 59 Posts
        Thanks Matt...

        It will take me awhile to test.... sorry...
        as I am currently upgrading the whole site to Evo 1.0.2!

        Thanks very much for this!
          Paul AL Bakulich - Association for Computing Machinery Professional Member
          http://palbakulich.me/ | http://twitter.com/#!/palhmbs
          • 18913
          • 654 Posts
          ... FWIW, this was done in Evo 1.0.0. So shouldn’t pose a problem.
          Matt
            • 38685
            • 59 Posts
            Is there an easy way to condense your TXT file?

            There is an extra return between every time... LOL... makes for very hard reading!
              Paul AL Bakulich - Association for Computing Machinery Professional Member
              http://palbakulich.me/ | http://twitter.com/#!/palhmbs
              • 18913
              • 654 Posts
              I loaded it in two editors (Notepad and Notepad++) and didn’t get that. I’ve re-saved it in UTF-8 character mode and have attached it.
              Matt
              UPDATE : code replaced. See below
                • 38685
                • 59 Posts
                Sorry didn’t help... loading it into gedit on Linux Ubuntu...
                I thought PHP was a problem... but now txt is also!
                  Paul AL Bakulich - Association for Computing Machinery Professional Member
                  http://palbakulich.me/ | http://twitter.com/#!/palhmbs
                  • 38685
                  • 59 Posts
                  Hi Matt...
                  Have done as told and have got an error ’Could not open socket!’

                  Which is generated in the recaptchalib.php... but why!?

                  Doh...

                    Paul AL Bakulich - Association for Computing Machinery Professional Member
                    http://palbakulich.me/ | http://twitter.com/#!/palhmbs
                    • 18913
                    • 654 Posts
                    Not sure. The recaptchalib that I used was the one distributed by recaptcha - not yours. And I put it in assets/snippets/recaptcha.

                    Can you try the original lib file?
                    Matt
                      • 38685
                      • 59 Posts
                      Tried the original file.... did you thoroughly test it with a invalid match?

                      It NOW emails without even checking the value!!!!

                      DOH!... This is exactly what I had earlier... I am back to square 1... GRRRR....
                        Paul AL Bakulich - Association for Computing Machinery Professional Member
                        http://palbakulich.me/ | http://twitter.com/#!/palhmbs