[TYPO3-UG Oesterreich] th_mailformplus und jm_recaptcha
Reinhard Führicht
fuehricht at gmx.at
Thu Oct 18 12:21:01 CEST 2007
Hallo Karin,
ich habe erst vor kurzem eine ähnliche Anfrage bekommen und deshalb eine
Art Tutorial zusammengeschrieben.
Hier ist beschrieben, wie man die drei unterstützten Captcha-Extensions
mit Mailformplus nützt.
Ich hoffe das hilft dir weiter.
mfg,
Reinhard Führicht
---------------------------------------------------------------------------
Usage of captcha:
- add marker ###CAPTCHA### to your html template. This marker will be
replaced by the captcha image.
- add html code for an input field for the user to type the captcha text.
example: <input type="text" name="captchafield" />
- optional: add marker for error message:
example: ###error_captchafield###
- enter name of captcha field in typoscript.
example: plugin.tx_thmailformplus_pi1.captchaFieldname = captchafield
- optional: Define error messages in language file or html template.
template:
in subpart ###TEMPLATE_ERROR###
<!-- ###ERROR_captchafield### -->
<span class="error">Please enter text seen in the image!</span>
<!-- ###ERROR_captchafield### -->
language file:
...
'error_captchafield' => '<span class="error">Please enter text
seen in the image!</span>'
...
----------------------------------------------------------------------------
Usage of sr_freecap:
- copy needed subpart from the mailformplus or freecap manual into your
html template
- optional: add marker for error messages (see usage of captcha)
- enter name of captcha field in typoscript.
example: plugin.tx_thmailformplus_pi1.freecapFieldname = captchafield
----------------------------------------------------------------------------
Usage of recaptcha:
- register an account on www.recaptcha.net an get a public and private
key for your domain
- enter the keys in typoscript
plugin.tx_jmrecaptcha {
public_key = xxxxxxxxxxxxxxxxxxxx
private_key = xxxxxxxxxxxxxxxxxxx
}
- enter recaptcha fieldname in typoscript and activate usage of jm_recaptcha
plugin.tx_thmailformplus_pi1.recaptchaFieldname = recaptcha_response_field
plugin.tx_thmailformplus_pi1.useRecaptcha = 1
- add marker ###RECAPTCHA### to your html template
- optional: add marker for error messages (see usage of other captcha
extensions)
----------------------------------------------------------------------------
Karin Seifert-Lorenz wrote:
> Hallo !
>
> Ich realisiere ein Kontaktformular mit th_mailformplus und möchte reCAPTCHA
> zur spam protection benutzen.
>
> Funktioniert alles super, nur wie fang ich einen Fehleingabe ab und gib
> dann eine mehr oder weniger höfliche Fehlermeldung für den Benutzer aus,
> so wie das mit dem marker
>
> ###ERROR_[fieldname]###
>
> möglich ist?
>
> Mit ###ERROR_RECAPTCHA### gehts nicht.
>
> MfG,
>
> Karin Seifert-Lorenz
>
>
More information about the TYPO3-at
mailing list