Firefox PHP

Spam Hurdles Module (CAPTCHA's and other anti-spam tools)

Posted by Maurice Makaay 
Re: Spam Hurdles Module (CAPTCHA's and other anti-spam tools)
November 02, 2006 04:15PM
Thanks. I'll add it to the next release of the mod.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Spam Hurdles Module (CAPTCHA's and other anti-spam tools)
November 02, 2006 05:41PM
Hi Maurice,

Use the last version for the French file. I changed a few words to make it more explicit and corrected a gramar mistake.

About the module, I installed it. All works expect the GIF image. I get a bis rectangular blank. Any idea why?

Thanks,

Yves
Re: Spam Hurdles Module (CAPTCHA's and other anti-spam tools)
November 02, 2006 06:09PM
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:
        // 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
my blog linkedin profile secret sauce
Re: Spam Hurdles Module (CAPTCHA's and other anti-spam tools)
November 02, 2006 06:32PM
Quote
Yes
About the module, I installed it. All works expect the GIF image. I get a bis rectangular blank. Any idea why?

Probably your servers GD library doesn't have GIF support in it.

---
-=[ Panu ]=-
Re: Spam Hurdles Module (CAPTCHA's and other anti-spam tools)
November 02, 2006 06:35PM
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
Re: Spam Hurdles Module (CAPTCHA's and other anti-spam tools)
November 03, 2006 05:14AM
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
Re: Spam Hurdles Module (CAPTCHA's and other anti-spam tools)
November 03, 2006 05:25AM
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
my blog linkedin profile secret sauce
Re: Spam Hurdles Module (CAPTCHA's and other anti-spam tools)
November 03, 2006 05:36AM
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
Re: Spam Hurdles Module (CAPTCHA's and other anti-spam tools)
November 06, 2006 12:10PM
Please.. spam hurdles are making thousands of files in temp directory....what to do?????
Re: Spam Hurdles Module (CAPTCHA's and other anti-spam tools)
November 06, 2006 03:19PM
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
Sorry, only registered users may post in this forum.

Click here to login