.. ================================================== .. FOR YOUR INFORMATION .. -------------------------------------------------- .. -*- coding: utf-8 -*- with BOM. .. include:: ../Includes.txt .. _user-manual: Users Manual ============ Required Configuration ^^^^^^^^^^^^^^^^^^^^^^ 1) To use reCAPTCHA, you need to sign up for an API key pair for your site: http://www.google.com/recaptcha/admin 2) Set your API key pair in TypoScript: .. code-block:: typoscript :linenos: :emphasize-lines: 4, 5 plugin.tx_jhcaptcha { settings { reCaptcha { siteKey = secretKey = } } } Optional Configuration ^^^^^^^^^^^^^^^^^^^^^^ .. code-block:: typoscript :linenos: :emphasize-lines: 7, 11, 15 plugin.tx_jhcaptcha { settings { reCaptcha { # Description: The color theme of the widget # Options: dark | light # Default: light theme = light # Description: The language of the widget # Options: https://developers.google.com/recaptcha/docs/language # Default: en lang = en # Description: The size of the widget # Options: normal | compact # Default: normal size = normal } } } Usage in Form (EXT:form) ^^^^^^^^^^^^^^^^^^^^^^^^ The reCAPTCHA can easy be used in the `core extension form`_. The following steps are necessary: .. _core extension form: hhttps://docs.typo3.org/typo3cms/extensions/form/ .. note:: Note that the usage is possible with TYPO3 >= 8. Create a new field in your form reCAPTCHA (JhCaptchaRecaptcha) and save your form. Now the reCAPTCHA is ready! Usage in powermail (EXT:powermail) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The reCAPTCHA can easy be used in the `extension powermail`_. The following steps are necessary: .. _extension powermail: http://typo3.org/extensions/repository/view/powermail .. note:: Note that the usage has only been tested in the powermail versions 3.9 - 4.4! Most likely it will also work with later versions. Create a new field in your form, set a title ("Captcha" for example) and select the type "reCAPTCHA (jh_captcha)". Now the reCAPTCHA is ready! Usage in Formhandler (EXT:formhandler) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The reCAPTCHA can easy be used in the `extension formhandler`_ (or `phorax/formhandler`_ for TYPO3 v8). The following steps are necessary: .. _extension formhandler: http://typo3.org/extensions/repository/view/formhandler .. _phorax/formhandler: https://github.com/PHORAX/formhandler .. note:: Note that the usage has only been tested in the formhandler versions 2.3 - 2.4 and phorax/formhandler 3.0! Most likely it will also work with later versions. 1. Mastertemplate ----------------- First the captcha needs to be included in the master template. Example: .. code-block:: html :linenos: