![]() |
| | LinkBack | Themen-Optionen | Thema durchsuchen | Thema bewerten | Ansicht |
|
#1
| |||
| |||
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 |
| Sponsored Links |
![]() TYPO3 Forum.net empfiehlt domainFactory als Hoster! |
|
#2
| ||||
| ||||
| Ich habe jetzt gerade die neueste ve_guestbook und sr_freecap installiert. Ohne beim Freecap was einzustellen (auch beim Gästebuch nicht) habe ich beim Form des Gästebuches die Captchagrafik. Mein Standard-Template vom ve_guestbook (Auszug) HTML-Code: <!-- ###TEMPLATE_FORM### begin The guestbook form for a new frontend entry Following markers will be substituted: ###FORM_FIRSTNAME### Firstname ###FORM_SURNAME### Surname ###FORM_EMAIL### E-Mail ###FORM_HOMEPAGE### Website ###FORM_PLACE### Place ###FORM_ENTRY### Message --> <span class="tx-guestbook-form-error">###FORM_ERROR###</span>###FORM_ERROR_FIELDS### <form name="formular" method="post" action="###ACTION_URL###"> <table cellpadding="3" cellspacing="3" border="0"> <tr> <td>###FORM_FIRSTNAME### <span class="tx-guestbook-form-obligationfield">###FORM_FIRSTNAME_OBLIGATION###</span></td> <td><input type="text" name="tx_veguestbook_pi1[firstname]" value="###VALUE_FIRSTNAME###" class="tx-guestbook-form-inputfield-med" /></td> </tr> <tr> <td>###FORM_SURNAME### <span class="tx-guestbook-form-obligationfield">###FORM_SURNAME_OBLIGATION###</span></td> <td><input type="text" name="tx_veguestbook_pi1[surname]" value="###VALUE_SURNAME###" class="tx-guestbook-form-inputfield-med" /></td> </tr> <tr> <td>###FORM_EMAIL### <span class="tx-guestbook-form-obligationfield">###FORM_EMAIL_OBLIGATION###</span></td> <td><input type="text" name="tx_veguestbook_pi1[email]" value="###VALUE_EMAIL###" class="tx-guestbook-form-inputfield-med" /></td> </tr> <tr> <td>###FORM_HOMEPAGE### <span class="tx-guestbook-form-obligationfield">###FORM_HOMEPAGE_OBLIGATION###</span></td> <td><input type="text" name="tx_veguestbook_pi1[homepage]" value="###VALUE_HOMEPAGE###" class="tx-guestbook-form-inputfield-big" /></td> </tr> <tr> <td>###FORM_PLACE### <span class="tx-guestbook-form-obligationfield">###FORM_PLACE_OBLIGATION###</span></td> <td><input type="text" name="tx_veguestbook_pi1[place]" value="###VALUE_PLACE###" class="tx-guestbook-form-inputfield-big" /></td> </tr> <!--###CAPTCHA_INSERT### this subpart is removed if CAPTCHA is not enabled! --> <tr> <td valign="top">###FORM_CAPTCHA_RESPONSE###<br> ###SR_FREECAP_NOTICE### ###SR_FREECAP_CANT_READ###</td> <td><input type="text" class="tx-guestbook-form-inputfield-med" name="tx_veguestbook_pi1[captcha_response]" title="###SR_FREECAP_NOTICE###" value="" /> ###SR_FREECAP_IMAGE###</td> </tr> <!--###CAPTCHA_INSERT###--> <tr> <td> </td> <td><input type="hidden" name="id" value="###PID###" /><input type="hidden" name="tx_veguestbook_pi1[submitted]" value="1" /><input type="submit" value="###FORM_SUBMIT###" /></td> </tr> </table> <table cellpadding="3" cellspacing="3" border="0"> <tr> <td valign="top">###FORM_ENTRY### <span class="tx-guestbook-form-obligationfield">###FORM_ENTRY_OBLIGATION###</span></td> <td><textarea name="tx_veguestbook_pi1[entry]" class="tx-guestbook-form-textarea" rows="8" cols="25">###VALUE_ENTRY###</textarea></td> </tr> </table> </form> <br /> <!-- ###TEMPLATE_FORM### end -->
__________________ Bitte markiere Deinen Thread als Gelöst, wenn er es ist! Wie geht das? Hast Du ihn eventl. selbst gelöst? Dann lass uns an der Lösung teilhaben! Das Anzeigen von Typoscript in Beiträgen steuern |
|
#3
| |||
| |||
| Mittlerweile habe ich es auch hinbekommen dass die Grafik angezeigt wird (mit Hilfe eines anderen Threads). Nur die Überprüfung stimmt irgendwie nicht, da er keinen Wert akzeptiert obwohl er richtig abgeschrieben ist... Funktioniert dass bei dir? Mit welcher ve_uestbook und mit welcher sr_freecap Version arbeitest du? mfg |
|
#4
| ||||
| ||||
| Es wäre schon, wenn du an dieser Stelle schreiben könntest, in welchem anderen Link die Lösung steht... Ich suche noch... Gruss -Pie
__________________ Typo3 4.1.1 | TemplaVoila 1.2.1 | RealURL 1.1.0 | DirectMail 2.5.3 | Apache2 | PHP 5.2.0 Was heute noch nicht richtig ist, kann morgen schon falsch sein |
|
#5
| |||
| |||
| Den Thread weiß ichnicht mehr, aber die neuste Guestbook version installieren, dann freecap installieren und dann hats funktioniert |
|
#6
| ||||
| ||||
| Danke für die Info ![]()
__________________ Typo3 4.1.1 | TemplaVoila 1.2.1 | RealURL 1.1.0 | DirectMail 2.5.3 | Apache2 | PHP 5.2.0 Was heute noch nicht richtig ist, kann morgen schon falsch sein |
![]() |
| Themen-Optionen | Thema durchsuchen |
| Ansicht | Thema bewerten |
| |