Advanced search  

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]

Pages: 1 ... 13 14 15 16 [17] 18 19 20 21 ... 41   Go Down

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

0 Members and 1 Guest are viewing this topic.

panatan

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 92
Re: Captcha (Visual Confirmation) for adding comments
« Reply #320 on: November 25, 2007, 01:26:21 pm »

Doesn't works anymore, what else  ::)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Captcha (Visual Confirmation) for adding comments
« Reply #321 on: November 25, 2007, 01:28:17 pm »

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

panatan

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 92
Re: Captcha (Visual Confirmation) for adding comments
« Reply #322 on: November 25, 2007, 03:01:55 pm »

Question was before

Quote
I'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.
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Captcha (Visual Confirmation) for adding comments
« Reply #323 on: November 25, 2007, 05:28:15 pm »

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

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9097
  • aka Frantz
    • Ma galerie
Re: Captcha (Visual Confirmation) for adding comments
« Reply #324 on: November 25, 2007, 05:48:35 pm »

Quote
At 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.
Logged
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

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 92
Re: Captcha (Visual Confirmation) for adding comments
« Reply #325 on: November 25, 2007, 07:11:34 pm »

Probably yes
Logged

panatan

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 92
Re: Captcha (Visual Confirmation) for adding comments
« Reply #326 on: November 26, 2007, 09:47:05 pm »

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
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9097
  • aka Frantz
    • Ma galerie
Re: Captcha (Visual Confirmation) for adding comments
« Reply #327 on: November 27, 2007, 07:15:35 am »

Logged
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

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Captcha (Visual Confirmation) for adding comments
« Reply #328 on: November 27, 2007, 07:39:22 am »

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

socomoroco

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Captcha (Visual Confirmation) for adding comments
« Reply #329 on: November 27, 2007, 10:42:30 pm »

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

Code: [Select]
$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
« Last Edit: November 28, 2007, 06:15:21 am by Sami »
Logged

chickendippers

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
    • Valcato Hosting
Re: Captcha (Visual Confirmation) for adding comments
« Reply #330 on: November 28, 2007, 12:25:09 am »

Great script, many thanks :)

Got it working easilly at http://www.cncworld.org/gallery/
Logged
Valcato Hosting  - 6 years in the business

tomex86

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
Re: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecar
« Reply #331 on: December 04, 2007, 04:28:53 pm »

not to login on my page http://www.galeria-ts.yoyo.pl/login.php?referer=index.php code does not appear.  My English it is not good, apologize.
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9097
  • aka Frantz
    • Ma galerie
Re: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecar
« Reply #332 on: December 04, 2007, 04:33:24 pm »

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

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
Re: Captcha (Visual Confirmation) for adding comments
« Reply #333 on: December 04, 2007, 07:10:23 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
Logged

tomex86

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
Re: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecar
« Reply #334 on: December 04, 2007, 08:30:00 pm »

its copy captcha.php at the root folder still noting http://www.galeria-ts.yoyo.pl/captcha.php
Logged

Nibbler

  • Guest
Re: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard
« Reply #335 on: December 04, 2007, 08:33:49 pm »

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

tomex86

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
Re: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecar
« Reply #336 on: December 04, 2007, 08:57:54 pm »

I have GD 2.x
Logged

tomex86

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
Re: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecar
« Reply #337 on: December 04, 2007, 09:16:50 pm »

how to remove this plugin to normally login
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9097
  • aka Frantz
    • Ma galerie
Re: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecar
« Reply #338 on: December 04, 2007, 10:06:44 pm »

in the plugins database table, delete the captcha entry
Logged
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

  • Guest
Re: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard
« Reply #339 on: December 04, 2007, 11:49:08 pm »

You should uninstall using the plugin manager.
Logged
Pages: 1 ... 13 14 15 16 [17] 18 19 20 21 ... 41   Go Up
 

Page created in 0.039 seconds with 20 queries.