Captcha (Visual Confirmation) for adding comments - Page 22 Captcha (Visual Confirmation) for adding comments - Page 22
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Captcha (Visual Confirmation) for adding comments

Started by Abbas Ali, March 25, 2006, 08:39:59 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

chillivanilla

I've searched through the boards but can't find a definitive answer as to the whether Captcha code can be used when the SMF bridge is in place. I appreciate that the Captcha plugin can't be used but can the Capcha functionality be used when the mod is coded manually in this situation?


Joachim Müller

The captcha mod (the thread you've posted in) can not cope with bridging to SMF enabled because SMF's session will break the captcha session. The most recent version of the captcha plugin should be capable for use with SMF bridging. See Captcha (Visual Confirmation) for adding comments

hozyali

Hello,

I have this mod installed and was working fine on old versions, after upgrade to 1.4.16, it has stopped working. it shows the image but does not validate. even accepts as empty. Please advise.

Regards
Ali

Abbas Ali

Make sure you have made changes in db_input.php properly.
Chief Geek at Ranium Systems

hozyali

Quote from: Abbas Ali on February 15, 2008, 05:38:46 AM
Make sure you have made changes in db_input.php properly.

Thank you Abbas Bhai...

Do you mean, I will have to redo the steps for db_input.php file?

Thanks for your help.

Regards
Huzaifa Ali

Abbas Ali

Chief Geek at Ranium Systems

cgc0202

Hi Abbas.

Thanks for the plugin. Using the theme.php you provided, and the the changes to the other files --the captcha  worked for the registration and login.  This is what I need most.

However, I am having problems with it in terms of its use in comments.  I tried it so many times and I get this error:


Fatal error: Cannot redeclare class phpcaptcha in /home/totinet/public_html/phi/gphi000/include/captcha.class.php on line 13

Here is a Demo page using a fresh install of the version 1.4.16 -- also with its own problem. 

If possible, is there something that could be done so I do not have to use it for comments?  Only those who are logged in (thus also registered may comment.

Thanks.

Cornelio

P.S.
It seems to have compatibility issues also with other scripts, but I will place this as a separate respnse later.

hozyali


Abbas Ali

@cgc020: There is a setting on admin groups manager page to turn comments off for guests. Perhaps you are looking for that. Also you said that you tried this plugin - This is not a plugin but a mod. There is a separate captcha plugin. Are you using that? Perhaps you should use that plugin as it does not requires and code changes.
Chief Geek at Ranium Systems

andye

I am also getting the error:

Fatal error: Cannot redeclare class phpcaptcha in /home/andyely/public_html/members/include/captcha.class.php on line 14

Any advice would be greatly received.

rooty

Has anyone had any luck integrating Captcha into Foliage?

rooty

Quote from: rooty on February 27, 2008, 10:40:09 PM
Has anyone had any luck integrating Captcha into Foliage?

Errr....sorry, ignore that post; I had thought I was using the plugin, but in fact later realized that there is a plugin AND a mod, and I was using the mod. Plugin works beautifully with Foliage theme.

skmdd

Thanks for the nice mod. I got this working in first shot. (http://decoratingdesktop.com)
My site reports 500-600 spam comments. My site now is cleaner.

aftab1003

that freat, i have done in one shot tooo at http://www.picturerating.us/picture-gallery/index.php

but 1 thing i noticed, that with cookies, the commenter can edit or delete the own comment till the site cookie stay in his/her PC.
is it possible to stay away from visitors from their own comments?
if yes, then how we can do this.
thanks for your nice mod ;D

Abbas Ali

This thread only deals with captcha mod. Your question is beyond the scope of this thread.
Chief Geek at Ranium Systems

Ludo

#435
It's been a hard time, but finally I've managed to get this mod working   8)

Just a suggestion: for the validation to work properly I had to move the line
require("include/captcha.class.php");
at the beginning of db_input.php (just before the other requires): before, the confirmation code appeared but guests could post comments even without entering nothing (or a wrong code). I guess the session couldn't start, because of some PHP code already executed by the file.
As I noticed that other posters had to face this bug, maybe it can be useful to edit the installation instructions accordingly...

Ludo

#436
I modded the mod  ;D to show confirmation code to guests only.
I don't know if this is the better way (any comment appreciated) but it works  ;D
(Edit: I just noticed a similar hack previously posted: I think mine is lighter and more compliant with CPG code structure)

These edits require mod already in place.

OPEN
db_input.php

FIND (line 117)
if (!PhpCaptcha::Validate($_POST['confirmCode'])) {

REPLACE WITH
if (!(USER_ID) && !PhpCaptcha::Validate($_POST['confirmCode'])) {


OPEN
themes/your_theme/theme.php

FIND (in $template_add_your_comment)
                                <tr>                       
                                  <td class="tableb_compact" colspan="3">
                                    {CONFIRM}


BEFORE, ADD
<!-- BEGIN confirmation_code -->

FIND
                                    <input type="text" name="confirmCode" size="5" class="textinput" /> <img src="captcha.php" align="middle" alt="captcha code" />
                                  </td>
                                </tr>


AFTER, ADD
<!-- END confirmation_code -->

FIND (in function theme_html_comments)
            template_extract_block($template_add_your_comment, 'user_name_input', $user_name_input);

AFTER, ADD
            template_extract_block($template_add_your_comment, 'confirmation_code');


SAVE AND CLOSE ALL FILES           

RenesCopper

 ??? Using Captcha plugin locks me out of login to admin. can't see the captcha to login. using eyeball theme, black. and gallery is offline. don't know why it requires it for adminsitration.

What do I do? Delete Captcha files through my file manager/cPanel? Or just rename the folder and deal with it when I get in?

:o

Mac OSX 10.3.9, CopperMine 1.4.18, not bridged.

RenesCopper

Quote from: RenesCopper on May 27, 2008, 10:14:07 PM
??? Using Captcha plugin locks me out of login to admin. can't see the captcha to login. using eyeball theme, black. and gallery is offline. don't know why it requires it for adminsitration.

What do I do? Delete Captcha files through my file manager/cPanel? Or just rename the folder and deal with it when I get in?
Found this:
QuoteHave an issue with plugin ? can't login to disable it ?
Manually disable captcha plugin:
=======================
- Use a mysql tool (e.g. phpmyadmin)
- Drop xxx_plugin_captcha table
- Open xxx_plugins table of gallery DB (xxx_ is your table prefix)
- Delete CAPTCHA row

So I tried that first. Figured out how to 'drop the xxx-plugin-captcha table', opened the xxx-plugins table, but there was no CAPTCHA row to delete. and that didn't solve the problem.

so went to my file manager/cPanel, and renamed the captcha folder. that worked! got into the admin backend. and deleted the captcha plugin. Now have two problems left.

  • there is a folder called "Receive" in the plugins and do not know where that came from, it is empty.
  • Now have funny long box for the browse for file in the plugins manager pane, instead of button.

Do I delete the Receive folder? was it created by the captcha plugin? and how do I restore the browse button? Should I run the update.php to get restored?
:-\
Mac OSX 10.3.9, CopperMine 1.4.18, not bridged.

Ludo

This topic is about Captcha mod, not plugin...  ::)