Spam Hurdles Module (CAPTCHA's and other anti-spam tools)
Posted by Maurice Makaay
November 02, 2006 04:15PM |
Admin Registered: 20 years ago Posts: 8,532 |
Thanks. I'll add it to the next release of the mod.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team



Re: Spam Hurdles Module (CAPTCHA's and other anti-spam tools) November 02, 2006 05:41PM |
Registered: 18 years ago Posts: 99 |
November 02, 2006 06:09PM |
Admin Registered: 20 years ago Posts: 8,532 |
Could you check your webserver's error log? Maybe the PHP installation does not support writing images as GIF images. Try changing mods/spamhurdles/captcha/class.captcha_image.php. At the end, change this:
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
// Display the image. header("Content-Type: image/jpeg"); imagejpeg($cropped); imagedestroy($cropped);In a new release of the module, I want to make the type of image to create configurable, so the module is compatible with more PHP installations.
Maurice Makaay
Phorum Development Team



Re: Spam Hurdles Module (CAPTCHA's and other anti-spam tools) November 02, 2006 06:32PM |
Registered: 23 years ago Posts: 1,076 |
Re: Spam Hurdles Module (CAPTCHA's and other anti-spam tools) November 02, 2006 06:35PM |
Registered: 18 years ago Posts: 99 |
Quote
mmakaay
Could you check your webserver's error log? Maybe the PHP installation does not support writing images as GIF images.
Well that is too much to ask of me... :-(
Quote
mmakaay
Try changing mods/spamhurdles/captcha/class.captcha_image.php. At the end, change this:
// Display the image. header("Content-Type: image/jpeg"); imagejpeg($cropped); imagedestroy($cropped);
Well I did but it did not work better. Check it out to the testing forum
[www.voile.org]
In any case, I can live without it. I do like the Code drawn using Java.
Regards,
Yves
November 03, 2006 05:14AM |
Registered: 22 years ago Posts: 687 |
Dear Maurice, did you notice my posts on October 25, 2006 12:55PM? Not a problem if you did, but I thought you may have missed them! :-)
/\
--
My notable Phorum sites:
Movie Deaths Database - "review comments" system mostly powered by Phorum
Learn Chinese! - integrated forum quiz
/\
--
My notable Phorum sites:
Movie Deaths Database - "review comments" system mostly powered by Phorum
Learn Chinese! - integrated forum quiz

November 03, 2006 05:25AM |
Admin Registered: 20 years ago Posts: 8,532 |
Quote
sheik
This is obviously because their cache information has been wiped by my cronjob.
Then you are wiping files too fast. I don't know what your cronjob looks like, but you can change it to only delete files that are older than [x] time. When making [x] time large enough, users won't be bothered with the cron job cleaning up the cache files.
Quote
sheik
When mod_spamhurdles thinks it detects spam (as in the above scenario) it somehow manages to wipe all previously included PHP global variables - how does it do this?
Spam Hurdles does nothing to do this. I am running the module inside an embedded environment with totally customized templates without problems at all. So I can't really think of anything that would cause this.
About your other post: I'll add the typo fix to the next release of the Spam Hurdles mod.
Maurice Makaay
Phorum Development Team



November 03, 2006 05:36AM |
Registered: 22 years ago Posts: 687 |
Thanks Maurice,
I was wiping my spamhurdles cache files every 20 minutes, as they get created at a frightening rate on my server (I've also temporarily moved the "reply" form to a separate page, which my users hate).
I'm looking at your script here [www.phorum.org] to see if I can only delete older files now.
/\dam
--
My notable Phorum sites:
Movie Deaths Database - "review comments" system mostly powered by Phorum
Learn Chinese! - integrated forum quiz
I was wiping my spamhurdles cache files every 20 minutes, as they get created at a frightening rate on my server (I've also temporarily moved the "reply" form to a separate page, which my users hate).
I'm looking at your script here [www.phorum.org] to see if I can only delete older files now.
/\dam
--
My notable Phorum sites:
Movie Deaths Database - "review comments" system mostly powered by Phorum
Learn Chinese! - integrated forum quiz

Re: Spam Hurdles Module (CAPTCHA's and other anti-spam tools) November 06, 2006 12:10PM |
Registered: 19 years ago Posts: 11 |
November 06, 2006 03:19PM |
Admin Registered: 20 years ago Posts: 8,532 |
Ehrm... weren't you told to actually read this thread? See the link in the posting previous to your one. There you can find a script to periodically clean up the temporary files.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team



Sorry, only registered users may post in this forum.