Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard - Page 9 Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard - Page 9
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard

Started by Sami, September 17, 2006, 07:04:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

merlin6666

Hi Sami,

unfortunately i can`t see any captcha graphic in my gallery. Maybe you or someone else can help me?

http://codefree24.de/svw/gallery_svw/displayimage.php?album=11&pos=2

1.4.10 is installed
Freetype is enabled

Many Thanks

merlin666

superdave

the weirdest thing ...

i've had no problems since sami helped me ... the captcha works perfectly.

but in the last week, i've had 5 spam comments ...

how the hell could they be getting through?  ???

www.super-dave.com ... (i've left one spam comment on my gallery, to see what they're doing).

Abbas Ali

Captcha only prevents automated robots from posting spam comments. But if some human is posting the comment, then he/she can definitely overcome captcha.
Chief Geek at Ranium Systems

superdave

Quote from: Abbas Ali on June 18, 2007, 06:54:28 AM
Captcha only prevents automated robots from posting spam comments. But if some human is posting the comment, then he/she can definitely overcome captcha.

ah, yeah ... i'd forgotten about that ... it would explain why there's only been 5 over about the last week.

thanks abbas! :)

Sami

@merlin666:I've got Error 403: Access Denied (in german) when I try
http://codefree24.de/svw/gallery_svw/plugins/captcha/captcha.php
and I don't know what to say !

I think it's better to ask for support from host
‍I don't answer to PM with support question
Please post your issue to related board

vaengr

#165
Hi,

Many thanks for the plugin - about two hours and it was working.

Problems encountered during the install....(I'm new to coppermine and it will probably show  :)

Finding where to download it from - spent a good 30 mins searching the download section - it's a link at the bottom of the first message in this thread.

Once installed the CAPTCHA info wasn't displayed - I then messed around trying to install Freetype Support for a while as seemed to be suggested in a post I found.

Then found reference to GD and tried to get that up.

WHM - apache update failed to list GD as being installed - it does install but does not tick itself when installed (Actually I could find no reference here about GD needing to be installed in the first place)

after all this working, thanks.

The only problem I can see is I've got no ? for users to click to know what they are supposed to do - I'm sure I've seen that on some of the examples I've visited?

Paul.

As a side note - what I had set out to do was find a way of rejecting comments with a URL in them.

www.larp-pics.co.uk

Sami

thanks for feedback Paul :)
You are correct I should add requirement to the very first thread

There is another (Akismet) spam checking (it is a mod) for coppermine you can see it here
http://forum.coppermine-gallery.net/index.php?topic=33827.0

I don't test it personally ,maybe it can do what you want to do :)
‍I don't answer to PM with support question
Please post your issue to related board

CaptnMorgan

#167
I too am having trouble with the CAPTHA image not displaying.

I read contradicting this about posting the debug message.  One said post, one said don't post unless asked.  So I'm just going to post part of it;

==========================
VERSION INFO :
------------------
PHP version: 4.3.2 - OK
------------------
mySQL version: 4.1.8-standard
------------------
Coppermine version: 1.4.10(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.12 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support:
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1

Let me know what else may be needed to help find the problem.
I had some errors in the notices, but not sure if those are needed too.

Thank you in advance, this is a great plug-in!

willy63

My problem installs the captcha I work ok, the uninstall, and later when installing it again and now repeats 2 times the code of security that I can make.

Url: http://www.tuningmix.com/displayimage-lastcom-0-1.html

Thankz

Sami

@CaptnMorgan:
it seems that you have edited plugins/captcha/captcha.php or you have edited plugins/captcha/include/captcha.class.php by trying this:
http://www.jobbienooner.com/coppermine_dir/plugins/captcha/captcha.php
you'll see the actual error , there is a missing argument for imageftbbox()
check your files and if you can't find the problem try to re-upload plugin

@willy63: you are using mark's 1.7.1 version of this plugin and I had not enough time to check his code , try to install my version (1.7) and see if error goes
‍I don't answer to PM with support question
Please post your issue to related board

CaptnMorgan

#170
Quote from: Sami on June 24, 2007, 05:01:37 PM
@CaptnMorgan:
it seems that you have edited plugins/captcha/captcha.php or you have edited plugins/captcha/include/captcha.class.php by trying this:
http://www.mysite.com/coppermine_dir/plugins/captcha/captcha.php
you'll see the actual error , there is a missing argument for imageftbbox()
check your files and if you can't find the problem try to re-upload plugin
No, I didn't edit any files. I've tried re-uploading them, but that didn't help.
I guess I'll re-download the plug-in again though...

CaptnMorgan

#171
Re-downloaded, re-uploaded, re-installed.... no change though.  :'(

update: I think the problem is with captcha.class.php.
When I view it after unzipping, it's corrupt.  It's like it's been xferred in binary, when it should have been ascii.  But all I did was unzip it.  Here's what it looks like;
<?php
   
/***************************************************************/
   /* PhpCaptcha                                                  */
   /* Copyright  2005 Edward Eliot - http://www.ejeliot.com/     */
   /* This class is Freeware, however please retain this          */
   /* copyright notice when using                                 */
   /* Last Updated: 26th November 2005                            */
   /***************************************************************/

   // start a PHP session - this class uses


Holy crap, it pastes here fine!
How do I fix that?  ???

update2: I pasted the code into a nw dreamweaver file, and it formatted it okay.  Saved that, uploaded it, re-installed the plug-in, but I still get the same thing.  Man, I thought that was it too. 
Well the error says;
QuoteWarning: Wrong parameter count for imageftbbox() in /home/httpd/html/mysite.com/public_html/coppermine_dir/plugins/captcha/include/captcha.class.php on line 115
What does that mean?

Sami

That means you have missed one or more parameter when called imageftbbox() function , It will happen only if your file was edited wrongly or corrupted 

If you give me an admin account of your gallery and a ftp account I'll check that
‍I don't answer to PM with support question
Please post your issue to related board

Sami

#173
after checking CaptnMorgan's server I figure out that I should add some changes to captcha.class.php for backward compatibility , quick fix for these issue is changing DrawCharacters() function under plugin/captcha/include/captcha.class.php with this one

      function DrawCharacters() {
         //for backward compatability
$ex_info = array();

// loop through and write out selected number of characters
         for ($i = 0; $i < strlen($this->sCode); $i++) {
            // select random font
            $sCurrentFont = $this->aFonts[array_rand($this->aFonts)];

            // select random greyscale colour
            $iRandColour = rand(0, 100);
            $iTextColour = imagecolorallocate($this->oImage, $iRandColour, $iRandColour, $iRandColour);

            if ($this->bCharShadow) {
               // shadow colour
               $iRandColour = rand(0, 100);
               $iShadowColour = imagecolorallocate($this->oImage, $iRandColour, $iRandColour, $iRandColour);
            }

            // select random font size
            $iFontSize = rand(16, 25);

            // select random angle
            $iAngle = rand(-30, 30);

            // get dimensions of character in selected font and text size
            $aCharDetails = imageftbbox($iFontSize, $iAngle, $sCurrentFont, $this->sCode[$i],$ex_info);

            // calculate character starting coordinates
            $iX = $this->iSpacing / 4 + $i * $this->iSpacing;
            $iCharHeight = $aCharDetails[2] - $aCharDetails[5];
            $iY = $this->iHeight / 2 + $iCharHeight / 4;

// write text to image

            imagefttext($this->oImage, $iFontSize, $iAngle, $iX, $iY, $iTextColour, $sCurrentFont, $this->sCode[$i],$ex_info);

            if ($this->bCharShadow) {
               $iOffsetAngle = rand(-30, 30);

               $iRandOffsetX = rand(-5, 5);
               $iRandOffsetY = rand(-5, 5);

               imagefttext($this->oImage, $iFontSize, $iOffsetAngle, $iX + $iRandOffsetX, $iY + $iRandOffsetY, $iShadowColour, $sCurrentFont, $this->sCode[$i]);
            }
         }
      }


The only changes that I've made was , I've added an empty array ($ex_info) to the end of imageftbbox and imagefttext() functions's arguments , last argument for both functions are optional since 4.3.5 but for those who have 4.3.4 or lower they should add this fix
‍I don't answer to PM with support question
Please post your issue to related board

mcmartin

Quote from: Sami on September 17, 2006, 07:04:22 AM
Captcha ver 1.7
As I see , we have more than 240 downloads (till now) from Captcha (Visual Confirmation) for adding comments mod by Abbas Ali , yes it's a great mod ;)
(IMO it should goes to core)
So here is the mod as a plugin ... Enjoy

Requirement:
=========
- GD 2.x (2.0.28 or later is recommended) with Freetype support
- Better compatibility with php 4.3.5 or later

Update:

v1.6 - 2006/10/10 - 04:10 GMT

Feature:
=======
- added "Only apply to unregistred user" to codebase.php
if you want to Captcha display for all users, remove (or comment) those line with this comment "// Remove this line if you want Captcha display to all"
from codebase.php

- Italian language added (Thanks to lontano [Davide])

fixes:
=====
- Blank page on batch add and admin tools fixed (Only happened on "apply to all user" )

v1.7 - 2006/10/22 - 15:20 GMT

fixes:
=====
- Theme improvement

Is there a lock for newly registered members to download this zip file? I just get an error message, stating that the possible cause is that the site requires login..I registered, but still can't download it...anything on the site of the forum why this would be happening? thanks,

Martin

Sami

#175
Quote from: mcmartin on July 02, 2007, 06:30:55 AM
Is there a lock for newly registered members to download this zip file?

No!!

Quote from: mcmartin on July 02, 2007, 06:30:55 AM
I just get an error message, stating that the possible cause is that the site requires login..I registered, but still can't download it...anything on the site of the forum why this would be happening? thanks,

Check your connection , could be the forum's server at that moment try again later
there isn't any limit or download rule for new members at all

Update:
I download it my self as a guest and it was fine! so it would be something on your side
‍I don't answer to PM with support question
Please post your issue to related board

Sami

#176
Plugin Update (1.8)

fixes:
=====
- Compatible with 1.4.12's new plugin api
- Backward compatibility for php under 4.3.5

new feature:
===========
- Add captcha for registration

Added language:
===============
- Dutch thanks to Hein
- French thanks to spikeweb
- German thanks to m@rk
- Brazilian portuguese thanks to Bonato
‍I don't answer to PM with support question
Please post your issue to related board

LuthienMoss

QuoteInstallation:
1.Copy captcha folder to your plugins folder
2.Use plugin manager to install it

Where can I find the plugin manager?!

Sami

Config=>General settings=>Enable plugins=>( Manage plugins )
Or
go to
http://{your gallery}/pluginmgr.php
‍I don't answer to PM with support question
Please post your issue to related board

Su8Z3r0

Hi there, think theres any chance of marks 1.7.1 lay-out been done on this version of captcha? As i like it on the right hand side

many thx ricky