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 ... 17 18 19 20 [21] 22 23 24   Go Down

Author Topic: Captcha (Visual Confirmation) for adding comments  (Read 531647 times)

0 Members and 1 Guest are viewing this topic.

____Alma____

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 3
    • Alma web
Re: Captcha (Visual Confirmation) for adding comments
« Reply #400 on: July 07, 2007, 01:48:25 pm »

Ohhhh has been a failure mio, the captcha works perfectly, the image is that on having been given I from discharge to was not leaving for no site, not me ocurrión to enter as anonymous user...
You forgive for all the inconveniences.
Many people thank you very much for everything and also for this so necessary and interesting plugin.
Regards from Spain!!
Logged

X-Korpio

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 2
    • EnterateNorte.com
Re: Captcha (Visual Confirmation) for adding comments
« Reply #401 on: July 24, 2007, 09:52:28 am »

Greetings! Im using the newes CM gallery, and follow all the steps publish here, and apearantly it works but it dosnt show the numbers inside the image, I can see the field, and I when I press on OK its sayes the " Confirmation code didn't matched ", what did I did wrong?

http://www.klaudette.com/galeria/displayimage.php?album=7&pos=0
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Captcha (Visual Confirmation) for adding comments
« Reply #402 on: July 24, 2007, 10:05:37 am »

If you open http://www.klaudette.com/galeria/captcha.php, you will see the errors. Apparently there was a bug in PHP documentation.

To remove those warnings -
Edit captcha.class.php and replace

Code: [Select]
$aCharDetails = imageftbbox($iFontSize, $iAngle, $sCurrentFont, $this->sCode[$i]);

with

Code: [Select]
$aCharDetails = imageftbbox($iFontSize, $iAngle, $sCurrentFont, $this->sCode[$i], array());

and replace

Code: [Select]
imagefttext($this->oImage, $iFontSize, $iAngle, $iX, $iY, $iTextColour, $sCurrentFont, $this->sCode[$i]);

with

Code: [Select]
imagefttext($this->oImage, $iFontSize, $iAngle, $iX, $iY, $iTextColour, $sCurrentFont, $this->sCode[$i], array());

That should do the trick.
Logged
Chief Geek at Ranium Systems

ComputerLady

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 23
    • Design COMP
Re: Captcha (Visual Confirmation) for adding comments
« Reply #403 on: August 04, 2007, 09:36:17 pm »

I've been struggling with adding this MOD for a while now, since being told I can't use the plug-in version as my install is bridged with SMF.

The instructions at the head of this thread for installing this MOD seem incomplete. For example, the earliest instructions state:
Quote
Edit themes/yourtheme/theme.php

Add
Code:

'{CONFIRM}' => $lang_display_comments['confirm'],


just after
Code:

'{COMMENT}' => $lang_display_comments['comment'],


Add
Code:

<tr>
  <td class="tableb_compact" colspan="2">
    {CONFIRM}
  </td>
  <td class="tableb_compact" colspan="2">
    <input type="text" name="confirmCode" size="5" class="textinput"> <img src="captcha.php" align="middle">
  </td>
</tr>


just after
Code:

<!-- END input_box_no_smilies -->
                                </td>
                                <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>

Yet, when I look at my themes/yourtheme/theme.php file (based on the Classic theme), I see only this:

Code: [Select]
<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2007 Coppermine Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.4.12
  $Source$
  $Revision: 3636 $
  $Author: gaugau $
  $Date: 2007-06-29 11:35:30 +0200 (Fr, 29 Jun 2007) $
**********************************************/

// ------------------------------------------------------------------------- //
// This theme has all CORE items removed                                     //
// ------------------------------------------------------------------------- //
define('THEME_IS_XHTML10_TRANSITIONAL',1);

?>


No
Code: [Select]
'{COMMENT}' => $lang_display_comments['comment'], string that I can see, nor any

Code: [Select]
<!-- END input_box_no_smilies -->
                                </td>
                                <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>

There also appears to be a LOT of changes to the original instructions provided in this thread, yet the instructions at the head of the thread have not been updated to reflect those changes. In short, I don't see how to modify my install to use this MOD at this time. Thanks for your time...
Logged

Nibbler

  • Guest
Re: Captcha (Visual Confirmation) for adding comments
« Reply #404 on: August 04, 2007, 10:39:39 pm »

Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Captcha (Visual Confirmation) for adding comments
« Reply #405 on: August 05, 2007, 06:02:35 am »

@Nibbler
Sorry but she can't cause her gallery is bridged with SMF and plugin doesn't work with SMF and joomla bridge

@ComputerLady
If you can't find codes on your theme.php then you should copy them from themes/sample/theme.php
In your situation you should
- Copy & Paste $template_add_your_comment variable (starting by $template_add_your_comment = <<<EOT and ending by EOT;)
- Copy & paste theme_html_comments($pid) function
Logged
‍I don't answer to PM with support question
Please post your issue to related board

eka

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
Re: Captcha (Visual Confirmation) for adding comments
« Reply #406 on: August 14, 2007, 02:51:16 am »

Hi,

I had earlier used Abbas' captcha codes to install this feature.
It worked very well.  Thank you guys !

I recently installed the Tagblitz plug-in.
I got an error - a box with a red cross in the place where the captcha code should appear.
See:  http://www.photograffs.com/displayimage.php?pos=-1509

can anybody help resolve this problem.
(I had earlier posted this problem under tagblitz topic.
I'm not trying to cross-post.  But I guess it is more appropriate under this topic).

I'm no good in php.
Anybody can help?

Thanks.
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Captcha (Visual Confirmation) for adding comments
« Reply #407 on: August 14, 2007, 06:10:44 am »

The problem is Tagblitz plug-in , it's injecting javascript to Captcha image and break it

can anybody help resolve this problem.
(I had earlier posted this problem under tagblitz topic.
I'm not trying to cross-post.  But I guess it is more appropriate under this topic).

Actually you did cross-post
For now you can disable tagblitz and wait for it to solve the problem
Logged
‍I don't answer to PM with support question
Please post your issue to related board

eka

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
Re: Captcha (Visual Confirmation) for adding comments
« Reply #408 on: August 14, 2007, 06:39:57 am »

Thank you Sami.
I'll wait for the solution.  :)

Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Captcha (Visual Confirmation) for adding comments
« Reply #409 on: August 27, 2007, 10:01:12 am »

Split and Moved unrelated reply to this thread by nokc
Logged
‍I don't answer to PM with support question
Please post your issue to related board

JohnM-UK

  • Guest
Re: Captcha (Visual Confirmation) for adding comments
« Reply #410 on: September 03, 2007, 06:35:56 pm »

Hi I tried to install this mod because even with a code users had to type (taken from a static image) I was still getting spam. Theres so much code to add in alot of files for this mod its difficult for someone without alot of php knowledge, and in some files where it says 'Add........ After........' Somethimes the code doesnt exist.
I then downloaded the 'plugin' by Sami and it said about using plugin manager to install it. Where do I find this or is it something I have to install to my gallery?
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Captcha (Visual Confirmation) for adding comments
« Reply #411 on: September 04, 2007, 06:49:26 am »

Ask captcha plugin related questions in the respective plugin thread.
Logged
Chief Geek at Ranium Systems

eka

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
Re: Captcha (Visual Confirmation) for adding comments
« Reply #412 on: September 05, 2007, 07:49:29 am »

Hi,

I used Abbas Captcha for my site by amending the codes (before the plugin version came out).
I then upgraded my cpg to 1.4.12.
The captcha feature disappeared but the comment box was left intact.

Would it cause any problem now if I load the captcha plugin now?
Do I need to delete some lines in the code... before uploading the plug? and if so what lines....

Pse advice.
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Captcha (Visual Confirmation) for adding comments
« Reply #413 on: September 05, 2007, 08:58:29 am »

After upgrade did you preserved db_input.php and theme files from your previous version? I mean while upgrading did you overwrote all previously modified files? If yes then you can apply the plugin straightaway. But if you had preserved the old modified files then the captcha mod code should be removed from them before installing the plugin.
Logged
Chief Geek at Ranium Systems

Jochus

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Captcha (Visual Confirmation) for adding comments
« Reply #414 on: September 09, 2007, 12:27:37 pm »

Is it possible to use Captcha for the reporting of pictures to the admin? Because I receive several SPAM mails a day.

I tried captcha and it works perfect in combination with my comments, but not for my reports ...
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Captcha (Visual Confirmation) for adding comments
« Reply #415 on: September 11, 2007, 09:54:31 am »

Yes it is possible to use captcha anywhere we are getting the user input. Please start a separate thread for this though as this thread deals with captcha for comments only.
Logged
Chief Geek at Ranium Systems

Jochus

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Captcha (Visual Confirmation) for adding comments
« Reply #416 on: September 11, 2007, 01:35:07 pm »

Okay, thnx
Logged

Master of Orion

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • Wonderful China
Re: Captcha (Visual Confirmation) for adding comments
« Reply #417 on: November 06, 2007, 12:44:35 pm »

Can you post the last version of Captcha

scottcrew

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 29
  • God Bless!
    • Scottcrew Web Services
Re: Captcha (Visual Confirmation) for adding comments
« Reply #418 on: November 06, 2007, 01:49:38 pm »

The latest version of CATPCHA is at:
http://forum.coppermine-gallery.net/index.php?topic=36319.0

HTH!
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 #419 on: November 06, 2007, 02:47:15 pm »

@ Master of Orion: stop cluttering this board by requesting "the most recent version" of mods. The most recent versions already exist in the mod threads. Don't be lazy, read the threads and you should be good. Mods don't need to get adapted to minor version updates (e.g. from cpg1.4.13 to cpg1.4.14), you just have to re-apply the mod after updating, that's all.
Logged
Pages: 1 ... 17 18 19 20 [21] 22 23 24   Go Up
 

Page created in 0.029 seconds with 19 queries.