[TYPO3-ect] bananas - question about captcha
Steffen Kamper
steffen at dislabs.de
Fri Feb 9 21:59:04 CET 2007
"Daniel Brüßler" <info at -remove-patchworking.de> schrieb im Newsbeitrag
news:mailman.1.1171023023.31800.typo3-team-extension-coordination at lists.netfielders.de...
> Hello Elmar,
>
> in the moment $captcha->ok is false, when I type in the correct answer
> into the captcha-field.
>
> I think I didn't forget how to substract 7 from 220 and how to add 0 to
> 220 ;-)
>
> Do you know what I do wrong?
>
> $captchaClassName = tx_div::makeInstanceClassName('tx_lib_captcha');
> $captcha = new $captchaClassName($this);
> if(!$captcha->ok($this->getClassName())) { // same ID as in captchaAction
> print '-- captcha->ok=TRUE --<br/>';
> ...
> }else{
> print '-- captcha->ok=FALSE --<br/>';
> }
>
> +++--------
>
> by the way: it's all very great - for example I added "captchaQuestion"
> in the lang-xml and captcha-template and it's automatically parsed like
> magic. Wow!
>
> kind regards
> Daniel Brüßler
Hi all,
there is another problem I saw. It's not possible to add 2 plugins to a
page, as you normally wants to: a form and a list. The 2 plugins reacting on
the piVars same way.
This is also a generic problem, that piVars don't have an identifier, e.g.
the id of the plugin.
I thought several time about this and may be the idea is practicable:
tx_extension_pi1[_ID_][var]
So all piVars are in the array, the plugin can decide:
[_ID_]==own ID : private
[_ID_]!=own ID : public
what do you think ?
vg Steffen
More information about the TYPO3-team-extension-coordination
mailing list