[TYPO3-UG Dutch] Juiste foutafhandeling mailformplus en sr_freecap of welke andere captcha ook

Jordan van Bergen jordanvanbergen at gmail.com
Mon Oct 1 15:06:38 CEST 2007


Hoi Pascal en de rest natuurlijk,

> het een tijd geleden dat ik captcha (sr_freecap) en mailformplus heb 
> opgezet, het volgende is uit het hoofd:
> In het mailformplus record op de pagina:
> 'captcha_response' ook toevoegen als 'mandatory field' en
> in de html template van het formulier:
> ----
> <!--###CAPTCHA_INSERT###-->
> <div class="tx-your-extension-id-pi1-captcha">
> <label 
> for="tx_your_extension_id_pi1_captcha_response">###SR_FREECAP_NOTICE###</label><br/>
> ###SR_FREECAP_IMAGE###<br/>
> ###SR_FREECAP_CANT_READ###
> <br />
> ###ERROR_captcha_response###
> <input type="text" size="15" 
> id="tx_your_extension_id_pi1_captcha_response" name="captcha_response" 
> title="###SR_FREECAP_NOTICE###" value="">
> </div>
> <!--###CAPTCHA_INSERT###-->
> ----

Okay, bovenstaande had ik ook. Ik was alleen vergeten ook het volgende te 
doen:

- 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>'
        ...

Via bovenstaande in de template werkt het nu ;-)

Groeten,
Jordan van Bergen 



More information about the TYPO3-UG-dutch mailing list