Captcha (Visual Confirmation) for adding comments - Page 8 Captcha (Visual Confirmation) for adding comments - Page 8
 

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 adding comments

Started by Abbas Ali, March 25, 2006, 08:39:59 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

peter2


Tnx Abbas for answer.

I checked fonts folder, and it is OK.

Php info:

GD Support   enabled
GD Version    bundled (2.0.12 compatible)
FreeType Support    enabled
FreeType Linkage    with freetype
GIF Read Support    enabled
JPG Support    enabled
PNG Support    enabled
WBMP Support    enabled
XBM Support    enabled

Any other ideas  ???

Abbas Ali

Chief Geek at Ranium Systems

peter2

I reupload fonts folder.

It contains files:
09-17-06  10:11AM               126492 acidic.ttf
09-17-06  10:11AM                24048 hurryup.ttf

Still not working...


Sami

‍I don't answer to PM with support question
Please post your issue to related board


atnika

I personally was unable to make Ali's captcha mod working on my website, so I made another captcha mod for myself

http://forum.coppermine-gallery.net/index.php?topic=36339.0


Loïc

OK, 1st, thanx for this mod.

I tried to install it, but all I got is a beautifull red cross instead of the code...

Any idea of what may be wrong?

A link: http://presquile.crozon.free.fr/coppermine/displayimage.php?album=topn&cat=0&pos=4

Abbas Ali

It works fine with english as lang http://presquile.crozon.free.fr/coppermine/displayimage.php?album=topn&cat=0&pos=4&lang=english

That means some blank line is getting outputted in your lang/french.php file.
Chief Geek at Ranium Systems

Loïc

OK, I was wondering why the error message was in english... That should be the same reason. I'll chek the file...

Thanx a lot, Abbas...  :)

Loïc

OK, I modified the french.php file as told in the very 1st message but it doesn't work. The red cross and english error message again...  ???

Loïc


Loïc

Grrr I didn't find how to edit my message...

In fact it doesn't work in french. I don't understand why...  ???

Abbas Ali

Remove the following line from captcha.php file and see whether it works or not.


require("include/init.inc.php");
Chief Geek at Ranium Systems

paul1959

Quote from: Loïc on September 21, 2006, 03:50:54 PM
Grrr I didn't find how to edit my message...

In fact it doesn't work in french. I don't understand why...  ???

Hi Loic,

I had the same problem using the Dutch lang file. Try to save your lang file with Ansi encoding. Seems strange but it worked for me!

Loïc


Loïc

Quote from: paul1959 on September 22, 2006, 09:28:12 AM
Hi Loic,

I had the same problem using the Dutch lang file. Try to save your lang file with Ansi encoding. Seems strange but it worked for me!

I did what Abbas said and it works now. But your tips sounds good too since it definitly looks like a character bug (see the discussion about that bug in the french forum if you can read french)...

Anyway, thanx for your tip!  :)

Pascal YAP

Abbas,
Good Day
QuoteRemove the following line from captcha.php file and see whether it works or not.
require("include/init.inc.php");
bzzzzz Too Strong  ???
Nice idea  ;D

PYAP

Abbas Ali

I thought why not remove the root cause (i.e. lang file). If init.inc.php is not included then lang file is also not included on captcha.php. This won't hamper the captcha in any way.
Chief Geek at Ranium Systems

peter2


I finally solved the problem... I hope..  :)

I had to add last parameter to functions imagefttext and imageftbbox (in captcha.class.php), because it is not optional in PHP Version 4.3.2

So, I changed file captcha.class.php

from:
$aCharDetails = imageftbbox($iFontSize, $iAngle, $sCurrentFont, $this->sCode[$i]);

To:
$aCharDetails = imageftbbox($iFontSize, $iAngle, $sCurrentFont, $this->sCode[$i],array());

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

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

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

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

I hope this is OK  :-\

Tnx

http://petersfoto.s5.net/

wfs

Hello Abbas,

thank you for the great mod for adding comments.

I did exactly according to your instructions.

the mod worked perfectly - thank you !

but I encountered a problem somewhere else - the tabs at the bottom of the page now spans across the entire page instead of the usual small squares located at the right hand corner.

I'd like the tabs like they were previously before I added the mod.

did I do something wrong?

pse help.

thanks so much.