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

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

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 3 Guests are viewing this topic.

ronny

#240
The Captcha Plugin V2.0 is displayed but dont work. Can you say me why?
I have the coppermine V1.4.13.

http://galerie.vwteam.com/displayimage.php?pos=-302
http://galerie.vwteam.com/ecard.php?album=7&pid=302&pos=22

by the way im admin and i can see the captcha, but in the codebase.php:

$CAPTCHA_DISABLE = array('login' => 'Administrators,Registered',
        'register' => 'Administrators,Registered',
        'comment' => 'Administrators,Registered',
        'report' => 'Administrators',
        'ecard' => 'Administrators',
        );

Sami

-You're using bridge version so you should put the name of administrators group of the forum (remove "s" from end of Administrators)
- Sorry But you can't use Captcha Plugin with bridged gallery to SMF , cause SMF will discard Captcha's Session and you always get 'wrong confirmation code' error
‍I don't answer to PM with support question
Please post your issue to related board


Sami

I did as you suggested under German support board ;)
known issue/bug added to announcement thread
‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller

Although the plugin is great I'm not happy with the fact that it relies on sessions. The issues ronny had prove that we should not rely on sessions in an environment where we provide interaction with various apps that we have no control over (bridging). As you (Sami) probably are aware, Captcha support has been added to the cpg1.5.x branch as a standard feature. I will have to review the entire approach of the plugin and re-code it. In my opinion, sessions should only be used if we have no other method to track the user. Cookies are much more reliable and we use them anyway; if a user doesn't accept our cookies, he can hardly use coppermine anyway. This being said, I'm going to look into changing the whole captcha stuff. I'm planning to add a check for the additional requirements and a fallback to ascii chars if captchas don't work. Please note that this posting is mainly aimed at Sami and the other devs, so don't expect results in the near future that users of the captcha plugin for cpg1.4.x could actually benefit from.

Abbas Ali

@Joachim: How about using database to store captcha information? Records from captcha table will be deleted if older then say 5 mins.

I guess we should split this thread to take this discussion further.
Chief Geek at Ranium Systems

Sami

@DEVS : See new thread about new captcha implementation idea please
‍I don't answer to PM with support question
Please post your issue to related board

Sami

New release of Captcha plugin (version 3.0)
- Cpatcha code now store to DB instead of Session (this will fix plugin issue with bridged gallery to SMF)
- Documentation improve , described  captcha image setting

Let me know if anything goes wrong !
‍I don't answer to PM with support question
Please post your issue to related board

Sami

Arkadiusz Dylag sent polish translation
surly I'll add it to the next release

Installation:
- Extract polish.zip
- Copy polish.php to lang folder of plugin
‍I don't answer to PM with support question
Please post your issue to related board

Hein Traag

#249
Installed captcha 3.0 on my cpg with the other plugins and it works almost perfect. Somehow captcha does not show up when someone wants to register. Any ideas ?

Sami

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

Hein Traag

Quote from: Sami on September 25, 2007, 11:08:31 AM
Hein , link please ....

My bad.. link is http://fototest.scouting.nl/index.php

Test account, should you need one is test:test

Captcha does show up on the comment and login screen but not on the registration screen.

Sami

It's strange I can't see any issue here !
preg_match can't see the expression (Line #82 $exper) on your register.php output , but when I check I can see it
BTW try this :
edit plugins/captcha/codebase.php
change this (Line #82)

$exper = '(<td colspan="2" align="center" class="tablef">.*
                 .*<input type="submit" name="submit" value="' . $lang_register_php['submit'] . '" class="button" />.*
             .*</td>)';

to this

$exper = '(<td.*>.*\n.*<input type="submit" name="submit".*\n.*</td>)';


Update: changed new exper
‍I don't answer to PM with support question
Please post your issue to related board

misiek21

Installed captcha 3.0 but captcha not show up on the comment, my gallery http://urbanfoto.pl

Sami

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


Hein Traag

Quote from: Sami on September 25, 2007, 02:54:49 PM
It's strange I can't see any issue here !
preg_match can't see the expression (Line #82 $exper) on your register.php output , but when I check I can see it
BTW try this :
change this (Line #82)

$exper = '(<td colspan="2" align="center" class="tablef">.*
                 .*<input type="submit" name="submit" value="' . $lang_register_php['submit'] . '" class="button" />.*
             .*</td>)';

to this

$exper = '(<td.*>.*\n.*<input type="submit" name="submit".*\n.*</td>)';


Update: changed new exper

Sami, thanks. Changing the above mentioned code did it. Captcha now also works on the registration page. Seems to me it is a winner once again.


ff

Updated CPG to 1.4.13 and suddenly I don't get any 'image' with captcha.

http://www.ff.fm/fotoalbum/ uses version 1.7
http://www.xarno.nl/fotoalbum/ uses version 3.0 (upgraded today, because 1.7 didn't show anything)

Both don't give the code to enter.

http://www.ff.fm/fotoalbum/captcha.php gives an empty page
http://www.xarno.nl/fotoalbum/captcha.php gives a critical error `Error fetching from database'.

But http://www.ff.fm/hummeltje/fotoalbum/index.php does work fine.
Both domains are virtual on one server.

---
PHP-info:
GD Support    enabled
GD Version    bundled (2.0.28 compatible)
FreeType Support    enabled
FreeType Linkage    with freetype
GIF Read Support    enabled
GIF Create Support    enabled
JPG Support    enabled
PNG Support    enabled
WBMP Support    enabled
XBM Support    enabled
---

ronny

Quote from: ff on September 30, 2007, 12:42:32 AM
But http://www.ff.fm/hummeltje/fotoalbum/index.php does work fine.

This is the old captcha from Abbas Ali for comments only. Isn´t it?

-------------------------------------------------------------------

I have the same problem. The captcha doesn´t work. Look:
http://galerie.vwteam.com/displayimage.php?album=90&pos=16

After install it was working. Then i changed this:

// create new image
$oPhpCaptcha = new PhpCaptcha(
    $aFonts, // array of TrueType fonts to use
    145, // width of image
    45, // height of image
    5, // number of characters to draw
    0, // number of noise lines to draw
    false, // add shadow to generated characters to further obscure code
    $sOwnerText = 'VWTeam.com Spam-Schutz', // add owner text to bottom of CAPTCHA, usually your site address
    $aCharSet = array(), // array of characters to select from - if blank uses upper case A - Z
    $sBackgroundImage = '' // background image to use - if blank creates image with white background
    );


and it doesn´t work. With the old settings too!  ???
My gallery is bridged with SMF!