Antwort
 
LinkBack Themen-Optionen Thema durchsuchen Thema bewerten Ansicht
  #1  
Alt 30.01.07, 15:17
Forum Aktivist
 
Registriert seit: 04.10.06
Alter: 20
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #2  
Alt 30.01.07, 16:52
Benutzerbild von josDesign
TYPO3 Forum Team
Administrator
 
Registriert seit: 24.07.06
Alter: 23
Beiträge: 1.695
josDesign eine Nachricht über Skype™ schicken

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>&nbsp;</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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #3  
Alt 30.01.07, 21:55
Forum Aktivist
 
Registriert seit: 04.10.06
Alter: 20
Beiträge: 66

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #4  
Alt 10.05.07, 20:03
Benutzerbild von Pie
Pie Pie ist offline
Forum Stammgast
 
Registriert seit: 07.01.07
Ort: Solingen
Alter: 38
Beiträge: 161

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #5  
Alt 12.05.07, 16:53
Forum Aktivist
 
Registriert seit: 04.10.06
Alter: 20
Beiträge: 66

Den Thread weiß ichnicht mehr, aber die neuste Guestbook version installieren, dann freecap installieren und dann hats funktioniert
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #6  
Alt 12.05.07, 18:34
Benutzerbild von Pie
Pie Pie ist offline
Forum Stammgast
 
Registriert seit: 07.01.07
Ort: Solingen
Alter: 38
Beiträge: 161
Daumen hoch

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
Antwort


Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge anzufügen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

vB Code ist An.
Smileys sind An.
[IMG] Code ist An.
HTML-Code ist Aus.
Trackbacks are An
Pingbacks are An
Refbacks are An



Alle Zeitangaben in WEZ +1. Es ist jetzt 20:43 Uhr.


Powered by vBulletin® Version 3.6.8 Patch Level 2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Template-Modifikationen durch TMS