Quote from: BobRay at Oct 30, 2009, 12:19 PM
Quote from: pierro at Oct 30, 2009, 10:15 AM
Quote from: jusmeig at Oct 30, 2009, 09:15 AM
Quote from: pierro at Oct 30, 2009, 09:08 AM
That’s veriword, but I don’t want to use it..
Why not?
Because I did not get it to work, I suspect it uses PHP5 and my php version is lower..
The odds are that if veriword.php doesn’t work for you, your custom captcha won’t work either (it works fine in PHP4). I’m going to guess that your problem is that GD and/or Freetype are either not enabled or misconfigured.
The captcha in SPForm is slightly different (though the file is still called veriword.php), you might take a look at it -- you’re welcome to use that code if it works for you.
I’ve have PHP4.. veriword.php prints the following error:
Fatal error: Call to undefined function: imagettfbbox() in /usr/home/abc/domains/abcvathorst.nl/public_html/manager/includes/veriword.php on line 124
So I guessed that imagettfbbox() is a PHP5 function?
With the script what I coded myself I get a captcha picture, but if I post the form the session[’captcha_code’] is not set.
So GD and/or Freetype not seems to be the problem.
Somehow MODX destroys all sessions in $_SESSION if you are not logged into the manager. If I’m logged in the manager my script works.., the captchacode is set in a session.