Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard - Page 8 Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard - 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 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.

superdave

Quote from: GauGau on April 20, 2007, 04:59:39 PM
@Superdave and everybody else who has issues and asks for help:

Don't even bother to post here if you're not going to post a link to your gallery and a non-admin test user account. Just posting "I have issues" is not helpfull.

fair point mate!! sorry.

ok ... here's my site: http://www.super-dave.com (it opens to the coppermine gallery)

i'm using V1.7 of the captcha comment plugin (found in the first thread). i've got a few other plugins installed, but i've not modified the script. my version of coppermine is up to date.

i can't seem to get the confirmation code to work. it always says "confirmation code didn't match" ...

thanks for the help.

koppie

Quote from: GauGau on April 20, 2007, 04:59:39 PM
@Superdave and everybody else who has issues and asks for help:

Don't even bother to post here if you're not going to post a link to your gallery and a non-admin test user account. Just posting "I have issues" is not helpfull.

I did!  http://forum.coppermine-gallery.net/index.php?topic=36319.msg203048#msg203048  17 days later, I know people are reading this thread, but no one wants to help me?  (It's true I didn't post a non-admin test user, but since Captcha only works if you're not logged in, what's the point of that?)

Anyway I solved the problem on my own and I thought I'd post it here for the other people who are having this problem.  I think my problem was that I was using my own custom theme.  It was based on the "Classic" theme which doesn't have any CORE functions in theme.php. 

The solution: use the captcha mod, not the plugin.  The mod instructions helped me identify the CORE functions I needed, I copied those over from "Sample" theme and edited them according to the Captcha instructions.  I have almost no PHP experience but I was still able to get it working in under half an hour.

Thanks to your wonderful plugin, I can allow comments on my gallery once again.  Thank you!

PS: It seems that there are at least two different issues: image display and captcha denial.  Maybe we should have two threads?

superdave

hey koppie

i'm glad you got it working ... but installing the full mod doesn't fix the problem with the plugin.

i don't want to use the full mod, because it means editing the theme.php file of every theme i want to use. globally, it's not beneficial to me to hardcode the mod into each theme. hence the desire to use the plugin.

but nobody's posted a solution or workaround to the error.

i'm not the only one getting this error ... so i'd be happy if someone was interested in having a look at the problem.

jult

Thanks for this plugin, it seems to work wonders!

Sami

After some investigations on  superdave's server I've found that the problem was PHP configuration
if you are using relative path, something like ./ for session.save_path then you can't use this plugin , codding structure of plugin API would cause to session lost for those who use relative path for session save path

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

Su8Z3r0

#145
Hi, Was wondering is there a way to add a BACK or Continue button under the  Confirmation code didn't match?. Or something along them lines. even autorefresh continue maybe.
Very nice plugin btw

thanks


ricky

superdave

Quote from: Sami on April 30, 2007, 03:36:06 PM
After some investigations on  superdave's server I've found that the problem was PHP configuration
if you are using relative path, something like ./ for session.save_path then you can't use this plugin , codding structure of plugin API would cause to session lost for those who use relative path for session save path

use captcha MOD instead

yeah ... thanks for all your help sami. i solved the problem with a php.ini file in the root of the coppermine directory. i pointed to a new folder where it could save session data and now the plugin works fantastically!!

i didn't want to use the mod because i'd like to be able to change themes without having to recode the captcha every time ... so i love plugins. they're a great solution!

thanks again ... hope this is helpful to other people who have similar problems.

:)

sauvagere

Hello !

i have some pb with this plug-in

Install plug-in : OK, But no code font could be seen
Install mod : OK, But no code font could be seen too

My webhost support freefont.
I saw on the french forum that i must create a subfolder sessions + comment a ligne in captcha.class.php
I do and it's working, the code is now here !

But when i write a comment + the code, and clik on OK, i've got now : Confirmation code didn't matched 

My web site : http://sauvageree.free.fr/BestOfPhotos/

sauvagere

i'am now running with the plug-in, but it's doesn't work...

Jost

#149
I got Coppermine 1.4.10 running with some captcha cdode - (captcha mod by  Abbas Ali)
I got that one deinstalled and  tried to install the plugin with the new codebase - it works like a charm for the registrations - but the captcha image for the comments doesnt appear anymore.

the page is  www.globalcomicjam.com , you can use the user coppermine_help PW: test42

thanks for all the help and work you gave so far - would really appreciate your ideas on that one :)

Kapitan_Pirula

#150
after install the plugin y have a problem.

when i see the displayimage.php y can't see the image with the code captcha.

i have active the debug mode and the debug information is this:



Alertas
/plugins/captcha/include/init.inc.php
Notice line 24: Undefined variable: CONFIG
/include/themes.inc.php
Notice line 2196: Undefined index: uid
Notice line 1899: Undefined index: uid
/include/functions.inc.php
Notice line 1499: Undefined variable: query_term
/displayimage.php
Notice line 319: Undefined variable: meta_keywords


two weeks ago i updated the copermine 1.3.0 to 1.4.10

thank's

Joachim Müller

Don't post debug_output unless a supporter explicitely asks for it. Leave notices_display turned off unless you understand what the notices mean.
Instead of posting all this invalid information, post a link to your site after having read this entire thread. Check if you have the minimum requirements for this mod.

Kapitan_Pirula

Sorry but i don´t speak english very well. It's dificult to me to read all this thread. I had read something y i saw that te other people post de debug_output

My gallery is http://www.fran206.com/galeria/index.php

where i can find the minimum requirements for the mod?? the readme.txt didn'e say nothing about minimum requirements

i dont undertand your comment: Leave notices_display turned off unless you understand what the notices mean

thanks

Sami

#153
@sauvagere : It seems that you solved your problem , it would be good for others to describe your solution , thank you

@:Jost : you are using custom template for comment (I'm not familiar with mod pack but it could be it's template engine) and plugin couldn't find your comment block to replace , you have 3 way to solve this problem :
1)Copy & past original comment template form original CPG's themes.inc.php (not modpack) to your theme.php
something like this

// HTML template for the form to add comments
if (!isset($template_add_your_comment))  //{THEMES}
$template_add_your_comment = <<<EOT
        <form method="post" name="post" action="db_input.php">
                <table align="center" width="{WIDTH}" cellspacing="1" cellpadding="0" class="maintable">
                        <tr>
                                        <td width="100%" class="tableh2_compact"><b>{ADD_YOUR_COMMENT}</b></td>
                        </tr>
                        <tr>
                <td colspan="1">
                        <table width="100%" cellpadding="0" cellspacing="0">

<!-- BEGIN user_name_input -->
                                                        <tr>
                                                                <td class="tableb_compact">
                                        {NAME}
                                </td>
                                <td class="tableb_compact">
                                        <input type="text" class="textinput" name="msg_author" size="10" maxlength="20" value="{USER_NAME}" />
                                </td>
<!-- END user_name_input -->
<!-- BEGIN input_box_smilies -->
                                <td class="tableb_compact">
                                {COMMENT}
                                                                </td>
                                <td width="100%" class="tableb_compact">
                                <input type="text" class="textinput" id="message" name="msg_body" onselect="storeCaret_post(this);" onclick="storeCaret_post(this);" onkeyup="storeCaret_post(this);" maxlength="{MAX_COM_LENGTH}" style="width: 100%;" />
                                                                </td>
<!-- END input_box_smilies -->
<!-- BEGIN input_box_no_smilies -->
                                <td class="tableb_compact">
                                {COMMENT}
                                                                </td>
                                <td width="100%" class="tableb_compact">
                                <input type="text" class="textinput" id="message" name="msg_body"  maxlength="{MAX_COM_LENGTH}" style="width: 100%;" />
                                </td>
<!-- END input_box_no_smilies -->
                                <td class="tableb_compact">
                                <input type="hidden" name="event" value="comment" />
                                <input type="hidden" name="pid" value="{PIC_ID}" />
                                <input type="submit" class="comment_button" name="submit" value="{OK}" />
                                </td>
                                                        </tr>
                        </table>
                </td>
        </tr>
<!-- BEGIN smilies -->
        <tr>
                <td width="100%" class="tableb_compact">
                        {SMILIES}
                </td>
        </tr>
<!-- END smilies -->
                </table>
        </form>
EOT;


2)Edit plugin's codebase.php file and change reg. expression
3)Use Captcha MOD instead of this plugin

@Kapitan_Pirula :I've got this when I browse captcha.php

Fatal error: Call to undefined function: imageftbbox() in /home/html/galeria/plugins/captcha/include/captcha.class.php


It says that you don't have one of php's function (imageftbbox) installed, probably your host disable it , ask for support from host
‍I don't answer to PM with support question
Please post your issue to related board

Kapitan_Pirula

Quote from: Sami on May 28, 2007, 07:28:04 PM
@Kapitan_Pirula :I've got this when I browse captcha.php

Fatal error: Call to undefined function: imageftbbox() in /home/html/galeria/plugins/captcha/include/captcha.class.php


It says that you don't have one of php's function (imageftbbox) installed, probably your host disable it , ask for support from host

i have intall the gallery with the captcha plugin in another server and it works. The problem is the GD version. In the fisrt i have the version 2.0 and in the second i have 2.0.1. This is the problem.

Thanks for your help

uvgoth

#155
Having a great deal of trouble with this plugin as says it's installed on pluginmgr but it's not showing the captcha pictures allowing the spammers to continue to irritate me!

I did try the mod version as I have a customised theme but didn't have the theme.php scripts on my theme.php file. The mod didn't appear to work, probably because of this.

I hope someone can help me. :)

Sami

your page seems ok to me !!!
plugin works and I see the [captcha] picture
What kind of spam did you get ?
‍I don't answer to PM with support question
Please post your issue to related board

uvgoth

The usual same stuff over and over again.

I'm feeling very silly as forgot to sign out before checking.  ::)

My own fault being very sleepy so it does all work. :D

fifo

Quote from: Abbas Ali on September 17, 2006, 09:40:55 AM
It has been added to the core (cpg1.5) :)

please could you help me solving my troubles with this plugin ? I have only "cross" instead of captcha picture. I used this latest plugin.  ???
Gallery can be found here http://fifo.matrixway.cz/gtl/photo/displayimage.php?album=topn&cat=-3&pos=0  ::)

thx !

Sami

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