Akismet Spam Protection

Started by vbgamer45, December 29, 2006, 02:19:52 AM

Previous topic - Next topic

Dannii

I have too many false positives. I need either a immunity permission, or at least a setting based on post count. Can you put this in soon please Daniel?
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Daniel15

I'm really busy due to school at the moment, but I'll try to remember to do this soon.
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

kgo

Anyone know what could cause - Fatal error: Cannot redeclare class akismet in /home/fragforg/public_html/forum/Sources/Akismet.class.php on line 55  ?

Daniel15

Take a look in your Sources/Post.php and Sources/Subs-Post.php files. If the Akismet section is listed more than once, remove the duplicate.
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

kgo

You have got me a ton closer Daniel, THANKS!  I did not install this modification, I paid to have it done, is why I didnt see that before...

After removing all duplicate's - I get this error:

Column 'spam' specified twice
File: /home/****/public_html/forum/Sources/Subs-Post.php
Line: 1581

This is the section of code around 1581

INSERT INTO {$db_prefix}messages
                        (ID_BOARD, ID_TOPIC, ID_MEMBER, subject, body, posterName, posterEmail, posterTime,
                        posterIP, smileysEnabled, modifiedName, spam, spam, spam, icon)
                VALUES ($topicOptions[board], $topicOptions[id], $posterOptions[id], SUBSTRING('$msgOptions[subject]', 1, 255), SUBSTRING('$msgOptions[body]', 1, 65534), SUBSTRING('$posterOptions[name]', 1, 255), SUBSTRING('$posterOptions[email]', 1, 255), " . time() . ",
                        SUBSTRING('$posterOptions[ip]', 1, 255), " . ($msgOptions['smileys_enabled'] ? '1' : '0') . ", '',  " . ($spam == true ? '1' : '0') . ",  " . ($spam == true ? '1' : '0') . ",  " . ($spam == true ? '1' : '0') . ", SUBSTRING('$msgOptions[icon]', 1, 16))", __FILE__, __LINE__);
        $msgOptions['id'] = db_insert_id();


Any help much appreciated.

Daniel15

#65
modifiedName, spam, spam, spam, icon
Spam, spam, spam! :P
Seriously though, the problem is because 'spam' is listed three times. Edit it so it's only listed once:
modifiedName, spam, icon

Also, you'll need to edit:

,  " . ($spam == true ? '1' : '0') . ",  " . ($spam == true ? '1' : '0') . ",  " . ($spam == true ? '1' : '0') . ",

And make it:

,  " . ($spam == true ? '1' : '0') . ",
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

kgo

THANKS SO MUCH DANIEL!  Mod is working to perfection.

Rhuggs

#67
@Daniel15 - just as a reference note this works excellent with the mods you've produced on SMF 1.1.1 with the Juno theme.  Took no time to set up and test, and it captured both spam tests.  Thanks for a brilliant product!!!


EDIT - I lied!  It didn't work like advertised on this theme, but it sure fooled me.  It turned every reply to a post into spam!  No one could reply, even the moderators.  So it's deinstalled, and I don't have the time to mod it to work for a theme.
...if I only had a brain...

juli

I agree. I can't rave enough about this mod. Without it, I'd be a mess because I'm getting about 20 spams a day in the one section I've opened up to guest posters. I added the code listed previously in this thread to allow registered members to bypass the spam trap, and it's caught 100 percent of spam so far and no legit posts. Amazing!

Daniel15

Glad you like it, guys :)
My work is only a small part of this, the creators of Akismet have done an awesome job with it... If you like it, thank the creators of Akismet :D

Quoteallow registered members to bypass the spam trap
I may have that as an option in a future version :)
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

mihu

I got one weird behavior and I am not sure it's language file problem or not.

I installed this component and test with those two spring mention, the first one works fine, and I tried to let a member post viagra...123, however it can't catch it.  I didn't allow guest to post so I didn't use guest mode to test this one.

Anyway, this is not my main concern, my main concern is the option disapear from admin page if I changed my language to utf8 tradition chinese (language package), which I overwrite to the theme.
I tried to access the admin page by direct link. I can access the page but all text disapear and just input box and couple blank button left.

Do anyone know how to solve this?

Daniel15

QuoteI installed this component and test with those two spring mention, the first one works fine, and I tried to let a member post viagra...123, however it can't catch it.  I didn't allow guest to post so I didn't use guest mode to test this one.
To test this one, a guest with the name of viagra-test-123 must make a post.

QuoteAnyway, this is not my main concern, my main concern is the option disapear from admin page if I changed my language to utf8 tradition chinese (language package), which I overwrite to the theme.
I tried to access the admin page by direct link. I can access the page but all text disapear and just input box and couple blank button left.
Open Themes/default/languages/Modifications.english.php, and find the Akismet section. Copy this, and paste it into Themes/default/languages/Modifications.[your language].php (if you like, you may translate the texts)
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

taucher

thanks for the plugin, works fine...
but...
when i post a spam-messag, no error appears. only a white page appears, the message ist filtered.

i use smf 1.1.2 with tiny-portal,
german language
TP AERO Theme from Bloc

mihu

Quote from: taucher on February 14, 2007, 04:36:03 AM
thanks for the plugin, works fine...
but...
when i post a spam-messag, no error appears. only a white page appears, the message ist filtered.

Thanks Daniel15, it works greate.

Did you add your own language yet? You can copy "Themes/default/languages/Modifications.english.php" to your own language modifications file, and it should works fine.
Did you modify the theme as author mentioned?

I am not sure will this help since I am using 1.1.1


taucher

Yes, i did this.
Problem occurs only when using ie6, with firefox it works how it should.

lucia2

I installed Akismet 1.1.1  using the package manager yesterday just after upgrading to smf 1.1.2.  I'm using the default templet, and Akismet mostly works. I've identified one problem and one "feature".

The problem: When on the "view most recent" display page, the spam content shows.  http://theknittingfiend.com/forum/index.php?action=recent [nofollow]
(You'll see my test spam there. I'm not deleting it.)

The feature: On the index page, the spam entry is listed as a new entry if it's the most recent one.Like [nofollow] this: 
Last post on Yesterday at 04:32:07 PM
in akismet-test-123 by Lucia Liljegren
( If you click the post title, you can't see the spam contents. However, it's still a bit of a problem because people could put something icky in the subject)

Daniel15

QuoteThe problem: When on the "view most recent" display page, the spam content shows.  http://theknittingfiend.com/forum/index.php?action=recent
(You'll see my test spam there. I'm not deleting it.)

The feature: On the index page, the spam entry is listed as a new entry if it's the most recent one.Like this: 
Last post on Yesterday at 04:32:07 PM
in akismet-test-123 by Lucia Liljegren
( If you click the post title, you can't see the spam contents. However, it's still a bit of a problem because people could put something icky in the subject)
I knew I forgot something... I'll try and fix this as soon as possible.
I consider both as bugs ;)
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

lucia2

I figured you'd consider at least the one I called "problem" a bug.  Thanks for the plugin.   

gdoostra

#78
Thanx Daniel foor the nice package, really catches spam which I would also define as spam.
The 'problem' of not showing any akismet related messages in other languages (in my case Dutch), was easily by copying the tags into my .dutch.php files, and translating them myself. Only took a few minutes.

However, when my forum users (at least a global administrator) posts a spam-marked message, they don't see any warning or akismet message informing them that their message was marked as spam. If I post spam as an administrator, the messages do show up.

I havent found any related problems in other posts, am I the first one or just the only one?

Thanx for any help,
  Gerben

ps: Forum 1.1.2 with packages:
Spam Me Not Mod      1.02 (cloacks email adresses)
Akismet Spam Blocking      1.1.1
No Spam by Guests!      0.1
Pretty URLs - Base

Guests may not post links (the no spam by guests mod), but can freely register, and post links afterwards. Therefore the akismet spam catcher :).

zwaldowski

Akismet blocked all my spam messages, but also blocked all other messages.  I'm using SMF 1.1.2 with Akismet 1.1.1 Fixed.  My friends got pissed that none of their messages went through, so I had to remove it.

------------------------
Help me win an iPod, or maybe a Wii!

Advertisement: