Advanced search  

News:

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

Pages: 1 ... 5 6 7 8 [9] 10 11 12 13 ... 41   Go Down

Author Topic: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard  (Read 603049 times)

0 Members and 1 Guest are viewing this topic.

merlin6666

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
Re: Captcha (Visual Confirmation) for adding comments
« Reply #160 on: June 17, 2007, 11:22:14 pm »

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
Logged

superdave

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: Captcha (Visual Confirmation) for adding comments
« Reply #161 on: June 18, 2007, 05:35:18 am »

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).
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Captcha (Visual Confirmation) for adding comments
« Reply #162 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.
Logged
Chief Geek at Ranium Systems

superdave

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: Captcha (Visual Confirmation) for adding comments
« Reply #163 on: June 18, 2007, 07:05:15 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! :)
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Captcha (Visual Confirmation) for adding comments
« Reply #164 on: June 18, 2007, 09:09:40 am »

@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
Logged
‍I don't answer to PM with support question
Please post your issue to related board

vaengr

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Captcha (Visual Confirmation) for adding comments
« Reply #165 on: June 18, 2007, 11:42:44 pm »

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
« Last Edit: June 19, 2007, 12:16:57 am by vaengr »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Captcha (Visual Confirmation) for adding comments
« Reply #166 on: June 19, 2007, 06:27:11 am »

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 :)
Logged
‍I don't answer to PM with support question
Please post your issue to related board

CaptnMorgan

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Captcha (Visual Confirmation) for adding comments
« Reply #167 on: June 23, 2007, 09:38:19 pm »

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!
« Last Edit: June 24, 2007, 08:11:15 pm by CaptnMorgan »
Logged

willy63

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Captcha (Visual Confirmation) for adding comments
« Reply #168 on: June 24, 2007, 02:29:08 pm »

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
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Captcha (Visual Confirmation) for adding comments
« Reply #169 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.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
Logged
‍I don't answer to PM with support question
Please post your issue to related board

CaptnMorgan

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Captcha (Visual Confirmation) for adding comments
« Reply #170 on: June 24, 2007, 05:45:48 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...
« Last Edit: June 24, 2007, 08:01:47 pm by CaptnMorgan »
Logged

CaptnMorgan

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Captcha (Visual Confirmation) for adding comments
« Reply #171 on: June 24, 2007, 06:04:05 pm »

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;
Code: [Select]
<?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;
Quote
Warning: 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?
« Last Edit: June 24, 2007, 07:59:07 pm by CaptnMorgan »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Captcha (Visual Confirmation) for adding comments
« Reply #172 on: June 24, 2007, 06:39:15 pm »

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
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Captcha (Visual Confirmation) for adding comments
« Reply #173 on: June 24, 2007, 07:48:54 pm »

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
Code: [Select]
      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
« Last Edit: June 24, 2007, 08:00:55 pm by Sami »
Logged
‍I don't answer to PM with support question
Please post your issue to related board

mcmartin

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Captcha (Visual Confirmation) for adding comments
« Reply #174 on: July 02, 2007, 06:30:55 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
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Captcha (Visual Confirmation) for adding comments
« Reply #175 on: July 02, 2007, 07:02:47 am »

Is there a lock for newly registered members to download this zip file?

No!!

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
« Last Edit: July 02, 2007, 07:10:09 am by Sami »
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Captcha (Visual Confirmation) for adding comments
« Reply #176 on: July 03, 2007, 01:42:05 pm »

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
« Last Edit: July 04, 2007, 07:01:15 am by GauGau »
Logged
‍I don't answer to PM with support question
Please post your issue to related board

LuthienMoss

  • Guest
Re: Captcha (Visual Confirmation) for adding comments
« Reply #177 on: July 05, 2007, 12:36:31 am »

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

Where can I find the plugin manager?!
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Captcha (Visual Confirmation) for adding comments
« Reply #178 on: July 05, 2007, 06:37:42 am »

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

Su8Z3r0

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Captcha (Visual Confirmation) for adding comments
« Reply #179 on: July 06, 2007, 11:01:34 pm »

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
Logged
Pages: 1 ... 5 6 7 8 [9] 10 11 12 13 ... 41   Go Up
 

Page created in 0.031 seconds with 21 queries.