Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Daniel15 on February 11, 2006, 03:57:53 PM

Title: CAPTCHA (Code Verification)
Post by: Daniel15 on February 11, 2006, 03:57:53 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=277)

This MOD enables CAPTCHA-based code verification for SMF. Basically, this means that when a guest tries to register or sign-up, they need to enter in a code displayed in an image. This prevents bots from signing up, and also prevents bots posting in topics (if you have guest posting enabled).

Screenshots: (click to see a larger version)

Forum Registration page:
(http://img142.imageshack.us/img142/9320/registration3fd.th.gif) (http://img142.imageshack.us/my.php?image=registration3fd.gif)

Replying to a post as a guest:
(http://img152.imageshack.us/img152/7839/makepost7gc.th.gif) (http://img152.imageshack.us/my.php?image=makepost7gc.gif)


Configuration screen:
(http://img156.imageshack.us/img156/5499/configcaptcha0ua.th.gif) (http://img156.imageshack.us/my.php?image=configcaptcha0ua.gif)

Please tell me what you think. As this is only a beta version (it's the first release), there may still be bugs in it. Please report all bugs, so I can improve it.

Version: 0.1 (Build 1)
(c) 2006 DanSoft Australia: http://www.dansoftaustralia.net/
Tested on SMF 1.0.5, 1.0.6 and 1.1 RC2

Based on HN Captcha (c) 2004 Horst Nogajski (http://hn273.users.phpclasses.org/browse/package/1569.html)
Title: Re: CAPTCHA (Code Verification)
Post by: Bigguy on February 11, 2006, 07:12:51 PM
When I try to install this it says package is corrupt ??? I am using smf 1.1 RC2. Is this package not for that version ??? it says it is.
Title: Re: CAPTCHA (Code Verification)
Post by: Daniel15 on February 11, 2006, 07:16:19 PM
Quote from: Bigguy on February 11, 2006, 07:12:51 PM
When I try to install this it says package is corrupt ??? I am using smf 1.1 RC2. Is this package not for that version ??? it says it is.
Weird... It should work fine...


EDIT: Something weird is happening: If you download it via the SMF admin panel, it doesn't download properly (a bug in it, maybe?). If you download it via my site (http://www.dansoftaustralia.net/ ) or via the SMF MOD page (http://mods.simplemachines.org/index.php?mod=277 ), and then install it, it should work fine.
Title: Re: CAPTCHA (Code Verification)
Post by: Bigguy on February 11, 2006, 07:18:51 PM
I will try once more to upload it.
Title: Re: CAPTCHA (Code Verification)
Post by: Bigguy on February 11, 2006, 07:22:53 PM
It wont upload through the package manager but if you upload manually it does. Nice mod works good so far.
Title: Re: CAPTCHA (Code Verification)
Post by: Daniel15 on February 11, 2006, 07:33:05 PM
Quote from: Bigguy on February 11, 2006, 07:22:53 PM
It wont upload through the package manager but if you upload manually it does. Nice mod works good so far.
Glad to hear you got it working.

That appears to be a bug with either SMF, or the SMF website. Bug reported (http://www.simplemachines.org/community/index.php?topic=70851.msg482846#msg482846) :D
Title: Re: CAPTCHA (Code Verification)
Post by: Bigguy on February 11, 2006, 07:34:31 PM
Also I have an empty field in the admin panel above "Number of characters to use for code" Theres nothing beside it at all to tell me what its for.

(http://24.235.38.31/upload/files/1/field.jpg)
Title: Re: CAPTCHA (Code Verification)
Post by: Daniel15 on February 11, 2006, 11:04:38 PM
Quote from: Bigguy on February 11, 2006, 07:34:31 PM
Also I have an empty field in the admin panel above "Number of characters to use for code" Theres nothing beside it at all to tell me what its for.

(http://24.235.38.31/upload/files/1/field.jpg)
That was a slight error with the CAPTCHA MOD on SMF 1.1 RC2. It's fixed now, I just uploaded a fixed package.
Title: Re: CAPTCHA (Code Verification)
Post by: houston on February 11, 2006, 11:27:28 PM
Thank you. I was surprised that SMF did not come with this option to begin with.
Title: Re: CAPTCHA (Code Verification)
Post by: Bigguy on February 12, 2006, 12:40:52 AM
Should I use the new one ??? This one is not causing any errors.

Quote from: daniel15 on February 11, 2006, 11:04:38 PM
Quote from: Bigguy on February 11, 2006, 07:34:31 PM
Also I have an empty field in the admin panel above "Number of characters to use for code" Theres nothing beside it at all to tell me what its for.

(http://24.235.38.31/upload/files/1/field.jpg)
That was a slight error with the CAPTCHA MOD on SMF 1.1 RC2. It's fixed now, I just uploaded a fixed package.
Title: Re: CAPTCHA (Code Verification)
Post by: Daniel15 on February 12, 2006, 01:19:30 AM
Quote from: Bigguy on February 12, 2006, 12:40:52 AM
Should I use the new one ??? This one is not causing any errors.

Quote from: daniel15 on February 11, 2006, 11:04:38 PM
Quote from: Bigguy on February 11, 2006, 07:34:31 PM
Also I have an empty field in the admin panel above "Number of characters to use for code" Theres nothing beside it at all to tell me what its for.

(http://24.235.38.31/upload/files/1/field.jpg)
That was a slight error with the CAPTCHA MOD on SMF 1.1 RC2. It's fixed now, I just uploaded a fixed package.

It doesn't really matter. The box will do no harm.
Title: Re: CAPTCHA (Code Verification)
Post by: Bigguy on February 12, 2006, 01:21:18 AM
k, cool. This is a very nice mod. Thanks for this. :)
Title: Re: CAPTCHA (Code Verification)
Post by: Teknomancer on February 12, 2006, 06:33:02 AM
This mod works wonderfully well ... I'm using SMF 1.1 RC2 absolutely no problems. Works like a charm.

Ofcourse, I haven't tried actually registering an account but the display part the various options etc work fine.

Good Job.
Title: Re: CAPTCHA (Code Verification)
Post by: Prasad007 on February 12, 2006, 08:22:01 AM
It installed cleanly.
But THIS MOD MAKES FORUM REGISTRATION MALFUNCTION. THE REGISTRATION PAGE GOES BLANK.
so i uninstalled it and deleted it.
really hope it worked tho...  ::)
Title: Re: CAPTCHA (Code Verification)
Post by: Bigguy on February 12, 2006, 12:53:07 PM
I used a test account and registered and it works great. I also have a "Guest posting" forum and it works great there to for non registered ppl.

Quote from: Teknomancer on February 12, 2006, 06:33:02 AM
This mod works wonderfully well ... I'm using SMF 1.1 RC2 absolutely no problems. Works like a charm.

Ofcourse, I haven't tried actually registering an account but the display part the various options etc work fine.

Good Job.

Title: Re: CAPTCHA (Code Verification)
Post by: Harzem on February 13, 2006, 02:59:59 PM
The mod seems to function properly for now.

HOWEVER!!! The colors are not secure. I myself work on captchas, here is my example work: www.harzem.com/captcha.php

The color range for main chars are in 0...127 and the colors for grid or noise chars are in 160...224. There is no overlap, so a computer program can very very easily differenciate it.

if(color(x,y)<=127)
      $mainchar = true;

if(color(x,y)>=160)
      $mainchar = false;

that's it. I'm waiting from the author to make it 0...160 for chars and 100...224 for noise. I did and it seems fine for me.
Title: Re: CAPTCHA (Code Verification)
Post by: Daniel15 on February 15, 2006, 12:09:48 AM
Quote from: HarzeM on February 13, 2006, 02:59:59 PM
The mod seems to function properly for now.

HOWEVER!!! The colors are not secure. I myself work on captchas, here is my example work: www.harzem.com/captcha.php

The color range for main chars are in 0...127 and the colors for grid or noise chars are in 160...224. There is no overlap, so a computer program can very very easily differenciate it.
[.......]
that's it. I'm waiting from the author to make it 0...160 for chars and 100...224 for noise. I did and it seems fine for me.
Well, the CAPTCHA algorithm is made by someone else... It's called 'HN CAPTCHA', available at http://hn273.users.phpclasses.org/browse/package/1569.html . It was the best one I could find, basically all other CAPTCHA scripts are just writing letters onto a blank canvas, or onto a simple grid. The idea of having 'noise' is excellent.

Your CAPTCHA looks great though! Only problem is the relatively large page size...

QuoteIt installed cleanly.
But THIS MOD MAKES FORUM REGISTRATION MALFUNCTION. THE REGISTRATION PAGE GOES BLANK.
so i uninstalled it and deleted it.
really hope it worked tho...
I'll try to see what the problem is... Does your server have the GD Library and FreeType installed?
Title: Re: CAPTCHA (Code Verification)
Post by: Harzem on February 15, 2006, 09:33:31 AM
Quote from: daniel15 on February 15, 2006, 12:09:48 AM
Your CAPTCHA looks great though! Only problem is the relatively large page size...

It doesn't use GD or images, so it is large, around 60 k. But this is because my way of producing, it is html code. If you know how to convert it to GD images, I will be more than happy to do this with you ;)

BTW, I suggest you to change the colors as I said before. 0..160 for chars and 100..224 for noise.
Title: Re: CAPTCHA (Code Verification)
Post by: Razerst on February 16, 2006, 02:16:53 AM
it works fine for me. But, can I change it to all numbers? because the words are hard to look well
Title: Re: CAPTCHA (Code Verification)
Post by: H on February 16, 2006, 01:04:08 PM
Nice. This is the best mod I have ever seen for SMF. Nice integration as well.
Title: Re: CAPTCHA (Code Verification)
Post by: ian on February 16, 2006, 07:28:31 PM
I agree, best mod I've ever used! It's also the first I've ever used ;D
Title: Re: CAPTCHA (Code Verification)
Post by: Thantos on February 16, 2006, 09:16:13 PM
Just passing this on:  You need to edit your uninstall so that any files you put into various directories are removed.
Title: Why cant i install this with pak.manager? CAPTCHA (Code Verification) 0.1
Post by: LaBamba on February 17, 2006, 08:03:27 AM
It says corrupted or not fit for this SMF version? I'm using latest version rc2  :o
Title: Re: CAPTCHA (Code Verification)
Post by: LaBamba on February 17, 2006, 08:32:53 AM
Where is the language file for translation ?? Cant find it!
Title: Re: CAPTCHA (Code Verification)
Post by: DiRN on February 18, 2006, 01:56:50 AM
I downloaded and installed this mod tonight but it doesn't seem to work correctly for me.  In the admin I see none of the text describing the values (e.g., Number of characters to use for code, Minimum Font Size), nor do I see the changes on the registration page.

Is there something I need to do differently, either in the installation or the configuration, to get this to work correctly?  I'm using 1.1 RC2.

Thanks in advance.
Title: Re: CAPTCHA (Code Verification)
Post by: LaBamba on February 18, 2006, 05:11:31 AM
I installed it using packet manager, and all worked well. I'm using v.1.1 rc2. I'm not sure but if you use other themes than core theme you may not get the registering screen visible at all, i did not see it in other themes yet. I have asked if someone could help me with the problem.

Try core theme and check if it is there available.

Go here to this thread, maybe there is something for you?
http://www.simplemachines.org/community/index.php?topic=71780.0
Title: Re: CAPTCHA (Code Verification)
Post by: DiRN on February 18, 2006, 12:07:07 PM
Thanks for the link.  While it didn't directly solve my problem it got me thinking.  When I installed the mod (by uploading it through Package Manager) the captcha directory was never created.  I'm guessing this is the cause of my problem since the strings are contained in the captcha/hn_captcha.class.php file (as mentioned in the thread you linked me to).  I tried manually uploading this folder after the installation but that doesn't seem to make a difference.  Any thoughts?

And I've tried this with Core, Classic, and Babylon with identical results.
Title: Re: CAPTCHA (Code Verification)
Post by: MJJOS on February 18, 2006, 07:55:15 PM
Yes I installed this mod today, and it was fine but the registration page on all themes, even the main default core theme, shows up blank. The current theme I am using, Epsilon by bloc, configured for TinyPortal, does not use its own registration.template.php file, or its own post.template.php file.

The text shows up for me next to the fields in the configuration panel for it if it means anything.

Thanks!

MJJOS.
Title: Re: CAPTCHA (Code Verification)
Post by: MJJOS on February 19, 2006, 06:23:14 AM
Hello again,

Just to say that my server has both GD Library and FreeType installed, I know you asked this for the last person to report this problem.

Hope this helps.

MJJOS.
Title: Re: CAPTCHA (Code Verification)
Post by: LaBamba on February 19, 2006, 10:40:16 AM
My installation worked fine with package manager, not the link but i downloaded it manually and then installed with pac.manager, then added needed texts to needed file for another theme. Only the ready SMF link didn't worked in pack manager, therefore downloaded it to my computer first.
Title: Re: CAPTCHA (Code Verification)
Post by: DiRN on February 19, 2006, 10:46:36 AM
That's how I installed it.  I downloaded the ZIP file (which is now sitting on my PC's desktop) and used Package Manager to upload it to my server.  All of the tests are successful and the installation appears to work.  When I ls the root directory of SMF, however, there is no captcha folder and thus any of the SMF pages that would grab values from a file in the captcha folder don't include them.
Title: Re: CAPTCHA (Code Verification)
Post by: LaBamba on February 19, 2006, 10:49:59 AM
Try to uninstall it and then reinstall it  ::)

I hade the locator mod today, it didn't installed first time, but second time it worked with pack.manager.  ???

Do you use 1.1 rc2 ?
Title: Re: CAPTCHA (Code Verification)
Post by: DiRN on February 19, 2006, 11:06:06 AM
Yes, I use 1.1 RC2.

I redownloaded the ZIP file.  Uninstalled and deleted the package through Package Manager, reuploaded the package, and installed it again.  I even created the captcha folder myself with the files in it.  The results are the same as before.

I'm using LAMP if that helps with any ideas.
Title: Re: CAPTCHA (Code Verification)
Post by: LaBamba on February 19, 2006, 11:25:25 AM
I'm no experienced my self neither, try to ask someone in forum? There was an thread by the author somewhere, maybe there is something you could find out. At last there was something about installation problemss and chmod of files? Search with locationmod or similar. Hope you get it installed, seems to be useful mod.  ;D

Quote from: DiRN on February 19, 2006, 11:06:06 AM
Yes, I use 1.1 RC2.

I redownloaded the ZIP file.  Uninstalled and deleted the package through Package Manager, reuploaded the package, and installed it again.  I even created the captcha folder myself with the files in it.  The results are the same as before.

I'm using LAMP if that helps with any ideas.
Title: Re: CAPTCHA (Code Verification)
Post by: winrules on February 20, 2006, 08:09:29 PM
Great mod, works fine for me on rc2 :)
Title: Re: CAPTCHA (Code Verification)
Post by: Daniel15 on February 24, 2006, 07:49:10 PM
Sorry everyone, I haven't had time to update this recently (due to school and stuff). If you  need support, here's how to get it:

1) Support ticket system: My support ticket system is at http://support.dansoftaustralia.net/ . Use it for all support-related questions
2) Bug tracker: If you find a bug, please submit it at http://bugs.dansoftaustralia.net/ . The bug tracker is also used for feature requests.
3) Forums: My forums are available at http://www.daniel15.be/ . You may use these forums for general chat regarding the CAPTCHA MOD
Title: Re: CAPTCHA (Code Verification)
Post by: ComputerLady on March 03, 2006, 05:26:22 PM
I just submitted a support ticket, as when I installed it attempts to register would produce a CAPTCHA garbage collection error. Needless to say, the attempt to register would fail. Running SMF 1.1 RC2 with my own theme installed. Possible conflict with theme design?

Really like the idea of this mod, so am hoping for a fast resolve.
Title: Re: CAPTCHA (Code Verification)
Post by: ComputerLady on March 03, 2006, 05:31:05 PM
Footnote to above... Switched to new default theme, and re-installed MOD again. Now the registration screen is showing up, and no more 'garbage collection' errors. Must be a flaw in my theme design then. Great, have to re-do that from scratch again. Oh well, got the MOD working at least!
Title: Re: CAPTCHA (Code Verification)
Post by: ディン1031 on March 12, 2006, 07:25:10 AM
For German user here is the German Translation:

Please install it after a success full installed Version / Erst nach einer erfogreichen installation benutzen.


<edit file>
$languagedir/ModSettings.german.php
</edit file>

<search for>
?>
</search for>

<add before>
//General Strings
$txt['captchaEnter'] = "Bitte den gezeigten Code eingeben";
$txt['captchaEnterShort'] = "Code eingabe";
$txt['captchaWrong'] = "Dein Eingegebener Code war Falsch! Klicke auf Zur&uuml;ck, und gib den Code erneut ein (Bei Problemem Aktualisiere diese Regestrierseite)!";
$txt['captchaMaxTries'] = "Leider hast du zuviele male den Code Falsch eingegeben! Die Registration kann nicht fortgesezt werden.";

//When posting a reply to a topic
$txt['error_captcha_wrong'] = "Der Code wurde falsch eingegben!";

//Administration strings
$txt['captchaHeading'] = "CAPTCHA Einstellungen";
$txt['captchaChars'] = "Wieviel Buchstaben werden für den Code ben&ouml;tigt";
$txt['captchaMinSize'] = "Kleinste Schriftgr&ouml;&szlig;e";
$txt['captchaMaxSize'] = "Gr&ouml;ste Schriftgr&ouml;&szlig;e";
$txt['captchaMaxRotate'] = "Maximaler Winkel der Buchstaben verdrehung";
$txt['captchaNoise'] = "Verzehrung einschalten <div class='smalltext'>eingeschalten = Buchstaben werden 'verzehrt' (recommended), ausgeschalten = Benutzt Raster</div>";
$txt['captchaWebSafeColours'] = "Benutzte Web sichere Farben";
$txt['captchaBadGuysURL'] = "'Böse Jungs' URL <div class='smalltext'>(wenn jemand CAPTCHA zu umgehen versucht wird er hier her geleitet)</div>";
//End CAPTCHA Mod
</add before>

<edit file>
$boardir/captcha/captcha.php
</edit file>

<search for>
'lang'           => 'en',    // Only 'en' supported in SMF CAPTCHA
</serach for>

<replace>
'lang'           => 'de',    // Only 'en' supported in SMF CAPTCHA... okay not any more :P
</replace>

<edit file>
$boardir/captcha/hn_captcha.class.php
</edit file>

<search for>
$this->messages = array(
'en'=>array(
'msg1'=>'You must read and type the <b>'.$this->chars.' chars</b> within <b>0..9</b> and <b>A..F</b>',
'msg2'=>'Oh no, I cannot read this. Please, generate a ',
'buttontext'=>'submit',
'refreshbuttontext'=>'new ID'
)
);
</search for>

<replace>
$this->messages = array(
'en'=>array(
'msg1'=>'You must read and type the <b>'.$this->chars.' chars</b> within <b>0..9</b> and <b>A..F</b>',
'msg2'=>'Oh no, I cannot read this. Please, generate a ',
'buttontext'=>'submit',
'refreshbuttontext'=>'new ID'
),
'de'=>array(
'msg1'=>'Lese und Schreibe diese <b>'.$this->chars.' Buchstaben</b> von <b>0..9</b> und <b>A..F</b>',
'msg2'=>'Oh nein, ich kann dieses nicht Lesen bitte generie eine ',
'buttontext'=>'Best&auml;tigen',
'refreshbuttontext'=>'Neue ID'
)
);
</replace>

<search for>
if($this->lang == "en" && $this->current_try > 2 && $this->refreshlink) return 'No valid entry. Please try again:<br>Tipp: If you cannot identify the chars, you can generate a new image!';
if($this->lang == "en" && $this->current_try >= 2) return 'No valid entry. Please try again:<br>&nbsp;';
</search for>

<add after>
if($this->lang == "de" && $this->current_try > 2 && $this->refreshlink) return 'Kein g&uuml:ltige eingabe. Bitte noch einmal Versuchen. <br />Tip: Wenn du die Buchstaben nicht lesen kannst, dann gernerie einen neues Bild erzeugen!';
if($this->lang == "de" && $this->current_try >= 2) return 'Keine g&uuml;ltige eingabe. Bitte Versuch es noch einmal:<br />&nbsp;';
</add after>


Okay this are the Changes for a complete german Version. / Dies sind die Änderungen für einen komplett deutsch Version.

Bye
DIN1031
Title: Re: CAPTCHA (Code Verification)
Post by: LHW on March 12, 2006, 09:52:33 PM
This mod is really, really cool!  Thanks for taking the time to develop it.  :)
Title: Re: CAPTCHA (Code Verification)
Post by: LazyBum on March 12, 2006, 10:36:27 PM
i love this script but i can't get the images to show up, iono why. Theres no pic showing up on that box...any suggestions?
Title: Re: CAPTCHA (Code Verification)
Post by: ディン1031 on March 13, 2006, 07:42:12 AM
did you chmod the captcha/temp dir to 777? Because the mod save there temporary the pictures, and also the the count of the mod uses ;).

BYe
DIN1031
Title: Re: CAPTCHA (Code Verification)
Post by: LazyBum on March 13, 2006, 07:55:02 PM
thanks for taking your time to reply and yes i chmoded everything to 777, but i still can't get it to work. Is it because im using a subdomain as the live url?  ::)
Title: Re: CAPTCHA (Code Verification)
Post by: Daniel15 on March 17, 2006, 07:33:38 AM
Does your host have the GD library installed? If not, it won't work. Just ask your web host if they have the GD library installed.
Title: Re: CAPTCHA (Code Verification)
Post by: SammySnake on April 20, 2006, 02:41:49 AM
I have tried to install this MOD and it won't install.   :(

When a new user tries to register they get the registration screen and 12 CAPTCHA images. They are 12 of the SAME images. What is going on with this mod. I'd post a screen shot but I see no option for file attachments.  :(

Anyone have any idea?

Now I'm not getting the above mentiond problem, now I get the following error message from the package manager screen:

Fatal error: Cannot redeclare show_captcha() (previously declared in /home/********/public_html/********/captcha/captcha.php:68) in /home/********/public_html/********/captcha/captcha.php on line 67

How do I delete this and start over again?  :'(
Title: Re: CAPTCHA (Code Verification)
Post by: federa on April 20, 2006, 10:47:42 AM

I'm not able to have in my login the gif with the number or the letters.
I get a gif with only some cube ........

The gd library is ok ........

GD Support  enabled 
GD Version  bundled (2.0 compatible) 
FreeType Support  enabled 
FreeType Linkage  with freetype 
JPG Support  enabled 
PNG Support  enabled 
WBMP Support  enabled 


????

Bye  & thanks again
Title: Re: CAPTCHA (Code Verification)
Post by: Daniel15 on April 21, 2006, 04:27:35 AM
QuoteWhen a new user tries to register they get the registration screen and 12 CAPTCHA images. They are 12 of the SAME images.
It sounds like the MOD was installed 12 times, for some strange reason...

QuoteI'd post a screen shot but I see no option for file attachments.
You may post screenshots at ImageShack (http://www.imageshack.ws/), and paste the code here ;)

QuoteHow do I delete this and start over again?
If the uninstall button in the Package Manager doesn't work, you'll need to uninstall manually. This involves opening the:
files, and removing all the CAPTCHA code. Then, reinstall, and it should be working ;)

QuoteI'm not able to have in my login the gif with the number or the letters.
I get a gif with only some cube ........
Sorry, I'm not sure why that happens, it seems to happen for some people but I can't replicate it. This MOD is still in beta, which means that there might be bugs in it (as you've probably noticed). I'll try to find out why it doesn't work for you (I'm not really sure, though)
Title: Re: CAPTCHA (Code Verification)
Post by: ivo2296 on April 21, 2006, 03:53:58 PM
I just installed it on smf 1.0.7 i did some tests and everything is OK. No error logs so far.

Thank you for contributing this mod!
Title: Re: CAPTCHA (Code Verification)
Post by: Martje on April 23, 2006, 12:25:54 PM
Works like a charm.
uploaded it manually to the packet manager of SMF1.07 had no problems

I am really glad with this mod. I was getting quiet annoyed with the spambots,
Thank you very Much :D.
Title: Re: CAPTCHA (Code Verification)
Post by: Martje on April 23, 2006, 04:51:31 PM
Just installed the shoutbox (Grudge's one)
http://www.simplemachines.org/community/index.php?topic=8415
and got instantly spammed by a bot,

I wondered if it was possible to add or implement the CAPTCHA  code to another mod.

I tried to do something but I couldnot figure this out. (got parse errrors and did not now where to look)
is it easy or at least possible to add the CAPTCHA  to other files?


Title: Re: CAPTCHA (Code Verification)
Post by: Martje on April 25, 2006, 05:55:45 AM
Hi Daniel, I possebly found a bug.

All new posting from members or guests works great , but as soon as you want to modify a message as a member(or even as an admin) it says:

The following error or errors occurred while posting this message:
The code was entered incorrectly.

De code box was not visable so there was no way to to fill in the code.

It does not apply to your own messages but it occures when you want to moderate a single post from a guest.
moderating another member seems to be no problem  ;)

could you check that on your own forum with guest posts? ( I am using SMF1.07)

Thanks
Maime
Title: Re: CAPTCHA (Code Verification)
Post by: Daniel15 on April 28, 2006, 06:55:17 AM
maime,
I saw that you reported the bug here: http://bugs.dansoftaustralia.net/view.php?id=51 ... Yes, I can indeed replicate the bug, and I'll try and fix it soon.

QuoteJust installed the shoutbox (Grudge's one)
http://www.simplemachines.org/community/index.php?topic=8415
and got instantly spammed by a bot,

I wondered if it was possible to add or implement the CAPTCHA  code to another mod.
Well, I didn't actually write the CAPTCHA code, I just made a MOD which uses the CAPTCHA code. The actual code is HN CAPTCHA, by Horst Nogajski (http://www.phpclasses.org/browse/package/1569.html). Maybe you could ask Grudge to implement a CAPTCHA? He'd be able to borrow some of my code ;)
Title: Re: CAPTCHA (Code Verification)
Post by: NoxX on May 01, 2006, 12:43:57 PM
hi,

dont slap me please, but i read the whole forum/posts and dont find an answer to my question:

where is the admin control link for the smf captcha mod ??

i installed the mod with the package installer and everything works fine, also the registration. there i see the
picture with the code and new users have to enter the code for registration.

but i dont see the configuration link in the admin control panel :(
i use the smf 1.1rc2 with english language and the core theme, has someone a idea what ive to do?
as i installed the "googlebot mod" there was directly the "googlebot & spiders" link, what can i do? :(
Title: Re: CAPTCHA (Code Verification)
Post by: SammySnake on May 02, 2006, 01:08:59 AM
NoxX,

You can find the CAPTCHA info under features and options on the basic tab at the bottom of the page.
Title: Re: CAPTCHA (Code Verification)
Post by: SammySnake on May 02, 2006, 01:15:58 AM
Quote from: daniel15 on April 21, 2006, 04:27:35 AM
QuoteWhen a new user tries to register they get the registration screen and 12 CAPTCHA images. They are 12 of the SAME images.
It sounds like the MOD was installed 12 times, for some strange reason...

Daniel, I solved my problem by moving onto  SMF 1.1rc2.

As for the mod installation on the older version of SMF... I know I didn't install the mod twelve times since it worked fine for 2 weeks or so and then it started acting up that way. But... it's a moot point since it is working fine in the newer version of SMF that I'm running.

Thanks for your reply.   ;D

Sammy
Title: Re: CAPTCHA (Code Verification)
Post by: NoxX on May 02, 2006, 02:33:04 PM
Quote from: SammySnake on May 02, 2006, 01:08:59 AM
NoxX,

You can find the CAPTCHA info under features and options on the basic tab at the bottom of the page.

OMG  :o

iam so blind  :(
thx a lot, i really didnt see it.

...i will go and dig a very big hole now for me  ;D
Title: Re: CAPTCHA (Code Verification)
Post by: bytuman on May 18, 2006, 10:38:18 AM
this class is not support gd 2.x (or not stable)

"There is no GD-Library-Support enabled. The Captcha-Class cannot be used!" its very annoying.
i am system admin of my serverS and all gave me same problem.

all has gd2 and all *nix.

i will make new code verification modification.

ty deniel15 for making this code.
Title: Re: CAPTCHA (Code Verification)
Post by: hillrunr on May 23, 2006, 03:48:22 PM
Sorry, I tried to use your support tool but it errored out on me, I think for some reason being blocked by my employer.

I installed this mod yesterday evening and it works perfectly for registrations, which is where my biggest spam problem has been. However, when posting as a guest, not a single thing happens if I try to post without even entering anything for the captcha. My message is posted with no errors occurring.

I originally downloaded this mod off the SMF website. When I saw it wasn't working for posting, I noticed you had an update on your website so I upgraded with that update. When it still didn't work, I tried uninstalling with hopes of doing a clean install of the newer version and got the following error:

Execute Modification ./Themes/default/languages/Modifications.english.php Test failed

Any idea what I'm doing wrong? It's as if everything is properly in place for the registration portion but no validation is happening for guest posting.

Forums URL (if you try a test guest post, I request that you do so under the General Discussion forum in the Non-Running Forums section): http://www.hillrunner.com/forums

Thanks for any help you can offer.
Title: WATCH OUT!!
Post by: sb56637 on May 26, 2006, 12:15:50 PM
Be careful with this mod!  It was working for me for  awhile, but then I noticed I wasn't getting any new user registrations.  I went to register, the registration screen wouldn't even load, it gave me an error "Error in CAPTCHA garbage collection".  I hope it's just a problem with my webserver, but this is a very serious problem, in my opinion.
Title: Re: CAPTCHA (Code Verification)
Post by: Harzem on May 26, 2006, 02:28:17 PM
I'm using this mod since it was released, and I still have new registrations. The error may be because of your server. Try changing captcha temp folder permissions, for example.
Title: Re: CAPTCHA (Code Verification)
Post by: hillrunr on May 31, 2006, 09:48:04 PM
A little more about the issue I'm having.

I've been looking at the code modifications for the CAPTCHA mod to work. I found the code to verify the captcha entry in the registration and assured that the corresponding code for guest posts (below, copy/pasted from the Sources/Post.php file) is in place. Does anyone have any thoughts on why it seems as though there is no verification of what the user enters during guest posting? I thought the code below would do so but it doesn't seem to be doing so.

Thanks again

//Begin CAPTCHA Mod 0.1.1
//Check if the CAPTCHA was entered properly...
global $boarddir;
require_once("$boarddir/captcha/captcha.php");

if ($user_info['is_guest']) {
switch($context['captchaObj']->validate_submit()) {
//Entered incorrectly!
case 2:
$post_errors[] = 'captcha_wrong';
case 3:
$post_errors[] = 'captcha_wrong';
}
}

//End CAPTCHA Mod
Title: Re: CAPTCHA (Code Verification)
Post by: Martje on June 03, 2006, 05:34:43 PM
I have the Captcha code installed and now if you register or make a post as a guest you have to fill in the code but ......... I still got spam!, and it looks like  a machine is spamming , anyone here ever encounteredthe same thing? if not , it must be a manual spammer :( but that would be wierd .....well you never know what people what people do. :-\
Title: Re: CAPTCHA (Code Verification)
Post by: Daniel15 on June 04, 2006, 02:02:40 AM
Quotebut ......... I still got spam!
Yeah, I got some spam in Chinese. But, it appears to be an actual manual spammer. They appeared to browse around my site (a flash site), view a few topics, and reply to only two topics.

Also, I'd suggest to clear out your error logs once in a while. I just checked mine, and I have 20 pages of "Sorry, you didn't enter the correct code. You must go back, refresh the page, and enter the new code!" from bots trying to use the Register page :P
Title: Re: CAPTCHA (Code Verification)
Post by: thebeing on June 05, 2006, 11:41:17 AM
i downloaded the package (the zip file) and when i try to install it... it says :
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

although i've chmoded'em to 777... any suggestions, please?

must i unzip the archive, and, if so, where?

thnx a lot.
Title: Re: CAPTCHA (Code Verification)
Post by: stevross on June 06, 2006, 08:16:30 AM
I have uploaded the archive in the PACKAGES folder.
After installation if I try to make a new signup, server return registration like a blank page.
I'm using 1.1RC2
Any idea?

look here (http://stevross.netsons.org/forum/index.php?action=register)
Title: Re: CAPTCHA (Code Verification)
Post by: Harzem on June 06, 2006, 08:26:45 AM
Tell your host to install "GD library" and "FreeType support", which will absolutely fix your problem.

If you have WebHostManager root access, you can "Build Apache" with these options enabled.
Title: Re: CAPTCHA (Code Verification)
Post by: stevross on June 06, 2006, 11:19:12 AM
Quote from: HarzeM on June 06, 2006, 08:26:45 AM
Tell your host to install "GD library" and "FreeType support", which will absolutely fix your problem.

If you have WebHostManager root access, you can "Build Apache" with these options enabled.

now it's ok?

(http://img331.imageshack.us/img331/6936/gd5hp.th.gif) (http://img331.imageshack.us/my.php?image=gd5hp.gif)

There's another problem: in the signup page, I don't see no one image. Look

(http://img331.imageshack.us/img331/4595/code7rs.th.gif) (http://img331.imageshack.us/my.php?image=code7rs.gif)
Title: Re: CAPTCHA (Code Verification)
Post by: tarkhorani on June 10, 2006, 07:30:27 AM
i added a quick register form to a test forum you can see it on top of this forum:

http://www.4oosh.com/sm3/

can you give me a text so I add to it and integrate with code verification on quick register form?

this is codes for this quick register:

if( $context['user']['is_guest'] )
{
echo '<br><strong>Quick Register:</strong><br />
<form action="', $scripturl, '?action=register2" method="post" style="margin: 3px 1px 1px 0; text-align:left;">
Username: <input type="text" name="user" size="10" /> Password: <input type="password" name="passwrd1" size="10" /> Confirm Password: <input type="password" name="passwrd2" size="10" /> Email: <input name="email" size="10" type="text" /><input name="regagree" type="hidden" value="checked" />
<input type="submit" value="Register" />
';
}



Quick Register:

Username:  Password:  Confirm Password:  Email:   
Title: Re: CAPTCHA (Code Verification)
Post by: floris on June 11, 2006, 09:21:51 PM
Quote from: hillrunr on May 23, 2006, 03:48:22 PM
However, when posting as a guest, not a single thing happens if I try to post without even entering anything for the captcha. My message is posted with no errors occurring.

I have the same problem.
I've tried to find why it doesn't work, but I couldn't find it either...
Title: Re: CAPTCHA (Code Verification)
Post by: 7wheels on June 12, 2006, 08:05:56 PM
Hi, I'm a real newbie to SMF and can't figure how to 'post'. so I'm using 'reply' -  If I'm making big mistake, I'm really sorry.

I just installed Captcha, seems it's working fine but I want to change the line shown at registration, under the generated image.

It goes
'You must read and type...'

I figured the txt is in modification.english.php file and changed that part as I wanted (instead of 'you must' - i want to
say 'please read'...)...

but that change didn't get reflected. I still have same 'You must read and type' - I downloaded assumingly all relevant folders and using search function but can't find where else ' txt [CaptchaReadAndType] might be stored, and can't figure the explanation why my alteration gets override by original txt.
Title: Re: CAPTCHA (Code Verification)
Post by: TamOShanter on June 15, 2006, 03:04:03 PM
Hello, thanks for the mod.

Will you please list here the directories and files for which the mod must have write access to install?

I am installing the mod via the package manager on version 1.0.7. The first 7 steps are ok, but step 8 (8. Execute Code installScript.php) does not seem to work.

At the bottom of the screen, I am asked for a ftp login and password. As I don't have ftp installed on the server, this won't work. So, a listing of the files and directories that need write access would be good, so I can manually grant write access.

Thanks,

Kevin / TamOShanter
Title: Re: CAPTCHA (Code Verification)
Post by: taucher on June 27, 2006, 02:47:57 PM
I´ve also a problem installing Captcha
I use SMF 1.1. RC2 - when i want to install the modification i have to enter the ftp-login.
SMF ist installad in the root folder

When i enter the ftp-login i geht the following error:

501 Invalid number of arguments.

Somebody has a solution?
Title: Re: CAPTCHA (Code Verification)
Post by: Gobo on June 28, 2006, 12:20:40 PM
is this mod suitable for use with SMF 1.1rc2 + TP 0.86 ?

thanks
Title: Re: CAPTCHA (Code Verification)
Post by: Harzem on June 28, 2006, 12:21:30 PM
Quote from: akulion on June 28, 2006, 12:20:40 PM
is this mod suitable for use with SMF 1.1rc2 + TP 0.86 ?

thanks

Exactly.
Title: Re: CAPTCHA (Code Verification)
Post by: Gobo on June 28, 2006, 12:35:56 PM
Quote from: HarzeM on June 28, 2006, 12:21:30 PM
Quote from: akulion on June 28, 2006, 12:20:40 PM
is this mod suitable for use with SMF 1.1rc2 + TP 0.86 ?

thanks

Exactly.

hey bro :D whats up :D

exactly safe to use or unsafe? :D
Title: Re: CAPTCHA (Code Verification)
Post by: Harzem on June 28, 2006, 12:41:34 PM
Fine here ;) Hope so you are :)

The mod seems to be safe, but actually I don't like the way of background distortion. But it works fine. Don't forget to check the registration page after you install the mod. Because on some hosts, it may give you a blank screen due to misconfiguration.

If you ask me, I use (a modified version of) this mod on my sites ;)
Title: Re: CAPTCHA (Code Verification)
Post by: Gobo on June 30, 2006, 03:05:35 AM
nice to see u again :D

I think they should built this into SMF by default along with a reffer feild as well like they have in vB and IPB

Dont u think?
Title: Re: CAPTCHA (Code Verification)
Post by: Harzem on June 30, 2006, 05:12:23 AM
captcha will be a standard feature in the very next release. I have no idea about the referral field :)
Title: Re: CAPTCHA (Code Verification)
Post by: Gobo on June 30, 2006, 05:29:16 AM
Next release = 1.0 final yes?

Its good to know it will be there by default :)
Title: Re: CAPTCHA (Code Verification)
Post by: Daniel15 on June 30, 2006, 08:11:06 AM
Quotecaptcha will be a standard feature in the very next release
Really? That's quite nice to know :D The SMF implementation would proably be a lot better than mine (I didn't even design this MOD for public release, but people kept asking me about it :P)
Title: Re: CAPTCHA (Code Verification)
Post by: Kettu on July 07, 2006, 04:29:21 AM
Good morning.
Looks like I am the only one who has that problem. I installed the CAPTCHA Mod. But if I test the registration or a guest posting there is only an empty picture shown without any characters. I still have the default settings on, didn't change anything, web save colors etc. So there is no code to see. :(

The other thing is just an information. If you use space characters for a file name you don't have to wonder, if it doesn't work with the file manager. Space characters are imho a crime for work at the web. It is a typical windows accommodativeness, but only works THERE without problems. ;)

Edit July 8th
I have changed each setting, but nothing changes. Still the empty picture.
Title: Re: CAPTCHA (Code Verification)
Post by: schani on July 10, 2006, 10:09:52 AM
Hello, i like to install CAPTCHA for Spam Entries prevention. But after installing via the Packet Manager, ther is no MOD Configuration and also no GD Image with the verifacation Code on the new theme site.

I use SMF1.0.7 and have GD2 and IM installed (GD also works for a Typo3 installation and a image gallery on my Domain; PHP Safe_Mode = off).

I like to use CAPTCHA for a nonregistered Forum. But after installing CAPTCHA, i can not safe a new entry "Unable to safe Entry"

What can i check/do to run CAPTCHA ?

Thanks for help

Christian

PS: Is it possible that CAPTCHA is not compatible with german Language packet ?
Title: Re: CAPTCHA (Code Verification)
Post by: ディン1031 on July 11, 2006, 02:44:30 PM
Quote from: schani on July 10, 2006, 10:09:52 AM
Hello, i like to install CAPTCHA for Spam Entries prevention. But after installing via the Packet Manager, ther is no MOD Configuration and also no GD Image with the verifacation Code on the new theme site.

I use SMF1.0.7 and have GD2 and IM installed (GD also works for a Typo3 installation and a image gallery on my Domain; PHP Safe_Mode = off).

I like to use CAPTCHA for a nonregistered Forum. But after installing CAPTCHA, i can not safe a new entry "Unable to safe Entry"

What can i check/do to run CAPTCHA ?

Thanks for help

Christian

PS: Is it possible that CAPTCHA is not compatible with german Language packet ?
No normal not...

http://www.simplemachines.org/community/index.php?topic=70807.msg509532#msg509532 <- this is a way to make it german. ;D

Bye
DIN1031
Title: Re: CAPTCHA (Code Verification)
Post by: mokele on July 14, 2006, 02:57:40 PM
I've had problems after installing the mod and trying to regsiter it just shows a blank page. Runing SMF 1.07 and I've tried in on a Linux box and Mac OS X box and both display blank pages. Any ideas what's going on? I also tried it on a Linux box running PHP 5.05 an it had an error with can't duplicate object or class.

Scott
Title: Re: CAPTCHA (Code Verification)
Post by: Harzem on July 14, 2006, 03:10:16 PM
Your host should have GD and FreeType compiled in apache.
Title: Re: CAPTCHA (Code Verification)
Post by: mokele on July 14, 2006, 03:36:10 PM
With Apache? I thought gd and freetype was suppose to be compiled with PHP? I've got a version of PHP compiled with gd and freetype and still gets blank page.
Title: Re: CAPTCHA (Code Verification)
Post by: schani on July 14, 2006, 04:00:18 PM
Have you checked it with:

<? php_info(); ?>

Christian
Title: Re: CAPTCHA (Code Verification)
Post by: zlocka on July 28, 2006, 03:57:52 AM
Quote from: huwnet on July 27, 2006, 05:35:06 PM
Quote from: zlocka on July 27, 2006, 05:16:34 PM
how to fix that problem:
An ERROR has occured with the CAPTCHA garbage collection!
Please notify the webmaster.

Quote from: Aitsukai on June 12, 2006, 08:29:43 PM
You'll probably get a much better answer by asking in the mod thread (http://www.simplemachines.org/community/index.php?topic=70807.0).

help  ???
Title: Re: CAPTCHA (Code Verification)
Post by: Daniel15 on July 29, 2006, 03:22:14 AM
zlocka, try CHMODding the CAPTCHA directory to 0777, and see if that solves your problem
Title: Re: CAPTCHA (Code Verification)
Post by: bork on July 29, 2006, 02:12:19 PM
Quote from: daniel15 on July 29, 2006, 03:22:14 AM
zlocka, try CHMODding the CAPTCHA directory to 0777, and see if that solves your problem

I've just had the same error as zlocka.

I did a "chmod -R 777 captcha" and it solved it, though now the error has been replaced with:
"Unable to safe captcha-image."

edit:  "Unable to safe captcha-image." message was because I was running on an old copy of the database - oops!



Title: Re: CAPTCHA (Code Verification)
Post by: Dayu on July 31, 2006, 08:15:27 AM
I just transfered my forum today in a new server and found my CAPTCHA not working.
First I enabled the GD Library in my dedicated server, then another error appeared which was about garbage collection. What I did is uninstalled the CAPTCHA, delete the captcha folder and re-install captcha again. Now the pre-install warned me about test failure in ./Sources/ModSettings.php.

I opened the file and found the arrays of captcha still there. After creating a backup of the file and removed the array. I run the install ignoring the test failure and with all permissions set to 777, still captcha was nowhere to be found in ./Sources/ModSettings.php.

So I just restore the ModSettings.php backup and now it's working again.   ;)
Title: Re: CAPTCHA (Code Verification)
Post by: AliveToday on August 04, 2006, 06:56:42 PM
Quote from: Kettu on July 07, 2006, 04:29:21 AM
Good morning.
Looks like I am the only one who has that problem. I installed the CAPTCHA Mod. But if I test the registration or a guest posting there is only an empty picture shown without any characters. I still have the default settings on, didn't change anything, web save colors etc. So there is no code to see. :(

The other thing is just an information. If you use space characters for a file name you don't have to wonder, if it doesn't work with the file manager. Space characters are imho a crime for work at the web. It is a typical windows accommodativeness, but only works THERE without problems. ;)

Edit July 8th
I have changed each setting, but nothing changes. Still the empty picture.

this is the same exact problem I am having. Did we ever figure out a fix? is there any way to make this work? my users are pretty much demanding that I install this, we were hit by a gay porn spambot a couple days ago and i need to get this in place.
Title: Re: CAPTCHA (Code Verification)
Post by: RoarinRow on August 04, 2006, 07:05:27 PM
Quote from: AliveToday on August 04, 2006, 06:56:42 PM
Quote from: Kettu on July 07, 2006, 04:29:21 AM
Good morning.
Looks like I am the only one who has that problem. I installed the CAPTCHA Mod. But if I test the registration or a guest posting there is only an empty picture shown without any characters. I still have the default settings on, didn't change anything, web save colors etc. So there is no code to see. :(

The other thing is just an information. If you use space characters for a file name you don't have to wonder, if it doesn't work with the file manager. Space characters are imho a crime for work at the web. It is a typical windows accommodativeness, but only works THERE without problems. ;)

Edit July 8th
I have changed each setting, but nothing changes. Still the empty picture.

this is the same exact problem I am having. Did we ever figure out a fix? is there any way to make this work? my users are pretty much demanding that I install this, we were hit by a gay porn spambot a couple days ago and i need to get this in place.

What if you disabled the check box for 'Enable Noise' and 'Web safe colours' ?
Title: Re: CAPTCHA (Code Verification)
Post by: AliveToday on August 04, 2006, 07:56:57 PM
Quote from: RoarinRow on August 04, 2006, 07:05:27 PM
Quote from: AliveToday on August 04, 2006, 06:56:42 PM
Quote from: Kettu on July 07, 2006, 04:29:21 AM
Good morning.
Looks like I am the only one who has that problem. I installed the CAPTCHA Mod. But if I test the registration or a guest posting there is only an empty picture shown without any characters. I still have the default settings on, didn't change anything, web save colors etc. So there is no code to see. :(

The other thing is just an information. If you use space characters for a file name you don't have to wonder, if it doesn't work with the file manager. Space characters are imho a crime for work at the web. It is a typical windows accommodativeness, but only works THERE without problems. ;)

Edit July 8th
I have changed each setting, but nothing changes. Still the empty picture.

this is the same exact problem I am having. Did we ever figure out a fix? is there any way to make this work? my users are pretty much demanding that I install this, we were hit by a gay porn spambot a couple days ago and i need to get this in place.

What if you disabled the check box for 'Enable Noise' and 'Web safe colours' ?

did that, still just a bunch of blank boxes where the characters should be
Title: Re: CAPTCHA (Code Verification)
Post by: Harzem on August 05, 2006, 05:27:00 AM
Can you provide a link to your forum?
Title: Re: CAPTCHA (Code Verification)
Post by: Kettu on August 05, 2006, 10:25:01 AM
As I already said, I have changed everything changeable, but still the empty picture appeared. No character or numbers where shown with 1.1 RC2 and normal installation through package manager.
So I deleted the CAPTCHA after none answered to my problem.
Title: Re: CAPTCHA (Code Verification)
Post by: tinatoth on August 11, 2006, 05:22:00 PM
I just installed this on SMF 1.0.7.

Nothing happened. I'm absolutely sure the mod is installed and applied. And when I go to the registration screen, there is simply nothing new on it, no section asking for a code, nothing.

I'm not sure if it has anything to do with it, but I'm also using the mambo bridge - which however uses forum registration, so that should work I figured?

Any suggestions?
Title: Re: CAPTCHA (Code Verification)
Post by: Bigguy on August 11, 2006, 05:50:29 PM
Don`t you turn off smf registration when using the bridge and register through that. ???
Title: Re: CAPTCHA (Code Verification)
Post by: tinatoth on August 11, 2006, 05:57:17 PM
It is set to SMF registration!

Captcha seems to actually partially work, if I try to proceed with a registration, it tells me I didn't type the right code in. But the actual registration page contains only the username, email and password fields. No code field.

If it helps, the captcha directory and its tmp subdirectory are chmodded 777, and I have GD and Free Type:

QuoteGD Support    enabled
GD Version    bundled (2.0.28 compatible)
FreeType Support    enabled
FreeType Linkage    with freetype
FreeType Version    2.1.4
GIF Read Support    enabled
GIF Create Support    enabled
JPG Support    enabled
PNG Support    enabled
WBMP Support    enabled
XPM Support    enabled
XBM Support    enabled

any ideas?
Title: Re: CAPTCHA (Code Verification)
Post by: MacGig on August 12, 2006, 11:08:44 PM
how do I install? is it safe for 1.07?? thanks. :)
Title: Re: CAPTCHA (Code Verification)
Post by: Bigguy on August 12, 2006, 11:36:11 PM
Use the package manager, and yes it is.
Title: Re: CAPTCHA (Code Verification)
Post by: opally on August 14, 2006, 11:43:51 AM
Quote from: tinatoth on August 11, 2006, 05:57:17 PM
Captcha seems to actually partially work, if I try to proceed with a registration, it tells me I didn't type the right code in. But the actual registration page contains only the username, email and password fields. No code field.

I'm having the same problem as Tinatoth.

Using 1.07 SMF. I am also using Bloc's Themis theme.

I did a compare of the default Register.template.php and the Themis Register.template.php and didn't find any remarkable differences, except for this:
Line 152 - 159
Default; Register v. 1.0:
if (document.postForm.todo.value.indexOf("delete") != -1)
message = "', $txt['admin_browse_w_delete'], '";
else if (document.postForm.todo.value.indexOf("reject") != -1)
message = "', $txt['admin_browse_w_reject'], '";
else if (document.postForm.todo.value == "remind")
message = "', $txt['admin_browse_w_remind'], '";
else
message = "', $context['browse_type'] == 'approve' ? $txt['admin_browse_w_approve'] : $txt['admin_browse_w_activate'], '";

Themis; Register v. 1.0.1:
                        if (document.postForm.todo.value == "delete" || document.postForm.todo.value == "deleteemail")
                                message = "' . $txt['admin_browse_w_delete'] . '";
                        else if (document.postForm.todo.value == "remind")
                                message = "' . $txt['admin_browse_w_remind'] . '";
                        else
                                message = "' . ($context['browse_type'] == 'approve' ? $txt['admin_browse_w_approve'] : $txt['admin_browse_w_activate']) . '";


Could this be the problem? I could try replacing this section of code, tho by version number alone it appears that Bloc's is the newer one.
Title: Re: CAPTCHA (Code Verification)
Post by: tinatoth on August 16, 2006, 09:25:04 AM
I am using default skin... well, a skin which was based on fefault, but i never changed its register template. It's the same as the original.  So... maybe the default template is the problem? I've no idea.
Title: Re: CAPTCHA (Code Verification)
Post by: danneh3826 on August 16, 2006, 05:54:22 PM
I'm getting this after I installed (SMF 1.0.7)

Fatal error: Cannot redeclare show_captcha() (previously declared in /usr/home/marc/www.short-story.net/forum/captcha/captcha.php:68) in /usr/home/marc/www.short-story.net/forum/captcha/captcha.php on line 67

any clues? this sounds like a really good mod for us, as we're getting a lot of spam bots registering. and as i'm the administrator for the server it's on, i get all the bounces!
Title: Re: CAPTCHA (Code Verification)
Post by: tinatoth on August 17, 2006, 04:01:12 PM
I FOUND THE SOLUTION FOR MY PROBLEM!!

I deleted the register.template.php file, and CAPTCHA started working!! Weee!!!

I'm not sure if you can do that too opally, but it's worth a try! Depends on your skin I guess!
Title: Re: CAPTCHA (Code Verification)
Post by: opally on August 18, 2006, 09:10:36 AM
Brilliant!!!! You are a genius!

I removed the Register.template.php for my theme, and VOILA! It works!

This needs to be in the installation instructions for this mod.

---Opally
Title: Re: CAPTCHA (Code Verification)
Post by: randyripoff on August 22, 2006, 03:15:48 AM
We aren't using the default theme, and I think that's why I'm having a hard time getting this working.

Are there instructions for a manual install?
Title: Re: CAPTCHA (Code Verification)
Post by: opally on August 22, 2006, 09:10:16 AM
Randyripoff,

Did you try Tinatoth's suggestion?

Run the package installer from Admin
Remove your theme's register.template.php file

The installer automatically edits several files, when you run the installer it shows you what files are modified. You can install and uninstall a few times to see how it works. The file that is edited is saved with a ~ at the end of the name, so it is easy to revert.

---Opally
Title: failure in ./Sources/ModSettings.php.
Post by: Surferbird on August 22, 2006, 04:59:08 PM
What to do, get this message when try to install CaptCha?

failure in ./Sources/ModSettings.php.
Any solution for this? ::)
Title: Re: CAPTCHA (Code Verification)
Post by: acculver on August 24, 2006, 01:29:07 AM
Can you please update it for RC3 Please
Title: Re: CAPTCHA (Code Verification)
Post by: Bigguy on August 24, 2006, 01:55:18 AM
Rc3 has built in captcha. You won`t need this mod.
Title: Re: CAPTCHA (Code Verification)
Post by: Harzem on August 24, 2006, 01:57:40 AM
Quote from: Bigguy on August 24, 2006, 01:55:18 AM
Rc3 has built in captcha. You won`t need this mod.

For now, it is unreadable, and doesn't affect guest posting. This is why that mod is still requested.
Title: Re: CAPTCHA (Code Verification)
Post by: Bigguy on August 24, 2006, 01:59:15 AM
Oh, so sorry about that. I guess I have not been reading things thoroughly enough, sorry again.
Title: Re: CAPTCHA (Code Verification)
Post by: Calzone on August 28, 2006, 08:12:46 AM
Just update package-info.xml with:
<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ATTENTION: If you are trying to install this manually, you should try
the package manager.  If it will not work for you, please take a look
at the following for information on this format:
http://mods.simplemachines.org/docs/manual-install.php
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
    <id>daniel15:CAPTCHA</id>
    <name>CAPTCHA (code verification)</name>
    <version>0.1.1</version>
    <type>modification</type>

<upgrade from="0.1">
<readme>readme-up.txt</readme>

<require-dir name="captcha" destination="$boarddir" />
        <modification format="xml" type="file">up-0.1-0.1.1.xml</modification>
</upgrade>

    <install for="1.0 RC2, 1.0, 1.0.1-1.0.99">
        <readme>readme-new.txt</readme>

<require-dir name="captcha" destination="$boarddir" />
        <modification format="xml" type="file">install.xml</modification>
        <code>installScript.php</code>
    </install>

<uninstall for="1.0 RC2, 1.0, 1.0.1-1.0.99">
<modification type="file" reverse="true">install.xml</modification>
</uninstall>

<install for="1.1 RC1, 1.1 RC2, 1.1 RC3">
        <readme>readme-new.txt</readme>

<require-dir name="captcha" destination="$boarddir" />
        <modification format="xml" type="file">install-1.1rc2.xml</modification>
        <code>installScript.php</code>
</install>

<uninstall for="1.1 RC1, 1.1 RC2, 1.1 RC3">
<modification type="file" reverse="true">install-1.1rc2.xml</modification>
</uninstall>

<install>
<readme type="inline">Sorry, but the CAPTCHA Mod doesn't support your SMF version! Please email Daniel15 at [email protected] for more information!</readme>
</install>


</package-info>
Title: Captcha Error
Post by: Bailz on August 30, 2006, 10:03:32 AM
SMF Version: SMF 1.1 RC2
I've installed the Captcha mod succesfully but whenever I view the registration page I get the following error:


Fatal error: Call to undefined function: show_captcha() in /mounted-storage/home24a/sub003/sc22826-LAGM/www/forum/Sources/Register.php on line 79

Can anyone advise?
Title: Re: CAPTCHA (Code Verification)
Post by: RoarinRow on September 11, 2006, 01:52:55 PM
Quote from: Calzone on August 28, 2006, 08:12:46 AM
Just update package-info.xml with:
<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ATTENTION: If you are trying to install this manually, you should try
the package manager.  If it will not work for you, please take a look
at the following for information on this format:
http://mods.simplemachines.org/docs/manual-install.php
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
    <id>daniel15:CAPTCHA</id>
    <name>CAPTCHA (code verification)</name>
    <version>0.1.1</version>
    <type>modification</type>

<upgrade from="0.1">
<readme>readme-up.txt</readme>

<require-dir name="captcha" destination="$boarddir" />
        <modification format="xml" type="file">up-0.1-0.1.1.xml</modification>
</upgrade>

    <install for="1.0 RC2, 1.0, 1.0.1-1.0.99">
        <readme>readme-new.txt</readme>

<require-dir name="captcha" destination="$boarddir" />
        <modification format="xml" type="file">install.xml</modification>
        <code>installScript.php</code>
    </install>

<uninstall for="1.0 RC2, 1.0, 1.0.1-1.0.99">
<modification type="file" reverse="true">install.xml</modification>
</uninstall>

<install for="1.1 RC1, 1.1 RC2, 1.1 RC3">
        <readme>readme-new.txt</readme>

<require-dir name="captcha" destination="$boarddir" />
        <modification format="xml" type="file">install-1.1rc2.xml</modification>
        <code>installScript.php</code>
</install>

<uninstall for="1.1 RC1, 1.1 RC2, 1.1 RC3">
<modification type="file" reverse="true">install-1.1rc2.xml</modification>
</uninstall>

<install>
<readme type="inline">Sorry, but the CAPTCHA Mod doesn't support your SMF version! Please email Daniel15 at [email protected] for more information!</readme>
</install>


</package-info>


Has anyone tried this update on RC3?  Any problems?
Title: Re: CAPTCHA (Code Verification)
Post by: RoarinRow on September 14, 2006, 10:51:02 AM
I tried the code above and get these errors:

1. Extract Tree ./captcha 
2. Execute Modification ./Sources/Register.php                                             Test successful
3. Execute Modification ./Themes/default/Register.template.php                       Test failed  
4. Execute Modification ./Sources/Post.php                                                  Test successful
5. Execute Modification ./Themes/default/Post.template.php                            Test successful
6. Execute Modification ./Themes/default/languages/Modifications.english.php     Test successful
7. Execute Modification ./Sources/ModSettings.php                                        Test failed
8. Execute Code installScript.php
Title: Re: CAPTCHA (Code Verification)
Post by: Gobo on September 15, 2006, 07:30:00 AM
Quote from: HarzeM on August 24, 2006, 01:57:40 AM
Quote from: Bigguy on August 24, 2006, 01:55:18 AM
Rc3 has built in captcha. You won`t need this mod.

For now, it is unreadable, and doesn't affect guest posting. This is why that mod is still requested.

i cant believe they messed up the 1 feature i was looking forward to  :o
Title: Re: CAPTCHA (Code Verification)
Post by: Harzem on September 15, 2006, 07:37:51 AM
Quote from: akulion on September 15, 2006, 07:30:00 AM
i cant believe they messed up the 1 feature i was looking forward to  :o

Don't worry, my new mod for captcha will probably be released tomorrow.
Title: Re: CAPTCHA (Code Verification)
Post by: Gobo on September 15, 2006, 09:55:53 AM
Quote
Don't worry, my new mod for captcha will probably be released tomorrow.

cool cant wait!! HarzeM this is a bit off topic but do you think you could help out with this (http://www.simplemachines.org/community/index.php?topic=86801) - if not no problem :D
Title: Re: CAPTCHA (Code Verification)
Post by: RoarinRow on September 15, 2006, 10:00:21 AM
Quote from: HarzeM on September 15, 2006, 07:37:51 AM
Quote from: akulion on September 15, 2006, 07:30:00 AM
i cant believe they messed up the 1 feature i was looking forward to  :o

Don't worry, my new mod for captcha will probably be released tomorrow.

Great, can't wait either   8)
Title: Re: CAPTCHA (Code Verification)
Post by: ivo2296 on September 15, 2006, 07:14:33 PM
Just for the record:

This mod is much better as built in captcha in RC3 - has no user friendly adjustment.
Title: Re: CAPTCHA (Code Verification)
Post by: sdmr on September 18, 2006, 03:39:15 AM
On my forum (just upgraded to RC3) the captcha displays the same series of letters each time it is refreshed, albeit varying between uppercase and lowercase and changing the visual appearance.  Why might this be?
Title: Re: CAPTCHA (Code Verification)
Post by: sdmr on September 18, 2006, 03:44:26 AM
Because it's set as a session variable... right?
Title: Re: CAPTCHA (Code Verification)
Post by: Harzem on September 19, 2006, 05:29:38 AM
Quote from: RoarinRow on September 15, 2006, 10:00:21 AM
Quote from: HarzeM on September 15, 2006, 07:37:51 AM
Quote from: akulion on September 15, 2006, 07:30:00 AM
i cant believe they messed up the 1 feature i was looking forward to  :o

Don't worry, my new mod for captcha will probably be released tomorrow.

Great, can't wait either   8)

I've released my mod for 1.1 RC3 here:
http://mods.simplemachines.org/index.php?mod=474
Title: Re: CAPTCHA (Code Verification)
Post by: nutn2lewz on September 19, 2006, 02:26:35 PM
Original mod working perfectly on 1.08 with Midland theme.
Title: Re: CAPTCHA (Code Verification)
Post by: Niteblade on September 23, 2006, 04:01:35 PM
OMG.

Brilliant.
Title: Re: CAPTCHA (Code Verification)
Post by: Daniel15 on September 25, 2006, 12:13:12 AM
HarzeM, I love your MOD better than my own one :)
Title: Re: CAPTCHA (Code Verification)
Post by: money-monitor.com on October 16, 2006, 01:16:41 PM
This mod is not working on my forum. I have installed successfully for 1.0.8 version, but when I click on the register page, I see blank page only.
Title: Re: CAPTCHA (Code Verification)
Post by: tinatoth on November 11, 2006, 08:38:51 PM
Since I upgraded to 1.0.9 and CAPTCHA is no longer working. The text saying "Please enter code as shown" appears on the registration screen (although that's probably cos I had to enter it manually into my template), but no code or text box appears, and users can register without the code.

Help?
Title: Re: CAPTCHA (Code Verification)
Post by: tinatoth on November 12, 2006, 12:57:09 PM
ok nevermind i reinstalled it. works now.
Title: Re: CAPTCHA (Code Verification)
Post by: money-monitor.com on November 12, 2006, 02:49:45 PM
But still not working for me, Daniel don`t reply for my PM  :-[
Title: Re: CAPTCHA (Code Verification)
Post by: Gary of Beeston on November 19, 2006, 04:42:46 AM
Little confused here. It was working fine on 1.0.7, but now I'm using 1.0.9, it doesn't put the captcha element into the registration process.

I'm using a slightly customised template, but that's only really changing the headers to match up with the Joomla! site it is a part of, and I switched back to the default template; still doesn't appear. Is it me, or the mod/1.0.9?

Of course, if 1.1 ever gets out of Release Candidate stage, I'll upgrade in a flash...  ;D
Gary
Title: Re: CAPTCHA (Code Verification)
Post by: choloman05 on November 20, 2006, 04:27:37 PM
Hey. Captcha Mod seems to be keeping people from registering as I continuously get these errors and it takes up to 5 tries to register:

8: Undefined index: captchaWrong
File: /home/tarheelf/public_html/Sources/Register.php
Line: 136

8: Undefined index: captchaEnter
File: /home/tarheelf/public_html/Themes/default/Register.template.php (eval?)
Line: 89

Also, the text that should be in my admin center has disappeared. The check boxes and such are still there, but the text on the left is gone. Anyone know what I should do? I'm running 1.1RC2 w/Dilber MC theme. I haven't upgraded to RC3 cause I figure I'll just wait for 1.1 Gold. Thanks.
Title: Re: CAPTCHA (Code Verification)
Post by: unknown77 on November 27, 2006, 10:35:13 PM
I there,

i have this error:

An Error Has Occurred!
phpinfo() has been disabled for security reasons 


I use SMF 1.0.9 and i have this mods:

Mod Name Version   
1. SSI NewsArchive 1.3
2. Mambo Integration 1.0   
3. SMF 1.0.7 / 1.1 RC2 Update 1.0   
4. SMF 1.0.8 Update Package 1.0.8   
5. SMF 1.0.9 and 1.1 RC3-1 Security Patch 1.0.8/1.1 RC3     
6. CAPTCHA (code verification) 0.1.1   

Thx
Title: Re: CAPTCHA (Code Verification)
Post by: Bigguy on November 27, 2006, 11:54:46 PM
looks like maybe phpinfo has been disabled by your host.
Title: Re: CAPTCHA (Code Verification)
Post by: Jazeker on November 29, 2006, 04:11:19 PM
Hi,

Looks like an excellent mod.  However I am running SMF 1.0.9 and I am not really sure whether that version is already supported.
Title: Re: CAPTCHA (Code Verification)
Post by: Daniel15 on November 30, 2006, 02:01:39 AM
Yes, SMF 1.0.9 is supported by this MOD.
Title: Re: CAPTCHA (Code Verification)
Post by: Dave_T on December 01, 2006, 05:11:54 PM
Hi,

I'd like to use this mod on my SMF 1.0.9 forums, but as other have noted it doesn't seem to install using the package manager. I've tried a manual installation by uploading the unzipped files/folder (maintaining the structure) to the root of my forums and then running the installScript.php file e.g. http://www.mysite.com/forums/installScript.php. This doesn't generate any errors, but also doesn't seem to enable CAPTCHA settings in the Admin Center nor give me any extra bits on the registration page...

I'd appreciate any thoughts that anyone might have on which bit of the puzzle I'm missing...

Dave.
Title: Re: CAPTCHA (Code Verification)
Post by: Daniel15 on December 01, 2006, 08:10:05 PM
Dave_T, the installScript.php file only adds the CAPTCHA stuff to the database. To actually install it, you need to edit some of the SMF files as well. Upload the package-info.xml file to http://server.daniel15.com/smf_xml/package-info.php?action=file to see what files you need to copy over, and upload the modification XML file (install-SMF1.0.xml or similar, can't check at the moment) to http://server.daniel15.com/smf_xml/modification.php?action=file to see what files you need to edit.
Title: Re: CAPTCHA (Code Verification)
Post by: viulian on December 01, 2006, 08:18:17 PM
Quote from: unknown77 on November 27, 2006, 10:35:13 PM
i have this error:

An Error Has Occurred!
phpinfo() has been disabled for security reasons 


Happened to me too.

I have edited the hn_captcha.class.php by replacing the line
static $gd_version_number = null;
with
static $gd_version_number = "2.0.1";

I was lucky and there was a gd 2 installed cos things worked ok. If they don't work, try something like "1.9.0"..
Title: Re: CAPTCHA (Code Verification)
Post by: Dave_T on December 02, 2006, 06:07:10 AM
Daniel,

Thanks for the advice... in the end I downloaded the zip to my local computer and then uploaded it and applied it with the package manager. It's working like a charm, and hopefully should stop all of the bot registrations that have been happening for a while.

Dave.
Title: Re: CAPTCHA (Code Verification)
Post by: SageAttar on December 14, 2006, 06:51:51 PM
Hi,
i install this mod.. and i'm getting this error on registration page..

QuoteThere is no GD-Library-Support enabled. The Captcha-Class cannot be used!

please help me..
Title: Re: CAPTCHA (Code Verification)
Post by: Daniel15 on December 14, 2006, 10:21:07 PM
SageAttar, that error means that the GD library isn't installed on your server. You'll need to contact your host and ask them to install the PHP GD library for you.
Title: Re: CAPTCHA (Code Verification)
Post by: nameless on December 21, 2006, 12:49:05 PM
I've had this install in previous versions of 1.0.x and have upgraded to 1.0.10 and now when the mod is enabled there is (2) captcha images and text boxes and users are unable to sign up. If I un-install the mod I still see the text "Please enter the code as shown:" with no captcha image. I have tried deleting and reinstalling but get the same result. Is there a way to fix this? TIA. :)

UPDATE I figured it out. I just removed the extra <tr> that had the extra text box and captcha image. Have a Happy Holidays! :D
Title: Re: CAPTCHA (Code Verification)
Post by: SageAttar on January 03, 2007, 01:01:12 PM
Quote from: Daniel15 on December 14, 2006, 10:21:07 PM
SageAttar, that error means that the GD library isn't installed on your server. You'll need to contact your host and ask them to install the PHP GD library for you.

can i install GD LIBRARY with out the help of my host? if yes then how?
or here any other captha mod available that does'nt need GD LIBRARY.. i'm using SMF 1.0.7..
Title: Re: CAPTCHA (Code Verification)
Post by: Daniel15 on January 03, 2007, 10:42:18 PM
Quotecan i install GD LIBRARY with out the help of my host?
No, the host needs to install it, as it's compiled into PHP.

Quoteor here any other captha mod available that does'nt need GD LIBRARY
I haven't seen any that do this, although the Advanced Visual Verification MOD for SMF 1.1 has a mode that works without the GD library.
Title: Re: CAPTCHA (Code Verification)
Post by: Iatheia on January 16, 2007, 10:25:56 PM
I've got a wee bit of a problem.
Everything worked fine, until... Until our forum was hacked. After that everything went wrong.
The first time I fixed it, the problem was simply that they deleted some lines of code. But then... The problems kept coming and coming, and I had to use a backup version of the forum. But now whenever I put captcha on, I get this mistake:
8: Undefined index: captchaEnter
File: /var/www/web21/web/forum/Themes/default/Register.template.php (before sub template - eval?)
Line: 89

When I delete captcha, the registration page works fine, but I can't really do that, because spammers are always on guard.
What can I do?
Title: Re: CAPTCHA (Code Verification)
Post by: Hondo on June 20, 2007, 07:33:28 AM
Hi,
when will this real good mod be available vor SMF 1.1.2?
Title: Re: CAPTCHA (Code Verification)
Post by: Daniel15 on June 21, 2007, 06:39:51 AM
Quote from: Hondo on June 20, 2007, 07:33:28 AM
Hi,
when will this real good mod be available vor SMF 1.1.2?
It is no longer needed - SMF 1.1.2 has its own in-built CAPTCHA system ;)
Title: Re: CAPTCHA (Code Verification)
Post by: jonathanE. on August 16, 2007, 12:15:25 PM
Quote from: Daniel15 on June 21, 2007, 06:39:51 AM
Quote from: Hondo on June 20, 2007, 07:33:28 AM
Hi,
when will this real good mod be available vor SMF 1.1.2?
It is no longer needed - SMF 1.1.2 has its own in-built CAPTCHA system ;)

Even though it is built-in it lacks the issue of handling guests posts.

Any chance of "adding" it with support for SMF 1.1.3?
Title: Re: CAPTCHA (Code Verification)
Post by: Daniel15 on August 17, 2007, 04:02:12 AM
Yes, HarzeM's "Advanced Visual Verification" adds a more advanced CAPTCHA system, including a CAPTCHA on guest posts. It's only compatible with SMF 1.1 Final, but I'm working on updating it to support SMF 1.1.3. Stay tuned! :)
Title: Re: CAPTCHA (Code Verification)
Post by: ROMAHi4 on August 17, 2007, 04:58:09 AM
Nice  :D
Title: Re: CAPTCHA (Code Verification)
Post by: jonathanE. on August 17, 2007, 11:10:33 AM
Good news indeed Daniel15, thank you for your efforts :D
Title: Re: CAPTCHA (Code Verification)
Post by: Velozity on September 11, 2007, 07:07:55 AM
Quote from: Daniel15 on August 17, 2007, 04:02:12 AM
Yes, HarzeM's "Advanced Visual Verification" adds a more advanced CAPTCHA system, including a CAPTCHA on guest posts. It's only compatible with SMF 1.1 Final, but I'm working on updating it to support SMF 1.1.3. Stay tuned! :)
anything new regarding this? my users would really appreciate this feature. :)

edit: apologies, found it already from here: http://www.simplemachines.org/community/index.php?topic=189349.0