View previous topic :: View next topic |
Author |
Message |
daveo123
Joined: 23 Apr 2004 Posts: 13
|
Posted: Sat Oct 23, 2004 7:54 pm Post subject: Works Like a Charm...Except one little thing.... |
|
|
Thank you thank you thank you for posting this! I installed it and it works like a charm. There is only one problem which is more of an inconvience really.
When you do Show Comments and it brings up the table if you check off the check box in the header under delete and then click the button on the bottom (forget what it's labeled) it doesn't delete the whole list. If you check off the lines individually it does work however.
Like I said, just a minor inconvenience and hopefully with the blacklisting feature I won't have spam in a massive quantity any more before I blacklist them.
Thanks again! This is a life (and time) saver... |
|
Back to top |
|
 |
SmoovyG
Joined: 20 Apr 2004 Posts: 3
|
Posted: Sun Oct 24, 2004 1:58 am Post subject: |
|
|
OK, so I'm trying to get this hack working in my code, but I'm getting the following error whenever I try to post any comments at all.
Parse error: parse error in /home/virtual/site38/fst/var/www/html/b2comments.post.php on line 92
I've looked at the code over and over, and it's exactly as it's presented in this thread. Any suggestions?
-- steve |
|
Back to top |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 369
|
Posted: Sun Oct 24, 2004 11:45 am Post subject: |
|
|
Can you tell us exactly what is on line 92 of your b2comments.post.php? |
|
Back to top |
|
 |
SmoovyG
Joined: 20 Apr 2004 Posts: 3
|
Posted: Sun Oct 24, 2004 4:47 pm Post subject: |
|
|
Here's how the code lays out with the line numbers next to each line.
90 /* spam-protection */
91 if ( (count(explode('http:', $comment)) - 1) >= 5 ) {
92 $ok=0;
93 $spam=1;
94 } else {
95 $spam=0;
96 }
97 /* end spam-protection */
-- steve |
|
Back to top |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 369
|
Posted: Sun Oct 24, 2004 5:40 pm Post subject: |
|
|
Yes that code is absolutely fine. The only things I can think of is that
1. the error (eg the wrong bracket or missing ; ) comes from earlier on which means looking at the previous 90 odd lines. Or temporarily comment out/remove the new code and see if you still get a parse error
2. you are looking at a different file - double-check that the one you've uploaded is the same as the one you are looking at |
|
Back to top |
|
 |
lynn
Joined: 04 Jul 2003 Posts: 66 Location: USA
|
Posted: Sun Nov 14, 2004 2:14 am Post subject: |
|
|
Sorry to be so needy but I have a few more questions. I got the answer to my request about closing old comments, on another thread but I haven't tried it yet. Looks complicated but I will try it.
The spam is getting outrageous. They used to just hit old comments but today I had someone come and leave one or two dozen spam comments on every single post. It was so bad I had to just remove comments from my blog but I'm still getting them anyway. I can see them on the b2 post/edit page.
Anyway, questions: 30 seconds flood control doesn't seem long enough to be useful. Is there any way to change that? Does it have to be expressed in seconds? Could it be set for 5 minutes or maybe 10 minutes? Next question. Is it possible to stop people from leaving any links in comments instead of just limiting it to a few?
That's all I can think of now but I'm sure there'll be more. |
|
Back to top |
|
 |
Cyberian75
Joined: 26 Sep 2002 Posts: 1285 Location: Oregon
|
|
Back to top |
|
 |
Cyberian75
Joined: 26 Sep 2002 Posts: 1285 Location: Oregon
|
Posted: Sun Nov 14, 2004 4:53 am Post subject: |
|
|
Code: | /* spam-protection */
if (substr_count($comment, "http://") >= 5) {
exit("Your comment has been filtered as a SPAM!");
} |
_________________ Michael P.
 |
|
Back to top |
|
 |
lynn
Joined: 04 Jul 2003 Posts: 66 Location: USA
|
Posted: Sun Nov 14, 2004 3:44 pm Post subject: |
|
|
Thanks. I installed the anti-bot script with no problem. |
|
Back to top |
|
 |
gashford
Joined: 29 Nov 2003 Posts: 2
|
Posted: Wed Feb 16, 2005 12:08 am Post subject: BLOG Spam |
|
|
I am using a "canned" b2 under iPowerWeb and I just started getting these garbage comments from "texasholdem" or something like that pushing their gambling links that don't seem to work. This is just for the phpbb's info at this time.
GEA |
|
Back to top |
|
 |
|