Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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

Author Topic: Captcha (Visual Confirmation) for adding comments  (Read 586511 times)

0 Members and 2 Guests are viewing this topic.

peter2

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
    • Peter S foto
Re: Captcha (Visual Confirmation) for adding comments
« Reply #140 on: September 17, 2006, 08:30:06 am »


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  ???
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 #141 on: September 17, 2006, 09:23:48 am »

Remove the font files and reupload fresh ones.
Logged
Chief Geek at Ranium Systems

peter2

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
    • Peter S foto
Re: Captcha (Visual Confirmation) for adding comments
« Reply #142 on: September 17, 2006, 10:20:11 am »

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

Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Logged
‍I don't answer to PM with support question
Please post your issue to related board

peter2

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
    • Peter S foto
Logged

atnika

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 5
    • Recly Interactive, LLC
Re: Captcha (Visual Confirmation) for adding comments
« Reply #145 on: September 18, 2006, 08:12:43 am »

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

Logged

Loïc

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 165
Re: Captcha (Visual Confirmation) for adding comments
« Reply #146 on: September 20, 2006, 10:49:14 pm »

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
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 #147 on: September 21, 2006, 01:43:18 pm »

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.
Logged
Chief Geek at Ranium Systems

Loïc

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 165
Re: Captcha (Visual Confirmation) for adding comments
« Reply #148 on: September 21, 2006, 03:27:12 pm »

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

Loïc

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 165
Re: Captcha (Visual Confirmation) for adding comments
« Reply #149 on: September 21, 2006, 03:38:20 pm »

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

Loïc

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 165
Re: Captcha (Visual Confirmation) for adding comments
« Reply #150 on: September 21, 2006, 03:45:41 pm »

It works ok, now.

Thanx again!  ;)
Logged

Loïc

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 165
Re: Captcha (Visual Confirmation) for adding comments
« Reply #151 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...  ???
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 #152 on: September 22, 2006, 08:54:53 am »

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

Code: [Select]
require("include/init.inc.php");
Logged
Chief Geek at Ranium Systems

paul1959

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Captcha (Visual Confirmation) for adding comments
« Reply #153 on: September 22, 2006, 09:28:12 am »

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!
Logged

Loïc

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 165
Re: Captcha (Visual Confirmation) for adding comments
« Reply #154 on: September 22, 2006, 09:29:35 am »

Thanx Abbas, it works!  ;)
Logged

Loïc

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 165
Re: Captcha (Visual Confirmation) for adding comments
« Reply #155 on: September 22, 2006, 09:33:18 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!  :)
Logged

Pascal YAP

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 13833
  • Hello World :-)
    • CPG 1.5.x ExperiMental website
Re: Captcha (Visual Confirmation) for adding comments
« Reply #156 on: September 22, 2006, 11:03:54 am »

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

PYAP
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 #157 on: September 22, 2006, 11:39:37 am »

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.
Logged
Chief Geek at Ranium Systems

peter2

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
    • Peter S foto
Re: Captcha (Visual Confirmation) for adding comments
« Reply #158 on: September 26, 2006, 08:54:04 pm »


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:
Code: [Select]
$aCharDetails = imageftbbox($iFontSize, $iAngle, $sCurrentFont, $this->sCode[$i]);
To:
Code: [Select]
$aCharDetails = imageftbbox($iFontSize, $iAngle, $sCurrentFont, $this->sCode[$i],array());
from:
Code: [Select]
imagefttext($this->oImage, $iFontSize, $iAngle, $iX, $iY, $iTextColour, $sCurrentFont, $this->sCode[$i]);
to:
Code: [Select]
imagefttext($this->oImage, $iFontSize, $iAngle, $iX, $iY, $iTextColour, $sCurrentFont, $this->sCode[$i],array());
from:
Code: [Select]
imagefttext($this->oImage, $iFontSize, $iOffsetAngle, $iX + $iRandOffsetX, $iY + $iRandOffsetY, $iShadowColour, $sCurrentFont, $this->sCode[$i]);
to
Code: [Select]
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/
Logged

wfs

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 95
Re: Captcha (Visual Confirmation) for adding comments
« Reply #159 on: October 11, 2006, 04:11:29 am »

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.

Logged
Pages: 1 ... 4 5 6 7 [8] 9 10 11 12 ... 24   Go Up
 

Page created in 0.026 seconds with 20 queries.