<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>captcha module (image security codes for registration)</title>
        <description> I saw this on the todo list and thought I&amp;#039;d give it a try:

&amp;quot;optional image security code for posting to prevent scripted posts (um, mod?)&amp;quot;

captcha = &amp;quot;completely automated public Turing test to tell computers and humans apart&amp;quot;

Demo: [www.alouie.com]
Screenshot: see attachment


contents of readme.txt:
----------------------

mod_captcha: adds a captcha image to the user registration process
             more info about captchas: [en.wikipedia.org]

Phorum 5 module by arlo, based on Arnab Nandi&amp;#039;s captcha drupal module [drupal.org]).


Requirements:
------------

- the GD library, which is usually pre-installed on linux systems
  [www.php.net] 

- Phorum 5.0.10 or higher. mod_captcha uses module localization.


Installation:
------------

In addition to placing the captcha directory inside mods and turning the
captcha module on, you need to do the following:


1. Go to the captcha module settings in the admin and enter the two
   paths. These are required (if they&amp;#039;re left blank, you&amp;#039;ll get an error message
   on the registration page).

   Temporary image file path: this is the complete path to a world-writable
       directory on your server. mod_captcha will store its PNG files here.
       We recommend that you create a captcha_tmp directory inside phorum/images.
       Example: /home/site/www/phorum/images/captcha_tmp
       The commands to create this directory would be:
           cd /home/site/www/phorum/images
           mkdir captcha_tmp
           chmod a+w captcha_tmp

   Temporary image web path relative to phorum: in the example above, the
       path to type in would be:  images/captcha_tmp 


2. Add a line to the register.tpl template

   Near the bottom of register.tpl, immediately before the &amp;lt;/table&amp;gt;, add the line:

   {IF MOD_CAPTCHA_HTML}{MOD_CAPTCHA_HTML}{/IF}


3. You&amp;#039;re done. When a new user attempts to register, he/she will need to identify
   the captcha image to proceed. One last thing: you&amp;#039;ll need to delete the
   captcha*.png files from the temporary file directory from time to time.
   Images get deleted for you when people correctly identify captchas, but they
   stay on the server when they&amp;#039;re misidentified. You could either do this manually
   or set up a cron job to do it automatically.</description>
        <link>https://www.phorum.org/phorum5/read.php?16,11909,11909#msg-11909</link>
        <lastBuildDate>Thu, 16 Apr 2026 20:34:24 -0400</lastBuildDate>
        <generator>Phorum 5.2.22</generator>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,11909,128958#msg-128958</guid>
            <title>Re: captcha module (image security codes for registration)</title>
            <link>https://www.phorum.org/phorum5/read.php?16,11909,128958#msg-128958</link>
            <description><![CDATA[ I cleaned up the module:<br />
- No more php warnings on your apache error log<br />
- Better documentation<br />
- Do not delete .htaccess, .cvsignore and subdirectories<br />
- Added version information<br />
- Made the captcha more readable<br />
- Tested with the latest phorum5.1 available]]></description>
            <dc:creator>amilcarpt</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Thu, 13 Mar 2008 14:27:02 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,11909,121265#msg-121265</guid>
            <title>Re: captcha module (image security codes for registration)</title>
            <link>https://www.phorum.org/phorum5/read.php?16,11909,121265#msg-121265</link>
            <description><![CDATA[ See the first post in this thread, you have to add a line to the register.tpl <br />
<br />
Frank]]></description>
            <dc:creator>fmon</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Thu, 29 Mar 2007 13:15:06 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,11909,121240#msg-121240</guid>
            <title>Re: captcha module (image security codes for registration)</title>
            <link>https://www.phorum.org/phorum5/read.php?16,11909,121240#msg-121240</link>
            <description><![CDATA[ I&#039;m running phorum 5.1.20. I installed and configured the mod as specified, but it does not appear in the registration form. Has anyone seen this behavior, or successfully installed it in a recent phorum update?<br />
<br />
thanks]]></description>
            <dc:creator>mshell</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Wed, 28 Mar 2007 13:47:52 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,11909,120233#msg-120233</guid>
            <title>Re: captcha module (image security codes for registration)</title>
            <link>https://www.phorum.org/phorum5/read.php?16,11909,120233#msg-120233</link>
            <description><![CDATA[ Hi, I downloaded this module and applied. But there is an error on the register page. I also tried to delete the &quot;rotate&quot; part of code, but without success. I´m not sure, if I have written the first path (Temporary image file path) well. I tried www/diskuze/images/captcha_tmp , but it shows an error.<br />
<br />
I understand what means the second path, but I don´t get what means the first path. It is not path to some directory at some server, where are pngs to be viewed when registering, am I right? It seems to me (with my poor knowledge of php), that it is the way to my directory at my server, but there are no pictures... so no pictures can be viewed...  I mean - from where do the pictures (to be viewed when registering) will be downloaded? <br />
<br />
If anybody can help, i will appreciate it.]]></description>
            <dc:creator>Thomass</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Mon, 12 Feb 2007 11:16:55 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,11909,116054#msg-116054</guid>
            <title>Re: I have installed this module, and it works. However . . .</title>
            <link>https://www.phorum.org/phorum5/read.php?16,11909,116054#msg-116054</link>
            <description><![CDATA[ FYI,  I used to get the following error:<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />Fatal error: Call to undefined function: imagerotate() in /home/yorktown2/www/forums/asroc/mods/captcha/captcha.php on line 78</div></blockquote>
<br />
I figured it out how to fix is and solve Timothy&#039;s issue above:<br />
 <br />
Edit capthca.php<br />
<br />
Lines 77 to 80<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />       // rotate<br />
        $im = imagerotate($im2,rand(-13,21),$background);<br />
        imagedestroy($im2);<br />
        <br />
<br />
        $middleground = imagecolorallocatealpha($im, rand(160, 200), rand(160, 200), rand(160, 200), 80);</div></blockquote>
<br />
change to:<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />        /*rotate<br />
        $im = imagerotate($im2,rand(-13,21),$background);<br />
        imagedestroy($im2);<br />
        */<br />
<br />
        $middleground = imagecolorallocatealpha($im2, rand(160, 200), rand(160, 200), rand(160, 200), 80);</div></blockquote>
<br />
Note that IM2 will be used as the image and the words will be readable.  Also, I get no more errors.]]></description>
            <dc:creator>yorktown</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Wed, 30 Aug 2006 12:56:50 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,11909,115353#msg-115353</guid>
            <title>I have installed this module, and it works. However . . .</title>
            <link>https://www.phorum.org/phorum5/read.php?16,11909,115353#msg-115353</link>
            <description><![CDATA[ . . . the graphics images that are generated are EXCEEDINGLY difficult to read. I have attached some samples.<br />
<br />
Are there any settings that can be configured to make the generated graphics more legible? <br />
<br />
I understand that the point of the module is to generate graphics that a computer cannot read, but it seems that these graphics cannot be read by humans either! ;o)<br />
<br />
Otherwise it is a very useful enhancement, and I thank the developers for it. Does anyone have any suggestions for a fix? Thanks!<br />
<br />
--Timothy]]></description>
            <dc:creator>Timothy</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Thu, 10 Aug 2006 18:02:07 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,11909,112567#msg-112567</guid>
            <title>Re: captcha module (image security codes for registration)</title>
            <link>https://www.phorum.org/phorum5/read.php?16,11909,112567#msg-112567</link>
            <description><![CDATA[ Well it was not as simple as suggested below. For post forms one has to write a different hook function for verification (for the check_post hook). Initially I tried to add this second hook into the original module, but I couldn&#039;t make it work properly in all cases, and so I made it into a separate module captchaP posted here: [<a href="http://www.phorum.org/phorum5/read.php?16,112566" target="_blank" >www.phorum.org</a>]<br />
<br />
I&#039;ve also added into both modules an automatic deletion by the modules themselves of the unused captcha images - see my previous post in this thread.<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>Panu</strong><br />I quess you can do as instructed, but put {IF MOD_CAPTCHA_HTML}{MOD_CAPTCHA_HTML}{/IF} in post form instead and change the module to process post too<br />
lines with:<br />
<pre class="bbcode">
if (phorum_page == &quot;register&quot; &amp;&amp; !empty($_POST)) {

should be something like

if (phorum_page == &quot;register&quot; || phorum_page == &quot;posting&quot;) &amp;&amp; !empty($_POST)) {</pre>
<br />
The module runs in after header, and common hooks which are run after post as well so that should do it?<br />
<br />
Maybe someone wants to enhance the module so that it&#039;s user definable where to use it?</div></blockquote>]]></description>
            <dc:creator>MiKolar</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Mon, 01 May 2006 03:13:27 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,11909,112565#msg-112565</guid>
            <title>Re: captcha module (image security codes for registration)</title>
            <link>https://www.phorum.org/phorum5/read.php?16,11909,112565#msg-112565</link>
            <description><![CDATA[ I have added to this module an automatic cleaning of the png temporary image directory by the module itself (after a number of minutes that is apecified in admin). I have also increased somewhat the size of the letters in the image.<br />
<br />
Module with these modifications is attached.]]></description>
            <dc:creator>MiKolar</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Mon, 01 May 2006 02:46:59 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,11909,54055#msg-54055</guid>
            <title>Re: captcha module (image security codes for registration)</title>
            <link>https://www.phorum.org/phorum5/read.php?16,11909,54055#msg-54055</link>
            <description><![CDATA[ As an update, I have now implemented a non-graphical CAPTCHA module when posting.<br />
<br />
You can download it here: [<a href="http://www.phorum.org/phorum5/read.php?16,54054" target="_blank" >www.phorum.org</a>]<br />
<br />
/\dam]]></description>
            <dc:creator>sheik</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Tue, 07 Feb 2006 11:28:57 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,11909,53896#msg-53896</guid>
            <title>Re: captcha module (image security codes for registration)</title>
            <link>https://www.phorum.org/phorum5/read.php?16,11909,53896#msg-53896</link>
            <description><![CDATA[ FYI, I had to remove the following section from captcha.php to get the module to work:<br />
<br />
//rotate<br />
        $im2 = imagerotate($im,rand(-20,45),$background);<br />
        imagedestroy($im);<br />
        $im = $im2;<br />
<br />
<br />
Until I removed that bit of code, I got an error message, if I recall correctly something about an undeclared function.<br />
<br />
Now, the image appears where it should in a horizontally-situated rectangle.  The module nonetheless works fine.<br />
<br />
Just thought you might like to know.  Thanks for the excellent work..... Regards]]></description>
            <dc:creator>bwv</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Fri, 03 Feb 2006 14:04:00 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,11909,51919#msg-51919</guid>
            <title>Re: captcha module (image security codes for registration)</title>
            <link>https://www.phorum.org/phorum5/read.php?16,11909,51919#msg-51919</link>
            <description><![CDATA[ Thanks Panu,<br />
If I implemented this, I would try and log a &quot;session timeout&quot; each time the code was entered.  Having to enter a code per post would be excruciating, but once per visit to the site wouldn&#039;t be too bad.<br />
<br />
  /\]]></description>
            <dc:creator>sheik</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Tue, 22 Nov 2005 12:28:50 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,11909,51854#msg-51854</guid>
            <title>Re: captcha module (image security codes for registration)</title>
            <link>https://www.phorum.org/phorum5/read.php?16,11909,51854#msg-51854</link>
            <description><![CDATA[ I quess you can do as instructed, but put {IF MOD_CAPTCHA_HTML}{MOD_CAPTCHA_HTML}{/IF} in post form instead and change the module to process post too<br />
lines with:<br />
<pre class="bbcode">
if (phorum_page == &quot;register&quot; &amp;&amp; !empty($_POST)) {

should be something like

if (phorum_page == &quot;register&quot; || phorum_page == &quot;posting&quot;) &amp;&amp; !empty($_POST)) {</pre>
<br />
The module runs in after header, and common hooks which are run after post as well so that should do it?<br />
<br />
Maybe someone wamts to enhance the module so that it&#039;s user definable where to use it?]]></description>
            <dc:creator>Panu</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Sat, 19 Nov 2005 09:42:37 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,11909,51852#msg-51852</guid>
            <title>Re: captcha module (image security codes for registration)</title>
            <link>https://www.phorum.org/phorum5/read.php?16,11909,51852#msg-51852</link>
            <description><![CDATA[ Has anybody written a module to apply image security for posting messages?<br />
<br />
Thanks,<br />
<br />
  /\dam]]></description>
            <dc:creator>sheik</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Sat, 19 Nov 2005 09:05:07 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?16,11909,11909#msg-11909</guid>
            <title>captcha module (image security codes for registration)</title>
            <link>https://www.phorum.org/phorum5/read.php?16,11909,11909#msg-11909</link>
            <description><![CDATA[ I saw this on the todo list and thought I&#039;d give it a try:<br />
<br />
<i>&quot;optional image security code for posting to prevent scripted posts (um, mod?)&quot;</i><br />
<br />
captcha = &quot;completely automated public Turing test to tell computers and humans apart&quot;<br />
<br />
Demo: [<a href="http://www.alouie.com/dev.phorum5/register.php" target="_blank"  rel="nofollow">www.alouie.com</a>]<br />
Screenshot: see attachment<br />
<br />
<br />
contents of readme.txt:<br />
----------------------<br />
<br />
mod_captcha: adds a captcha image to the user registration process<br />
             more info about captchas: [<a href="http://en.wikipedia.org/wiki/Captcha" target="_blank"  rel="nofollow">en.wikipedia.org</a>]<br />
<br />
Phorum 5 module by arlo, based on Arnab Nandi&#039;s captcha drupal module [<a href="http://drupal.org/project/captcha" target="_blank"  rel="nofollow">drupal.org</a>]).<br />
<br />
<br />
Requirements:<br />
------------<br />
<br />
- the GD library, which is usually pre-installed on linux systems<br />
  [<a href="http://www.php.net/manual/en/ref.image.php" target="_blank"  rel="nofollow">www.php.net</a>] <br />
<br />
- Phorum 5.0.10 or higher. mod_captcha uses module localization.<br />
<br />
<br />
Installation:<br />
------------<br />
<br />
In addition to placing the captcha directory inside mods and turning the<br />
captcha module on, you need to do the following:<br />
<br />
<br />
1. Go to the captcha module settings in the admin and enter the two<br />
   paths. These are required (if they&#039;re left blank, you&#039;ll get an error message<br />
   on the registration page).<br />
<br />
   <b>Temporary image file path:</b> this is the complete path to a world-writable<br />
       directory on your server. mod_captcha will store its PNG files here.<br />
       We recommend that you create a captcha_tmp directory inside phorum/images.<br />
       Example: /home/site/www/phorum/images/captcha_tmp<br />
       The commands to create this directory would be:<br />
           cd /home/site/www/phorum/images<br />
           mkdir captcha_tmp<br />
           chmod a+w captcha_tmp<br />
<br />
   <b>Temporary image web path relative to phorum:</b> in the example above, the<br />
       path to type in would be:  images/captcha_tmp <br />
<br />
<br />
2. Add a line to the register.tpl template<br />
<br />
   Near the bottom of register.tpl, immediately before the &lt;/table&gt;, add the line:<br />
<br />
   {IF MOD_CAPTCHA_HTML}{MOD_CAPTCHA_HTML}{/IF}<br />
<br />
<br />
3. You&#039;re done. When a new user attempts to register, he/she will need to identify<br />
   the captcha image to proceed. One last thing: you&#039;ll need to delete the<br />
   captcha*.png files from the temporary file directory from time to time.<br />
   Images get deleted for you when people correctly identify captchas, but they<br />
   stay on the server when they&#039;re misidentified. You could either do this manually<br />
   or set up a cron job to do it automatically.]]></description>
            <dc:creator>arlo</dc:creator>
            <category>5.1 Phorum Modules / Add-Ons</category>
            <pubDate>Wed, 01 Dec 2004 23:43:21 -0500</pubDate>
        </item>
    </channel>
</rss>
