Einzelnen Beitrag anzeigen
  #1  
Alt 30.01.07, 16:17
vario vario ist offline
Forum Aktivist
 
Registriert seit: 04.10.06
Alter: 21
Beiträge: 66

sr_freecap_0.4.5 HILFEE


Hallo!

Ich habe ve_guestbook und sr_freecap nur ich komme mit der online Hilfe nicht klar...
ich weiß nicht wo ich die ganzen Code Zeilen einfügen muss...

kann mir jemand weiterhelfen wo ich folgende Codezeilen unterbringen muss?
Im Formular wird mir der Code schon angezeigt. Nur weiß ich nicht wo die überprüfung hingehört...

Hier steht:
The tx_srfreecap_pi2 class may be used in any Typo3 frond end plugin.
Insert statements similar to the following in order to include it and instantiate it your script:

In welches Skript?? Welche Datei?

Code:

if (t3lib_extMgm::isLoaded('sr_freecap') ) {
require_once(t3lib_extMgm::extPath('sr_freecap').'pi2/class.tx_srfreecap_pi2.php');
$this->freeCap = t3lib_div::makeInstance('tx_srfreecap_pi2');
}

Nächster Teil:
Filling the CAPTCHA subpart marker
Insert statements similar to the following in order to fill the CAPTCHA subpart marker:

Wo einfügen?

Code:
if (is_object($this->freeCap)) {
$markerArray = array_merge($markerArray, $this->freeCap->makeCaptcha());
} else {
$subpartArray['###CAPTCHA_INSERT###'] = '';
}

????
Method makeCaptcha() returns a marker array with filled in values for markers:
###SR_FREECAP_NOTICE###, ###SR_FREECAP_CANT_READ### and ###SR_FREECAP_IMAGE###.


und dann noch dieser Part...

Checking the input string against the CAPTCHA string
Insert statements similar to the following in order to validate the string entered by the user in the CAPTCHA input field:

Code:

if (is_object($this->freeCap) && !$this->freeCap->checkWord($your-form-data['captcha_response'])) {
do-something about-it
}
Method checkWord($string) returns true if the correct string was entered or false otherwise.


Kann mir bitte jemand helfen?
mfg Vario
Mit Zitat antworten