| Author |
Message |
cybaGS
Joined: 27 Jun 2007 Posts: 37
|
|
|
|
please help me, i'm getting hammered with ~500 spam comments daily 
|
|
| Wed May 14, 2008 8:51 am |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2668 Location: Germany |
|
|
|
 |  |  |  | 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  |
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 |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2668 Location: Germany |
|
Re: imagepng |
|
 |  | 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:
 |  | imagepng($image, '../data/captcha.png'); |
and change the path until it works.
|
|
| Thu May 15, 2008 5:12 pm |
|
 |
Cypher
Joined: 17 May 2008 Posts: 4
|
|
|
|
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 |
|
 |
snoopy
Joined: 28 Mar 2006 Posts: 23
|
|
|
|
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 |
|
 |
webbber
Joined: 15 May 2008 Posts: 45
|
|
|
|
I have installed this plugin, I can see the image, But WHen I try to reply to the news, I get this:
 |  | 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 |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2668 Location: Germany |
|
|
|
Please read the whole thread. There are some suggestions in this thread to fix it.
|
|
| Fri Jul 04, 2008 1:24 pm |
|
 |
webbber
Joined: 15 May 2008 Posts: 45
|
|
|
|
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 |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2668 Location: Germany |
|
|
|
In inc/show.addcomment.php find this:
 |  | if (!$name){
?>
<div class="error_message"><?=$echo['nameEmpty']; ?></div>
<?
return;
} |
and add above:
 |  | if ($spam_check != "1234"){
?>
<div class="error_message">Error: Wrong code.</div>
<?
return;
} |
Now add an extra field to your comment form:
 |  | <input type="text" name="spam_check" /> |
(Not tested.)
|
|
| Thu Jul 10, 2008 6:31 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1802 Location: US |
|
|
|
Ooh I like that I've seen sites do it that way before... simplicity rocks 
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Thu Jul 10, 2008 7:08 pm |
|
 |
webbber
Joined: 15 May 2008 Posts: 45
|
|
|
|
 |  | Ooh I like that I've seen sites do it that way before... simplicity rocks  |
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 |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1802 Location: US |
|
|
|
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.
 |  | 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.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Sat Jul 12, 2008 5:04 am |
|
 |
webbber
Joined: 15 May 2008 Posts: 45
|
|
|
|
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 |
|
 |
|