Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Spam protection with image confirmation code (captcha)
Goto page Previous  1, 2, 3, 4, 5, 6, 7
 
Reply to topic    Forum Index » Additional Downloads View previous topic
View next topic
Spam protection with image confirmation code (captcha)
Author Message
cybaGS



Joined: 27 Jun 2007
Posts: 37

Post Reply with quote
please help me, i'm getting hammered with ~500 spam comments daily Sad
Wed May 14, 2008 8:51 am View user's profile Send private message
Guest








Please login to hide the ads.

FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2818
Location: Germany

Post Reply with quote
cybaGS wrote:
Quote:
Fatal error: Undefined class name 'phpcaptcha' in /home/pornguru/public_html/galatasaray/plugins/captcha.php on line 48


i get this error when submitting a comment Sad


It's a common problem when having multiple includes. Please read the whole thread - you'll find at least two approaches to solve it.
Thu May 15, 2008 5:09 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2818
Location: Germany

Post Re: imagepng Reply with quote
snoopy wrote:
Hi Many thanks but i am getting this error

Warning: imagepng() [function.imagepng]: Unable to open 'captcha.png' for writing in /home/www/frankwarren/drill/News/plugins/captcha2.php on line 38

any ideas thanks

In plugins/captcha2.php find this:
Code:
imagepng($image, '../data/captcha.png');


and change the path until it works.
Thu May 15, 2008 5:12 pm View user's profile Send private message
Cypher



Joined: 17 May 2008
Posts: 4

Post Reply with quote
easy installing and works great! i have one question...

on the user side it works fine, but on the admin panel template page i get this error message

Warning: Error parsing /home/visionko/public_html/mysite/news/inc/lang/en/templates.ini on line 33 in /home/visionko/public_html/mysite/news/inc/functions.inc.php on line 809


i can just ignore it and it would still be fine but it's annoying. how can i fix this?

thank you.
Sat May 17, 2008 10:21 pm View user's profile Send private message
snoopy



Joined: 28 Mar 2006
Posts: 25

Post Reply with quote
Hi Cheers FI-DD found the problem, in the data folder is a .htaccess file this is stopping the image from showing, if i turn the .htaccess of all ok but i don't want that. i've tried moving the captcha.png to a different file and changing url but doesnt work.


many thanks for all your hard work.
Tue May 20, 2008 10:51 pm View user's profile Send private message
webbber



Joined: 15 May 2008
Posts: 76

Post Reply with quote
I have installed this plugin, I can see the image, But WHen I try to reply to the news, I get this:

Code:
Fatal error: Class 'PhpCaptcha' not found in /home/usernamepublic_html/noticias/admin/plugins/captcha.php on line 48

Fri Jun 27, 2008 5:44 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2818
Location: Germany

Post Reply with quote
Please read the whole thread. There are some suggestions in this thread to fix it.
Fri Jul 04, 2008 1:24 pm View user's profile Send private message
webbber



Joined: 15 May 2008
Posts: 76

Post Reply with quote
anyway to use a numeric code? I mean,no image, just type in,like this:
numeric code: 1234
So if this code is not typed in, visitor cant leave a comment. In this case, captcha plugin wouldnt be installed and this input will be a extra field in the form.

If cant be understood,here's again.
I wanna add a extra field where visitor gotta type in the numeric code.If not, cant leave a comment.
Simple like that.

best regards.
Sat Jul 05, 2008 4:14 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2818
Location: Germany

Post Reply with quote
In inc/show.addcomment.php find this:
Code:
if (!$name){
?>

<div class="error_message"><?=$echo['nameEmpty']; ?></div>

<?
   return;
}


and add above:
Code:
if ($spam_check != "1234"){
?>

<div class="error_message">Error: Wrong code.</div>

<?
   return;
}


Now add an extra field to your comment form:
Code:
<input type="text" name="spam_check" />


(Not tested.)
Thu Jul 10, 2008 6:31 pm View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1955
Location: US

Post Reply with quote
Ooh I like that I've seen sites do it that way before... simplicity rocks Wink

_________________
www.scodal.com is an example of cnr as a social forum - www.scottdizzle.com is an example of cnr as a personal website to share whatever cool stuff i feel like. i have another, but it's nsfw. pm me Wink
Thu Jul 10, 2008 7:08 pm View user's profile Send private message Visit poster's website AIM Address
webbber



Joined: 15 May 2008
Posts: 76

Post Reply with quote
scottdallas wrote:
Ooh I like that I've seen sites do it that way before... simplicity rocks Wink

Yea, and it works. I have built a contact form which uses this method,its simple but it works.
So, let me try what FI-DD told me to do.
It would be better if admin post a new thread as STICKY which can be a secondary anti-spam method.
Agree?

best regards.
Fri Jul 11, 2008 11:48 pm View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1955
Location: US

Post Reply with quote
I just applied the code to my main installation. Soon I will try it too. I have a very large web project I'm going to undertake soon.

Quote:
It would be better if admin post a new thread as STICKY which can be a secondary anti-spam method.


You mean if like you're having a lot of users posting to your site? I don't see why not. Like the main user or users of the site could always write the most important articles? All others would show up right after the admin posts? I guess you could use an XField toggle to sort that or something.. Hadn't really thought about it til you mentioned it.

_________________
www.scodal.com is an example of cnr as a social forum - www.scottdizzle.com is an example of cnr as a personal website to share whatever cool stuff i feel like. i have another, but it's nsfw. pm me Wink
Sat Jul 12, 2008 5:04 am View user's profile Send private message Visit poster's website AIM Address
webbber



Joined: 15 May 2008
Posts: 76

Post Reply with quote
I meant that If any admin cant install Spam protection with image confirmation code (captcha), They could use the alternative code script we said before:Just enter a 4 digit code, and that works.

regards.
Sat Jul 12, 2008 10:01 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Additional Downloads All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4, 5, 6, 7
Page 7 of 7

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.