Table of content :

Sf Active Captcha


  • You'll need pear and the Captcha module for it (and all of it's dependencies)

      # pear install channel://
      # pear install channel://

  • You'll have to add the path to pear to your include path


  • Make sure you have some ttf fonts (Arial or so) installed in a good way.

Extra directories

  • Create website/images/captcha
  • chmod 775 website/images/captcha
  • chown www.yoursitegroup website/images/captcha

Extra/Changed Files in sitename

  • The template ones are new. so you can use both captcha & non captcha sites.

  • the php files contain 'session_start();' directly after <? & the page called is 'publishcap' instead of publish and so on.

New files in shared/classes/pages/

Additional Tweaks.

  • in the .inc files you'll have to do:
    • change the require_once of the captcha file to something valid
    • change the lines pointing to the font-dir & path to something valid


  • because the captcha files are not deleted automatically, you might want to create a cronscript that simply does a find /sitename/website/images/captcha/ -type f -ctime 7 -exec rm {} \; Eventually you want to ionice that! (-ctime 7 deletes files older than a week, quite conservative but will keep the directory from getting ridiculous)
  • when you use squid to mirror content, be aware to not mirror the captcha! Maybe you want to edit the files in share/classes/pages (,, that define the directory where the captcha should be stored. (/captcha/ is a better idea although squid doesn't cause problems for the captcha for me)
  • I prefer to use reCAPTCHA, it is actually easier to set up than this, and works better. (includes an audio captcha for accessability) See -- MattToups - 23 Feb 2008
Topic attachments
I Attachment Action Size Date Who Comment
comment.php.txttxt comment.php.txt manage 461 bytes 20 Jun 2007 - 16:34 UnknownUser  
commentcap.incinc manage 4 K 20 Jun 2007 - 16:32 UnknownUser  
commentcap.tpl.txttxt commentcap.tpl.txt manage 5 K 20 Jun 2007 - 16:37 UnknownUser  
event_display_add.php.txttxt event_display_add.php.txt manage 459 bytes 20 Jun 2007 - 16:34 UnknownUser  
event_display_addcap.incinc manage 13 K 20 Jun 2007 - 16:33 UnknownUser  
event_display_addcap.tpl.txttxt event_display_addcap.tpl.txt manage 6 K 20 Jun 2007 - 16:37 UnknownUser  
publish.php.txttxt publish.php.txt manage 412 bytes 20 Jun 2007 - 16:34 UnknownUser  
publishcap.incinc manage 26 K 20 Jun 2007 - 16:32 UnknownUser  
publishcap.tpl.txttxt publishcap.tpl.txt manage 5 K 20 Jun 2007 - 16:37 UnknownUser  
Topic revision: r7 - 25 Apr 2008, MattToups
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback