Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Alojin on January 07, 2019, 04:51:28 AM

Title: How do I activate Google reCAPATCHA on my website?
Post by: Alojin on January 07, 2019, 04:51:28 AM
I want to use recaptcha on my website and I have downloaded the zip, but how do I install it?
Title: Re: How do I activate Google reCAPATCHA on my website?
Post by: Shambles on January 07, 2019, 05:08:21 AM
Package Manager (https://wiki.simplemachines.org/smf/Packages)
Title: Re: How do I activate Google reCAPATCHA on my website?
Post by: Alojin on January 07, 2019, 06:28:09 AM
Thank you!

How can I import the code from Google reCAPATCHA? It says it's HTML, but the files is .php. Will that work? When I try I only get error messages.
Title: Re: How do I activate Google reCAPATCHA on my website?
Post by: Shambles on January 07, 2019, 06:32:07 AM
The Package Manager should handle all aspects of the installation for you. Point the Package Manager at the zip file you downloaded.

If by "error messages" you mean the Package Manager reported that it couldn't install it, see

How can I install a mod that doesn't work in my SMF version? (https://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version)

and

Manual Installation of Mods (https://wiki.simplemachines.org/smf/Manual_installation_of_mods)
Title: Re: How do I activate Google reCAPATCHA on my website?
Post by: Alojin on January 07, 2019, 09:15:53 AM
Yes, but don't I need to connect it to Google? I have to import a little code  into the website I want the capatcha to be on.
Title: Re: How do I activate Google reCAPATCHA on my website?
Post by: Shambles on January 07, 2019, 09:23:10 AM
Ahh right. So you didn't use the ready-built SMF reCaptcha mod?

https://custom.simplemachines.org/mods/index.php?mod=1044
Title: Re: How do I activate Google reCAPATCHA on my website?
Post by: Alojin on January 07, 2019, 09:34:33 AM
I've tried that one, but when I Press "install now" (only 3 of the parts is installed) the website just loads forever. No extension blocking it or whatever. I cannot see any new features in the "anti-spam" section either. Please see the picture attached.
Title: Re: How do I activate Google reCAPATCHA on my website?
Post by: Shambles on January 07, 2019, 12:02:17 PM
^^ Check your error log.

I recommend staying with the mod as it's proven very useful and easy to manage for v2 reCaptcha.

https://www.simplemachines.org/community/index.php?topic=213535.880