---
title: "Vorstellung wt_calculating_captcha: Neue captcha Extension"
url: "https://www.typo3.net/d/85638-vorstellung-wt-calculating-captcha-neue-captcha-extension"
source: "typo3.net"
tags: ["Extensions","Vorstellung","Info","Sicherheit"]
created: "2009-01-10"
last_reply: "2009-03-06"
replies: 11
solved: false
page: 1
pages: 1
lang: "de"
---

# Vorstellung wt_calculating_captcha: Neue captcha Extension

Extensions › Vorstellung · 11 Antworten · gestartet 2009-01-10

## Eröffnungsbeitrag

**einpraegsam.​net** · 2009-01-10 · [Beitrag #1](https://www.typo3.net/d/85638-vorstellung-wt-calculating-captcha-neue-captcha-extension/1)

**Aufgabe:**
Weitere captcha Erweiterung, die den User etwas Kopfrechnen abverlangt und in anderen Erweiterungen easy eingebunden werden kann. Powermail 1.4.6 unterstützt calculating captcha bereits.

**Umsetzung:**
wt_calculating_captcha bringt ein Captcha Bild mit einer kleinen Rechenaufgabe. Das richtige Ergebnis bringt einen weiter.
Das kann per Typoscript eingestellt werden:
- Schriftart
- Schriftfarbe
- Schriftgröße
- Abstand
- Winkel
- Hintergrundbild
- Rechenoperatoren

**Sinn:**
Wie bereits bekannt sind captcha kein wirkliches Hindernis für Spammer - aber vielleicht hält es ein paar Monate  :D

**Beispiel:**
[Bild: design-and-style.de/…/captcha.png](http://www.design-and-style.de/temp/typo3/captcha.png)
Selbstverständlich kann das Bild besser erkennbar gemacht werden, ist jedoch absichtlich so eingestellt

**Link:**
<http://typo3.org/extensions/repository/>

## Antworten

### [#2](https://www.typo3.net/d/85638-vorstellung-wt-calculating-captcha-neue-captcha-extension/2) · just2b · 2009-01-10

also das is ja wirklich unlesbar, hast keine besseren beispiele?

ich mit meinen gut lesbaren 4 zahlen komm eignetlich gut durch, immer wieder überraschend im grunde

georg

### [#3](https://www.typo3.net/d/85638-vorstellung-wt-calculating-captcha-neue-captcha-extension/3) · einpraegsam.​net · 2009-01-10

Hintergrundbild, Farben und Schriftart lassen sich natürlich leserlicher einstellen, ich würde es aber so oder so ähnlich belassen

### [#4](https://www.typo3.net/d/85638-vorstellung-wt-calculating-captcha-neue-captcha-extension/4) · einpraegsam.​net · 2009-01-12

Update: wt_calculating_captcha 0.1.2 kann jetzt auch mit der Standard Kontaktformular Erweiterung genutzt werden (Weitere Infos im entsprechenden Handbuch)

### [#5](https://www.typo3.net/d/85638-vorstellung-wt-calculating-captcha-neue-captcha-extension/5) · underdog · 2009-03-03

Hallo,

ich habe deine Extension lt. Anleitung beim Standardformular installiert, erhalte aber leider folgende Fehlermeldung

Warning: imagecreatefrompng(/.../typo3conf/ext/wt_calculating_captcha/files/img/bg.png) [function.imagecreatefrompng]: failed to open stream: No such file or directory in /.../blog/typo3/typo3conf/ext/wt_calculating_captcha/class.tx_wtcalculatingcaptcha.php on line 69

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /.../blog/typo3/typo3conf/ext/wt_calculating_captcha/class.tx_wtcalculatingcaptcha.php on line 70

Warning: imagettftext() expects parameter 1 to be resource, boolean given in /.../blog/typo3/typo3conf/ext/wt_calculating_captcha/class.tx_wtcalculatingcaptcha.php on line 80

Warning: imagepng(): supplied argument is not a valid Image resource in /.../blog/typo3/typo3conf/ext/wt_calculating_captcha/class.tx_wtcalculatingcaptcha.php on line 81

Warning: imagedestroy(): supplied argument is not a valid Image resource in /.../blog/typo3/typo3conf/ext/wt_calculating_captcha/class.tx_wtcalculatingcaptcha.php on line 82

Warning: Cannot modify header information - headers already sent by (output started at /.../blog/typo3/typo3conf/ext/wt_calculating_captcha/class.tx_wtcalculatingcaptcha.php:69) in /.../blog/typo3/typo3/sysext/cms/tslib/class.tslib_fe.php on line 3226

Ich vermute mal das liegt an irgend einer Grafikeinstellung.
Hoffe du kannst mir hier weiterhelfen

danke im voraus
Gruß
underdog

### [#6](https://www.typo3.net/d/85638-vorstellung-wt-calculating-captcha-neue-captcha-extension/6) · einpraegsam.​net · 2009-03-04

Hmm, sieht nach einem Bug in der Extension aus... Debuging? Pfad zum Bild überprüfen, etc...

### [#7](https://www.typo3.net/d/85638-vorstellung-wt-calculating-captcha-neue-captcha-extension/7) · just2b · 2009-03-04

IMO Bug in der Extension, weil der absolute Pfad hardcodeded ist, was zu Problemen führt wenn man in einem Unterverzeichnis arbeitet

lg georg

### [#8](https://www.typo3.net/d/85638-vorstellung-wt-calculating-captcha-neue-captcha-extension/8) · einpraegsam.​net · 2009-03-04

???

```php
var $captchaimage = 'EXT:wt_calculating_captcha/captcha.png'; // Path to captcha image
...
imagepng($this->img, t3lib_div::getIndpEnv('TYPO3_DOCUMENT_ROOT').'/'.$GLOBALS['TSFE']->tmpl->getFileName($this->captchaimage)); // save image file
```

### [#9](https://www.typo3.net/d/85638-vorstellung-wt-calculating-captcha-neue-captcha-extension/9) · just2b · 2009-03-04

mea culpa, dann wars ne alte version oda ne andere ext, **sry**

### [#10](https://www.typo3.net/d/85638-vorstellung-wt-calculating-captcha-neue-captcha-extension/10) · einpraegsam.​net · 2009-03-04

@underdog: Aber genau hier wäre eine Debugausgabe interessant bei dir - ca. Zeile 80:

```php
t3lib_div::debug(t3lib_div::getIndpEnv('TYPO3_DOCUMENT_ROOT').'/'.$GLOBALS['TSFE']->tmpl->getFileName($this->captchaimage));
```

Grüße

### [#11](https://www.typo3.net/d/85638-vorstellung-wt-calculating-captcha-neue-captcha-extension/11) · micky1708 · 2009-03-06

Hallo,
genau vor diesem Problem mit dem Pfad sitze ich gerade.

```html
<b>Warning</b>:  imagecreatefrompng(/home/www/web105/html/typo3conf/ext/wt_calculating_captcha/files/img/bg.png) [<a href='function.imagecreatefrompng'>function.imagecreatefrompng</a>]: failed to open stream: No such file or directory in <b>/home/www/web105/html/typo3/typo3conf/ext/wt_calculating_captcha/class.tx_wtcalculatingcaptcha.php</b> on line <b>69</b><br />
<br />
<b>Warning</b>:  imagecolorallocate(): supplied argument is not a valid Image resource in <b>/home/www/web105/html/typo3/typo3conf/ext/wt_calculating_captcha/class.tx_wtcalculatingcaptcha.php</b> on line <b>70</b><br />

<br />
<b>Warning</b>:  imagettftext() expects parameter 1 to be resource, boolean given in <b>/home/www/web105/html/typo3/typo3conf/ext/wt_calculating_captcha/class.tx_wtcalculatingcaptcha.php</b> on line <b>80</b><br />
<br />
<b>Warning</b>:  imagepng(): supplied argument is not a valid Image resource in <b>/home/www/web105/html/typo3/typo3conf/ext/wt_calculating_captcha/class.tx_wtcalculatingcaptcha.php</b> on line <b>81</b><br />
<br />

<b>Warning</b>:  imagedestroy(): supplied argument is not a valid Image resource in <b>/home/www/web105/html/typo3/typo3conf/ext/wt_calculating_captcha/class.tx_wtcalculatingcaptcha.php</b> on line <b>82</b><br />
<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /home/www/web105/html/typo3/typo3conf/ext/wt_calculating_captcha/class.tx_wtcalculatingcaptcha.php:69) in <b>/home/www/web105/html/typo3/typo3/sysext/cms/tslib/class.tslib_fe.php</b> on line <b>3226</b><br />
```

Ich arbeite in einem Unterverzeicnis. Wo kann ich den korrekten Pfad eingeben?
Oder gibt es eine alternative Extension (Captcha mit Rechenaufgabe)?

Für schnelle Hilfe dankt
Micky

### [#12](https://www.typo3.net/d/85638-vorstellung-wt-calculating-captcha-neue-captcha-extension/12) · einpraegsam.​net · 2009-03-06

Alternative gibt es noch keine.

Debugging oder mit das Problem auf einem Testserver zeigen, damit ich mir das anschauen kann...

---

Quelle: „Vorstellung wt_calculating_captcha: Neue captcha Extension“, typo3.net, https://www.typo3.net/d/85638-vorstellung-wt-calculating-captcha-neue-captcha-extension
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
