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

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.

panatan


Joachim Müller

"Doesn't work" doesn't mean anything and is far from a valid support request. Post a real question, with a link and non-admin test user account

panatan

Question was before

QuoteI've only two plugins : Captcha and Contact Plugin.
But captcha doesn't works if Contact Plugin is installed and "vice versa".
Instead of captcha image, the red cross appears...

Here is my website -http://www.fande-loisirs-creatifs.com
At this moment, only captcha is enabled and works fine but i need contact plugin too.

Hein Traag

on the plugin manager list try setting one of the two first in order of loading. Might help.

François Keller

QuoteAt this moment, only captcha is enabled and works fine but i need contact plugin too.
the Contact use also Captcha verification and i think there is an interference with Tha Captcha plugin.
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

panatan


panatan

Hi all
My problem is always here  :-\

"Captcha Plugin" works alone ; but if "Contact Plugin" is enabled, red cross appears instead of captcha image.

My questions are following :
In "Contact Plugin", is it possible to remove captcha image  ?
Or, is there another "Contact Plugin" without captcha ?

Thank you

François Keller

Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Sami

@Frantz: maybe we should go for new contact plugin ?
‍I don't answer to PM with support question
Please post your issue to related board

socomoroco

#329
please help i can not see confirmation code, and i have GD 2.x (2.0.28 or later is recommended) with Freetype support i just install the captcha plugin.

user test

pedrotest
123456

http://www.huitzuco.org/photo/index.php

http://www.huitzuco.org/photo/captcha.php

http://www.huitzuco.org/photo/plugins/captcha/captcha.php

http://www.huitzuco.org/photo/displayimage.php?album=topn&cat=-314&pos=9


i see confirmation code now.

i just add my group that i did not wanted to see captcha code.

on codebase.php  after adding my user group it work fine

$CAPTCHA_DISABLE = array('login' => 'Administrators',
        'register' => 'Administrators',
        'comment' => 'Administrators',
        'report' => 'Administrators',
        'ecard' => 'Administrators',
        );
    $CAPTCHA_TIMEOUT = 300; // How many sec should passed before we remove the code from database
    require ('plugins/captcha/include/init.inc.php');
    require('plugins/captcha/include/captcha.class.php');

    switch ($_SERVER['PHP_SELF']) {
        case 'login.php':
            $valid_groups = explode(',', $CAPTCHA_DISABLE['login']);
            if (!in_array(USER_GROUP, $valid_groups) OR $CAPTCHA_DISABLE['login'] == 'Administrators') {
                if (isset($_POST['submitted']) AND !Validate($_POST['confirmCode'])) {
                    load_template();
                    pageheader($lang_error, "<META http-equiv=\"refresh\" content=\"3;url=login.php\">");
                    msg_box($lang_error, "$lang_plugin_captcha_error", $lang_continue, 'login.php');
                    pagefooter();
                    exit;
                }
            }
            break;
        case 'register.php':
            $valid_groups = explode(',', $CAPTCHA_DISABLE['register']);
            if (!in_array(USER_GROUP, $valid_groups) OR $CAPTCHA_DISABLE['register'] == 'Administrators') {
                if (isset($_POST['submit']) AND !Validate($_POST['confirmCode'])) {
                    load_template();
                    pageheader($lang_error, "<META http-equiv=\"refresh\" content=\"3;url=register.php\">");
                    msg_box($lang_error, "$lang_plugin_captcha_error", $lang_continue, 'register.php');
                    pagefooter();
                    exit;
                }
            }
            break;
        case 'db_input.php':
            $valid_groups = explode(',', $CAPTCHA_DISABLE['comment']);
            if (!in_array(USER_GROUP, $valid_groups) OR $CAPTCHA_DISABLE['comment'] == 'Administrators') {
                if (isset($_POST['msg_body']) AND !Validate($_POST['confirmCode'])) {
                    load_template();
                    pageheader($lang_error, "<META http-equiv=\"refresh\" content=\"3;url=displayimage.php?pos=" . (- $_POST['pid']) . "\">");
                    msg_box($lang_error, "$lang_plugin_captcha_error", $lang_continue, "displayimage.php?pos=" . (- $_POST['pid']));
                    pagefooter();
                    exit;
                }
            }
            break;
        case 'report_file.php':
            $valid_groups = explode(',', $CAPTCHA_DISABLE['report']);
            if (!in_array(USER_GROUP, $valid_groups) OR $CAPTCHA_DISABLE['report'] == 'Administrators') {
                if (count($_POST) > 0 AND !Validate($_POST['confirmCode'])) {
                    load_template();
                    pageheader($lang_error, "<META http-equiv=\"refresh\" content=\"3;url=report_file.php?album={$_GET['album']}&pid={$_GET['pid']}&pos={$_GET['pos']}\">");
                    msg_box($lang_error, "$lang_plugin_captcha_error", $lang_continue, "report_file.php?album={$_GET['album']}&pid={$_GET['pid']}&pos={$_GET['pos']}");
                    pagefooter();
                    exit;
                }
            }
            break;
        case 'ecard.php':
            $valid_groups = explode(',', $CAPTCHA_DISABLE['ecard']);
            if (!in_array(USER_GROUP, $valid_groups) OR $CAPTCHA_DISABLE['ecard'] == 'Administrators') {
                if (count($_POST) > 0 AND !Validate($_POST['confirmCode'])) {
                    load_template();
                    pageheader($lang_error, "<META http-equiv=\"refresh\" content=\"3;url=ecard.php?album={$_GET['album']}&pid={$_GET['pid']}&pos={$_GET['pos']}\">");
                    msg_box($lang_error, "$lang_plugin_captcha_error", $lang_continue, "ecard.php?album={$_GET['album']}&pid={$_GET['pid']}&pos={$_GET['pos']}");
                    pagefooter();
                    exit;


[Edited by Sami]
Added code block

chickendippers

Valcato Hosting  - 6 years in the business

tomex86


François Keller

Quote from: Sami on November 27, 2007, 07:39:22 AM
@Frantz: maybe we should go for new contact plugin ?
Yes, you're right. But it seems to hard for me for the moment :-\ .
the problem would be resolved with CPG1.5  :)
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

jarodsafehouse71

Quote from: Hein on November 04, 2007, 04:57:39 PM
Do not forget to put captcha.php at the root of your coppermine.


I did that and STILL couldn't get the verification image to load. I had about given up on getting it to work when I noticed where the image was trying to load from ..... my WEBSITE root instead of where it was SUPPOSED to load from .... I changed link in codebase and voila! It worked :D

jsh

tomex86


Nibbler

Check you have the minimum requirements for this plugin, ie. GD 2.x (2.0.28 or later is recommended) with Freetype support


tomex86


François Keller

Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Nibbler