Advanced search  

News:

cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.
[more]

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

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

0 Members and 1 Guest are viewing this topic.

superdave

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: Captcha (Visual Confirmation) for adding comments
« Reply #140 on: April 20, 2007, 05:07:54 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.
Logged

koppie

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Captcha (Visual Confirmation) for adding comments
« Reply #141 on: April 22, 2007, 12:17:04 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?
Logged

superdave

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: Captcha (Visual Confirmation) for adding comments
« Reply #142 on: April 27, 2007, 03:12:47 pm »

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

jult

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Captcha (Visual Confirmation) for adding comments
« Reply #143 on: April 27, 2007, 08:02:09 pm »

Thanks for this plugin, it seems to work wonders!
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Captcha (Visual Confirmation) for adding comments
« Reply #144 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
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Su8Z3r0

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Captcha (Visual Confirmation) for adding comments
« Reply #145 on: May 11, 2007, 02:26:44 pm »

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
« Last Edit: May 11, 2007, 06:08:39 pm by Su8Z3r0 »
Logged

superdave

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: Captcha (Visual Confirmation) for adding comments
« Reply #146 on: May 12, 2007, 03:03:59 am »

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.

:)
Logged

sauvagere

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
    • TAF - Photos
Re: Captcha (Visual Confirmation) for adding comments
« Reply #147 on: May 19, 2007, 09:54:20 pm »

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

sauvagere

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
    • TAF - Photos
Re: Captcha (Visual Confirmation) for adding comments
« Reply #148 on: May 19, 2007, 10:46:31 pm »

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

Jost

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: Captcha (Visual Confirmation) for adding comments
« Reply #149 on: May 23, 2007, 12:40:58 am »

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 :)
« Last Edit: May 23, 2007, 01:04:16 am by Jost »
Logged

Kapitan_Pirula

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Captcha (Visual Confirmation) for adding comments
« Reply #150 on: May 26, 2007, 03:42:07 am »

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
« Last Edit: May 26, 2007, 07:01:52 pm by Kapitan_Pirula »
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 #151 on: May 26, 2007, 04:14:37 pm »

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

Kapitan_Pirula

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Captcha (Visual Confirmation) for adding comments
« Reply #152 on: May 26, 2007, 07:08:26 pm »

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
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Captcha (Visual Confirmation) for adding comments
« Reply #153 on: May 28, 2007, 07:28:04 pm »

@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
Code: [Select]
// 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
Code: [Select]
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
« Last Edit: May 28, 2007, 07:35:27 pm by Sami »
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Kapitan_Pirula

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Captcha (Visual Confirmation) for adding comments
« Reply #154 on: May 29, 2007, 03:10:54 am »

@Kapitan_Pirula :I've got this when I browse captcha.php
Code: [Select]
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
Logged

uvgoth

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 33
    • TheDigitalAngel
Re: Captcha (Visual Confirmation) for adding comments
« Reply #155 on: May 29, 2007, 04:19:05 pm »

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. :)
« Last Edit: May 29, 2007, 07:57:06 pm by uvgoth »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Captcha (Visual Confirmation) for adding comments
« Reply #156 on: May 29, 2007, 04:51:03 pm »

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

uvgoth

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 33
    • TheDigitalAngel
Re: Captcha (Visual Confirmation) for adding comments
« Reply #157 on: May 29, 2007, 07:55:50 pm »

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
Logged

fifo

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Captcha (Visual Confirmation) for adding comments
« Reply #158 on: June 17, 2007, 12:00:18 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 !
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Captcha (Visual Confirmation) for adding comments
« Reply #159 on: June 17, 2007, 12:11:57 am »

check this:
http://fifo.matrixway.cz/gtl/photo/plugins/captcha/captcha.php

Check your GD version it should be 2.0.1 or up
ask your host for support
Logged
‍I don't answer to PM with support question
Please post your issue to related board
Pages: 1 ... 4 5 6 7 [8] 9 10 11 12 ... 41   Go Up
 

Page created in 0.027 seconds with 21 queries.