impresspages / ImpressPages

ImpressPages is php framework with admin panel. Build functional website in one hour.
http://www.impresspages.org
Other
501 stars 178 forks source link

Google reCAPTCHA #774

Closed machomaaan closed 8 years ago

machomaaan commented 8 years ago

Hi.

I want to use the Google reCAPTCHA instead of the intern captcha by ImpressPages. How can I do this?

I got this from Google:

<script src='https://www.google.com/recaptcha/api.js'></script>

<div class="g-recaptcha" data-sitekey="xxxxxxxxxxxxxxxxxxxx"></div>

Thank you very much.

maskas commented 8 years ago

I can't see what you have got from Google :). But here is an example on how to build your own input field https://www.impresspages.org/docs/custom-form-field-example

machomaaan commented 8 years ago

Thank you maskas, I didn't think about that :)

I'll try it and comment ;)

machomaaan commented 8 years ago

OK sorry, I don't know how to do this. This is my first time on ImpressPages.

I've updated my first post so you can see, what I got from Google. I just need to integrate the script in contact-site. That's easy but how can I change the standard-captcha to Google reCAPTCHA? Where I need to insert the div with the data-sitekey?

Can u help me?

Thank you very much!

maskas commented 8 years ago

I'm sorry to disappoint you, but it is not that easy as just copy / paste.

You can try to do it in a dirty way by modifying core file, which is /Ip/Form/Field/Captcha.php metdhod "render".

You will lose this change after update.

machomaaan commented 8 years ago

Hmmm ok thank you.

I hope that somebody make this possible. I don't know how to do this.

Thank's for your answers.

maskas commented 8 years ago

I'm thinking of implementing google captcha by default instead of existing captcha. Will try a proof of concept in coming week.

maskas commented 8 years ago

Apparently Google reCaptcha can't go into core as it requires everyone to register on google and generate a pair of keys to use it. But it goes fine as a plugin http://market.impresspages.org/plugins/GoogleReCaptcha

machomaaan commented 8 years ago

Oh, thank you very much. This plugin is new? Because I've searched for the reCAPTCHA after 1 month ago :)

Thank you very much.

Am 30.03.2016 um 16:24 schrieb Mangirdas Skripka:

Apparently Google reCaptcha can't go into core as it requires everyone to register on google and generate a pair of keys to use it. But it goes fine as a plugin http://market.impresspages.org/plugins/GoogleReCaptcha

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/impresspages/ImpressPages/issues/774#issuecomment-203456092

machomaaan commented 8 years ago

Hi again,

is there a problem with "required" or "optional"?!

Regards Mario

Am 30.03.2016 um 16:24 schrieb Mangirdas Skripka:

Apparently Google reCaptcha can't go into core as it requires everyone to register on google and generate a pair of keys to use it. But it goes fine as a plugin http://market.impresspages.org/plugins/GoogleReCaptcha

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/impresspages/ImpressPages/issues/774#issuecomment-203456092

maskas commented 8 years ago

I've just made this plugin, so it really wasn't there before.

You are right regarding required / optional. There is an update available that fixes that issue.

machomaaan commented 8 years ago

Good job!

Perfect! Thank you very much.

Regards from Austria, Mario

Am 30.03.2016 um 18:09 schrieb Mangirdas Skripka:

I've just made this plugin, so it really wasn't there before.

You are right regarding required / optional. There is an update available that fixes that issue.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/impresspages/ImpressPages/issues/774#issuecomment-203506615