Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: vbgamer45 on December 29, 2006, 02:19:52 AM

Title: Akismet Spam Protection
Post by: vbgamer45 on December 29, 2006, 02:19:52 AM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=544)

Akismet Spam Protection for SMF

Mod Author: Runic (http://www.simplemachines.org/community/index.php?action=profile;u=23577)
Original Author: daniel15 (http://www.simplemachines.org/community/index.php?action=profile;u=9547)
Previous Authors: live627 (http://www.simplemachines.org/community/index.php?action=profile;u=154736)
SMF Version: 3.0.X
Mod Version: 1.2

Description:
This is a SMF modification implementing the Akismet (http://www.akismet.com/) spam protection service. The mod uses purely hooks and no file edits so it requires SMF 2.0. It only checks topics since there is no hook for posting replies.

How do I use it?
Firstly, you'll need to sign up for a free API key at http://wordpress.com/api-keys/ (http://wordpress.com/api-keys/). Then, install this mod via the SMF Package Manager. Once it's installed, there will be a new 'Akismet Configuration' option in the admin panel, under the 'Forum' section. Enter your API key in, and you're all set!
Make sure message moderation in the basic settings in SMF is enabled!!!

How do I know it's working?
You test it, of course! Simply write a new topic with the subject of 'akismet-test-123', and it will be classified as spam by the mod. This tests that the mod is installed correctly. An additional test is writing a guest post with a name of 'viagra-test-123'. Any message with this name will be marked as spam by the Akismet service. If this message is also detected as spam, then everything is working perfectly.

Why Not Visit:
https://www.smfhacks.com (https://www.smfhacks.com)
Title: Re: Akismet Spam Protection
Post by: RoarinRow on December 29, 2006, 02:44:35 AM
Very cool, every little bit helps.   8)
Title: Re: Akismet Spam Protection
Post by: RoarinRow on December 29, 2006, 03:12:29 AM
Installation went well my my 1.1.1 forums.

Just got this error after deleting a test post that was marked not as spam:

Error connecting to host: rest.akismet.com Error number: 0 Error message: Undefined error: 0

Edit - I had to un-install cause it was clause slowness when hit and getting to the forum page. 
Title: Re: Akismet Spam Protection
Post by: EdwinK on December 29, 2006, 05:27:58 AM
I like it very much. Has already catched many spam on my blog, so I hope it will do a good job on SMF as well.

Just not sure about editing my DilbertMC theme. I've screwed up the theme several times already :(
Title: Re: Akismet Spam Protection
Post by: wudzzy on December 30, 2006, 02:56:14 AM
how to install this mod ?
i just login as admin - click to admin - package manager - download package , then upload it - browse package , then click to apply mod , then i have message :
Installations actions for "Akismet Spam Blocking":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

what i should do ?
Title: Re: Akismet Spam Protection
Post by: EdwinK on December 30, 2006, 06:19:17 AM
Are you sure you are using SMF 1.1 Final (or 1.1.1). I've got it working on two forums without a problem.
Title: Re: Akismet Spam Protection
Post by: wudzzy on December 30, 2006, 06:26:59 AM
Quote from: EdwinK on December 30, 2006, 06:19:17 AM
Are you sure you are using SMF 1.1 Final (or 1.1.1). I've got it working on two forums without a problem.
i have SMF 1.1.1. may be something wrong with board configuration , i just load smf_settings table and the find variable :
('package_path', 'httpdocs/forum') - is this correct ? or it should be
('package_path', '/usr/local/psa/home/vhosts/mydomain.tld/httpdocs/forum') - or it's wrong too ?

i just try to install mods on my home pc and it's installed perfectly , but i still have this error on linux server ... may be something wrong with permissions or other settings ? how to find errors ?
Title: Re: Akismet Spam Protection
Post by: wudzzy on December 30, 2006, 08:29:52 AM
also php in safe mode , is this a problem for mods installation ?
Title: Re: Akismet Spam Protection
Post by: razor1394 on January 02, 2007, 08:05:35 AM
Anyone who could give me a hand?

The mod installed fine on SMF 1.1.1 but it won't show up in the admin panel under "forum".

This error keeps popping up in the error log:

Quote
8: Undefined index: akismet_conf
File: /var/www/localhost/htdocs/forum/Sources/Subs.php
Line: 2767
Title: Re: Akismet Spam Protection
Post by: mrselnombre on January 02, 2007, 09:00:05 AM
it works fine for me, but the boardindex page of my forum has been slowed down. I know it is this mod as it sped back up when i uninstalled it.
7 seconds to load a page is too long.
Title: Re: Akismet Spam Protection
Post by: Elegant John on January 03, 2007, 01:07:53 PM
This damned thing crashed my forum, not once, but twice, as I was stupid enough to try a reinstall

Everything installed without error but when making posts, recieved fatal errors.

Uninstalled package without incident, but was unable to use board, until all source files which were modified were replaced with virgin ones from the SMF 1.1.1 package.

And it is a shame too, becaise I use AKISMET on my blogs without problems and with great success.

Perhaps that is where it needs to stay. With WORDPRESS.

Sorry guys, but I reported this as an unsafe mod.
Title: Re: Akismet Spam Protection
Post by: Bill-Kill on January 03, 2007, 07:56:25 PM
I don't think so. I installed it and everything has worked fine for me. I love this mod, thank you Daniel once again!! Your shop mod was amazing and so is this!
Title: Re: Akismet Spam Protection
Post by: Daniel15 on January 03, 2007, 10:02:47 PM
QuoteJust not sure about editing my DilbertMC theme. I've screwed up the theme several times already
Do you still require help with this?

Quote('package_path', 'httpdocs/forum') - is this correct ? or it should be
('package_path', '/usr/local/psa/home/vhosts/mydomain.tld/httpdocs/forum') - or it's wrong too ?
I believe that the second one is correct

Quotealso php in safe mode , is this a problem for mods installation ?
As far as I know, it should work in safe mode, but I have no idea (as I haven't tested it)

Quoteit works fine for me, but the boardindex page of my forum has been slowed down. I know it is this mod as it sped back up when i uninstalled it.
7 seconds to load a page is too long.
Try this:
Install it, and open Sources/BoardIndex.php. Find:

LEFT JOIN {$db_prefix}messages AS m ON (m.ID_BOARD = b.ID_BOARD AND m.spam = 0)

Replce with:

LEFT JOIN {$db_prefix}messages AS m ON (m.ID_MSG = b.ID_LAST_MSG)

I didn't think that this would make a performance difference, but apparently it does. If changing this speeds up your forum, I'll change this behavior in the next release.

QuoteThis damned thing crashed my forum, not once, but twice, as I was stupid enough to try a reinstall

Everything installed without error but when making posts, recieved fatal errors.
What error were you getting?

Quote
This error keeps popping up in the error log:

Quote
8: Undefined index: akismet_conf
File: /var/www/localhost/htdocs/forum/Sources/Subs.php
Line: 2767
Could you please check that $txt['akismet_conf'] is in your Themes/default/languages/Modifications.english.php file? Can you access the Akismet Configuration by going directly to index.php?action=akismet ?
Title: Re: Akismet Spam Protection
Post by: mrselnombre on January 04, 2007, 02:27:56 AM
that code does speed it up, but caused a minor bug. i pmed you the details.
Title: Re: Akismet Spam Protection
Post by: RoarinRow on January 04, 2007, 02:48:09 AM
I wanted the extra protection, but not at the cost of a slower forum too.  Looking forward to the next release that will address this performance issue   8)
Title: Re: Akismet Spam Protection
Post by: Daniel15 on January 05, 2007, 02:47:17 AM
OK, version 1.1.1 is out, and it should fix the speed issues.
Title: Re: Akismet Spam Protection
Post by: mrselnombre on January 05, 2007, 02:50:09 AM
does it have differences in the template changes?
I'm wondering if i have to remove from all the templates before uninstalling and reinstalling.
Title: Re: Akismet Spam Protection
Post by: Daniel15 on January 05, 2007, 04:35:15 AM
No, no differences. The only changes are in Sources/ManageBoards.php and Sources/Subs-Post.php
Title: Re: Akismet Spam Protection
Post by: mrselnombre on January 05, 2007, 06:03:17 AM
thank you!!
Title: Re: Akismet Spam Protection
Post by: mrselnombre on January 05, 2007, 06:19:58 AM
This new version has a bug too
"Column count doesn't match value count at row 1
File: /home/totaltwa/public_html/board/Sources/Subs-Post.php
Line: 1619" when anyone starts a new topic.
Title: Re: Akismet Spam Protection
Post by: bigfish589 on January 05, 2007, 04:22:29 PM
Hmhmmh

Database Error
Column count doesn't match value count at row 1
File: /home/www/*****.********.com/forum/Sources/Subs-Post.php
Line: 1604

Help pl0px
Title: Re: Akismet Spam Protection
Post by: Daniel15 on January 05, 2007, 09:42:40 PM
Could you please attach your Subs-Post.php file here?
Title: Re: Akismet Spam Protection
Post by: mrselnombre on January 06, 2007, 02:38:35 AM
I've uninstalled it, so do you still want my subs-post.php

i can't leave it installed as it will stop people posting
Title: Re: Akismet Spam Protection
Post by: Daniel15 on January 06, 2007, 04:05:28 AM
A small issue crept into the install.xml file for version 1.1.1 of this mod, which was what was causing the error. Upgrades from 1.1 to 1.1.1 are not affected by this issue.

To fix this issue, open Subs-Post.php, and find the code around the line that's causing the error. It will look a bit like:

// Insert a new topic (if the topicID was left empty.
if ($new_topic)
{
db_query("
INSERT INTO {$db_prefix}topics
(ID_BOARD, ID_MEMBER_STARTED, ID_MEMBER_UPDATED, ID_FIRST_MSG, ID_LAST_MSG, spam, locked, isSticky, numViews, ID_POLL)
VALUES ($topicOptions[board], $posterOptions[id], $posterOptions[id], " . ($spam == true ? '1' : '0') . ",
" . ($topicOptions['lock_mode'] === null ? '0' : $topicOptions['lock_mode']) . ', ' .
($topicOptions['sticky_mode'] === null ? '0' : $topicOptions['sticky_mode']) . ", 0, " . ($topicOptions['poll'] === null ? '0' : $topicOptions['poll']) . ')', __FILE__, __LINE__);
$topicOptions['id'] = db_insert_id();


Replace that code with:

// Insert a new topic (if the topicID was left empty.
if ($new_topic)
{
db_query("
INSERT INTO {$db_prefix}topics
(ID_BOARD, ID_MEMBER_STARTED, ID_MEMBER_UPDATED, ID_FIRST_MSG, ID_LAST_MSG, spam, locked, isSticky, numViews, ID_POLL)
VALUES ($topicOptions[board], $posterOptions[id], $posterOptions[id], $msgOptions[id], $msgOptions[id], " . ($spam == true ? '1' : '0') . ",
" . ($topicOptions['lock_mode'] === null ? '0' : $topicOptions['lock_mode']) . ', ' .
($topicOptions['sticky_mode'] === null ? '0' : $topicOptions['sticky_mode']) . ", 0, " . ($topicOptions['poll'] === null ? '0' : $topicOptions['poll']) . ')', __FILE__, __LINE__);
$topicOptions['id'] = db_insert_id();


I'll be uploading a fixed package as soon as possible (the mods site isn't working correctly at present), but for now a fixed package is attached to this post
Title: Re: Akismet Spam Protection
Post by: Daniel15 on January 06, 2007, 09:02:17 PM
OK, the new archive has been uploaded.
Title: Re: Akismet Spam Protection
Post by: DaBoROE09 on January 07, 2007, 12:43:53 PM
when i do the test with the subject of "akismet-test-123" it does not clasify that as spam
Title: Re: Akismet Spam Protection
Post by: Alenônimo on January 07, 2007, 01:28:05 PM
Quote from: DaBoROE09 on January 07, 2007, 12:43:53 PM
when i do the test with the subject of "akismet-test-123" it does not clasify that as spam
Have you made the changes on all templates? Here worked.
Title: Re: Akismet Spam Protection
Post by: DaBoROE09 on January 07, 2007, 02:11:28 PM
what changes should i have made to the template.  umm i uninstalled it and reinstalled it.

thanks
Title: Re: Akismet Spam Protection
Post by: Daniel15 on January 07, 2007, 08:59:48 PM
Quotewhen i do the test with the subject of "akismet-test-123" it does not clasify that as spam
Please check that your Sources/Post.php and Sources/Subs-Post.php files were edited correctly. If you search in the file, there should be an Akismet section.
If you attach your Post.php and Subs-Post.php files here, I'll have a look and see if I can find what's wrong.
Title: Re: Akismet Spam Protection
Post by: thelastkiss on January 08, 2007, 10:17:50 PM
I've upgraded to 1.1.1 last night, and all was working fine and dandy today up until about two hours ago - suddenly everything is getting flagged as spam.  Before, only a post or two a day would be flagged, but now all posts are.  Is there any particular reason for this, or is it something on Akismet's part? :/
Title: Re: Akismet Spam Protection
Post by: Daniel15 on January 08, 2007, 11:24:24 PM
Quotesuddenly everything is getting flagged as spam.  Before, only a post or two a day would be flagged, but now all posts are.  Is there any particular reason for this, or is it something on Akismet's part?
It's most likely a glitch with Akismet (these things happen very rarely, but they do occasionally happen).
Are the posts regular posts, or are they spam-like posts (very short, lots of links, etc.)?
Title: Re: Akismet Spam Protection
Post by: thelastkiss on January 08, 2007, 11:42:46 PM
They're all regular posts, no links, 2-3 sentences.  These posts used to get by Akismet fine but now everything is going up as spam :/
Title: Re: Akismet Spam Protection
Post by: Alenônimo on January 09, 2007, 08:59:08 AM
Quote from: thelastkiss on January 08, 2007, 10:17:50 PMI've upgraded to 1.1.1 last night, and all was working fine and dandy today up until about two hours ago - suddenly everything is getting flagged as spam.  Before, only a post or two a day would be flagged, but now all posts are.  Is there any particular reason for this, or is it something on Akismet's part? :/
I've uninstalled this extension because that. I quit.
Title: Re: Akismet Spam Protection
Post by: Scooby on January 09, 2007, 02:37:03 PM
I removed it because of the problems today, but I will put it back, when the problem is fixed. It would be nice to have an alert feature added, so I don't have to keep going into admin to see if there are any trapped posts.
Also I note that when releasing non spam, the index page is not updated. Only when you view the thread does it show as a new post
Title: Re: Akismet Spam Protection
Post by: Daniel15 on January 09, 2007, 10:41:01 PM
Sorry about the problems guys, I've contacted the creators of Akismet so I can see if there's any known problems at the moment.
Title: Re: Akismet Spam Protection
Post by: thelastkiss on January 09, 2007, 11:52:32 PM
Thanks, Daniel :)

I use Akismet on my blog though, and nothing unusual has happened (just a tidbit, don't know if that will help).
Title: Re: Akismet Spam Protection
Post by: EdwinK on January 10, 2007, 06:19:12 AM
I'm having the same problem now. Going to un-install this mod till problems are fixed :(
After uninstalling this, I'm getting problems :(

Quote
Database Error
Unknown column 't.spam' in 'where clause'
File: /home/dungeons/public_html/CR/Sources/MessageIndex.php
Line: 490

and this one:
Quote
Fatal error: Cannot redeclare class akismet in /home/dungeons/public_html/CR/Sources/Akismet.class.php on line 55


Title: Re: Akismet Spam Protection
Post by: nolageek on January 11, 2007, 06:10:01 AM
Hmmm akismet-test-123 didn't work for me either.  Also, the Akismet configuration link doesn't appear in my admin....

I really hate that if you don't use the Default theme, you have to code everything by hand.. there really be a way to fix that.
Title: Re: Akismet Spam Protection
Post by: DaBoROE09 on January 11, 2007, 12:39:26 PM
i agree nolageek.  it is easy for the creators to do it just for one theme but it would be awesome if they could do it for all. 
Title: Re: Akismet Spam Protection
Post by: Daniel15 on January 11, 2007, 08:40:28 PM
QuoteI'm having the same problem now. Going to un-install this mod till problems are fixed
After uninstalling this, I'm getting problems
Delete all related code from MessageIndex.php, Post.php and Subs-Post.php ;)

Quoteit is easy for the creators to do it just for one theme but it would be awesome if they could do it for all.
It's impossible to do, as I'd need to include code for every single theme available (the code of most themes is slightly different). There's no easy way for a package to know what theme a user has installed.
Title: Re: Akismet Spam Protection
Post by: DaBoROE09 on January 11, 2007, 08:45:00 PM
ok daniel15...you are saying the code related to the mod in those 3 files.
Title: Re: Akismet Spam Protection
Post by: Daniel15 on January 11, 2007, 10:16:44 PM
Quoteyou are saying the code related to the mod in those 3 files.
Yeah, any Akismet-related code.
If you upload the package to http://server.daniel15.com/smf/package.php and choose the 'Uninstall' option, it will tell you exactly what you need to do ;)
Title: Re: Akismet Spam Protection
Post by: DaBoROE09 on January 11, 2007, 10:57:27 PM
so i will uninstall it and then reinstall it?  or wat
Title: Re: Akismet Spam Protection
Post by: DaBoROE09 on January 11, 2007, 10:59:45 PM
when i do the test it doesnt pick up the test post as spam. i need that to be picked up as spam.  do i still remove the code from these 3 files or what do I do?
Title: Re: Akismet Spam Protection
Post by: EdwinK on January 12, 2007, 04:20:39 PM
Quote from: Daniel15 on January 11, 2007, 10:16:44 PM
Quoteyou are saying the code related to the mod in those 3 files.
Yeah, any Akismet-related code.
If you upload the package to http://server.daniel15.com/smf/package.php and choose the 'Uninstall' option, it will tell you exactly what you need to do ;)

Nice. *tries to remember this site :)*
Title: Re: Akismet Spam Protection
Post by: nolageek on January 14, 2007, 04:22:09 AM
QuoteIt's impossible to do, as I'd need to include code for every single theme available (the code of most themes is slightly different). There's no easy way for a package to know what theme a user has installed.

I agree it's impossible to do, but there really should be a way to have it so that altering a theme doesn't require manual installation of mods.  I've been using web apps for years and have never had to do that before (I agree, some other forums I've tried require it..)

Maybe if more themes were css based instead of template based this wouldn't be a problem.

What I did was take my favorite theme's style.css and graphics and overwrote the default theme's.  I was pleasantly surprised to see how much of a difference it made without changing ANY of the default theme's files. You may have to tweek some things, since other themes use different class names, but it's worth a try.
Title: Re: Akismet Spam Protection
Post by: juli on January 17, 2007, 11:59:22 PM
Daniel, thanks for making such a valuable mod! So far it's working great on my boards.

When a post is flagged as spam, though, it's showing up in the new post list. Of course you click it, and there's nothing there. So I've got members looking for "Ogg?" and other wacky posts. Is there any workaround for that?

Also, is there a way to have it send you an email that it's flagged something as spam? That way I can check it out quickly in case it's not spam and approve the post. (That hasn't yet happened, but I'm sure it will eventually...the nature of spam catchers)


Thanks again for this....such a USEFUL mod!

Juli
Title: Re: Akismet Spam Protection
Post by: LiGy on January 22, 2007, 08:17:24 PM
Thanks for the mod. Though I had to customize it a bit for my forum. Since my members undergo peer screening, I trust them, so I modified the spam catcher to check posts only if the user is a guest.

I think this would work correctly, but I wouldn't know entirely.
Only thing modified is in Subs-Post.php.
Line 1530: This-
if (isset($modSettings['akismetAPIKey']) && $modSettings['akismetAPIKey'] != "")
becomes this-
if (isset($modSettings['akismetAPIKey']) && $modSettings['akismetAPIKey'] != "" && $user_info['is_guest'])

And that's it. Is this kosher?
Title: Re: Akismet Spam Protection
Post by: Daniel15 on January 22, 2007, 11:29:22 PM
QuoteWhen a post is flagged as spam, though, it's showing up in the new post list. Of course you click it, and there's nothing there.
Which new post list? I think I got most of them, although I may have missed one.

QuoteAlso, is there a way to have it send you an email that it's flagged something as spam? That way I can check it out quickly in case it's not spam and approve the post. (That hasn't yet happened, but I'm sure it will eventually...the nature of spam catchers)
I'll try implement that in a future version

LiGy, that's a great idea, I'll implement guest-only spam catching in a future version (have an option in the admin section for it)
QuoteAnd that's it. Is this kosher?
That looks fine :)
Title: Re: Akismet Spam Protection
Post by: Dannii on January 23, 2007, 12:15:32 AM
I'd prefer a minimum posts option. Some bots register before spamming..
Title: Re: Akismet Spam Protection
Post by: juli on January 23, 2007, 05:13:30 PM
Quote from: Daniel15 on January 22, 2007, 11:29:22 PM
QuoteWhen a post is flagged as spam, though, it's showing up in the new post list. Of course you click it, and there's nothing there.
Which new post list? I think I got most of them, although I may have missed one.

This would be the link, up at the top where it says Show Unread posts since last visit:

http://www.simplemachines.org/community/index.php?action=unread


I'm going to try LIGuy's code... I agree that I trust my members. (I carefully approve all new regs because of a stalker guy) So I like just checking guest posts...I've had a number of member posts get flagged as spam, including my own. LOL.

But I do love this mod!

Juli
Title: Re: Akismet Spam Protection
Post by: juli on January 23, 2007, 05:13:49 PM
ack, messed up the code on that...sorry.
Title: Re: Akismet Spam Protection
Post by: juli on January 23, 2007, 05:18:06 PM
LIGy, I don't think that code worked. I did the test using "akismet-test-123" and it stopped it as spam. I did this under my own name, as administrator.
Title: Re: Akismet Spam Protection
Post by: Dannii on January 23, 2007, 07:32:58 PM
QuoteError connecting to host: ********.rest.akismet.com Error number: 110 Error message: Connection timed out
It would be good if messages would be marked non spam on these errors, as well as the "Could not connect to Akismet server! Post will be assumed to be non-spam." errors.
Title: Re: Akismet Spam Protection
Post by: Daniel15 on January 23, 2007, 08:31:53 PM
QuoteThis would be the link, up at the top where it says Show Unread posts since last visit:
Oh, I knew I forgot something! I'll take a look at this later

Quote from: juli on January 23, 2007, 05:18:06 PM
LIGy, I don't think that code worked. I did the test using "akismet-test-123" and it stopped it as spam. I did this under my own name, as administrator.
Yeah, akismet-test-123 is still blocked, but that's the only thing that is. If you post as a guest, posting with the name 'viagra-test-123' should be marked as spam, which shows that it's working. If you post a spam message as an admin, it will not be marked as spam.

Eldacar, I edited your post, the bit at the start of the server name contains your WordPress API key :P
QuoteIt would be good if messages would be marked non spam on these errors, as well as the "Could not connect to Akismet server! Post will be assumed to be non-spam." errors.
So you mean, have one error rather than both that one and the "Post will be assumed to be non-spam" one? The error you mentioned is thrown in the Akismet.class.php file, whereas the "Post will be assumed to be non-spam" one is thrown in Subs-Post.php (or Post.php, can't remember which).
Title: Re: Akismet Spam Protection
Post by: juli on January 23, 2007, 09:02:48 PM
QuoteYeah, akismet-test-123 is still blocked, but that's the only thing that is. If you post as a guest, posting with the name 'viagra-test-123' should not be marked as spam.

Ohhh, perfect. Just tested it and it works perfectly. Thank you, thank you!!!
Title: Re: Akismet Spam Protection
Post by: Dannii on January 23, 2007, 09:05:11 PM
QuoteSo you mean, have one error rather than both that one and the "Post will be assumed to be non-spam" one? The error you mentioned is thrown in the Akismet.class.php file, whereas the "Post will be assumed to be non-spam" one is thrown in Subs-Post.php (or Post.php, can't remember which).
Both are thrown for the one error? Well, whatever is making errors, if it can't connect it would be good if it was assumed non-spam, rather than kept as spam.
Title: Re: Akismet Spam Protection
Post by: LiGy on January 24, 2007, 02:29:47 AM
Whoops, I guess I forgot to mention that tidbit. When I was testing, I was using spam that the forum had caught, and not the automatic flag as spam subject lines.

Glad to be of some help, at least.
Title: Re: Akismet Spam Protection
Post by: firebirdnation on January 24, 2007, 11:15:51 AM
I installed this as well, and it seems to be flagging everything as spam. I tried to uninstall it, but I get a warning, the basic warning with the following problem:

   Execute Modification     ./Themes/default/languages/Modifications.english.php     Test failed

Any suggestions?
Title: Re: Akismet Spam Protection
Post by: guy in the forest on January 24, 2007, 04:08:32 PM
It worked but it defines any post as SPAM, even perfectly written posts. So I uninstall it and it crashed my forums. But then again I fixed it by replacing the modified files. Sorry but:

-Reported as unsafe-

I hope the issues will be repaired. It seems to be a good mod thus far.
Title: Re: Akismet Spam Protection
Post by: Dannii on February 05, 2007, 09:02:03 PM
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?
Title: Re: Akismet Spam Protection
Post by: Daniel15 on February 06, 2007, 04:31:38 AM
I'm really busy due to school at the moment, but I'll try to remember to do this soon.
Title: Re: Akismet Spam Protection
Post by: kgo on February 07, 2007, 11:00:20 PM
Anyone know what could cause - Fatal error: Cannot redeclare class akismet in /home/fragforg/public_html/forum/Sources/Akismet.class.php on line 55  ?
Title: Re: Akismet Spam Protection
Post by: Daniel15 on February 08, 2007, 12:30:37 AM
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.
Title: Re: Akismet Spam Protection
Post by: kgo on February 08, 2007, 11:53:56 AM
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.
Title: Re: Akismet Spam Protection
Post by: Daniel15 on February 09, 2007, 02:46:17 AM
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') . ",
Title: Re: Akismet Spam Protection
Post by: kgo on February 09, 2007, 11:09:11 AM
THANKS SO MUCH DANIEL!  Mod is working to perfection.
Title: Re: Akismet Spam Protection
Post by: Rhuggs on February 11, 2007, 02:40:38 AM
@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.
Title: Re: Akismet Spam Protection
Post by: juli on February 11, 2007, 11:05:23 AM
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!
Title: Re: Akismet Spam Protection
Post by: Daniel15 on February 12, 2007, 04:27:28 AM
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 :)
Title: Re: Akismet Spam Protection
Post by: mihu on February 13, 2007, 01:35:57 AM
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?
Title: Re: Akismet Spam Protection
Post by: Daniel15 on February 13, 2007, 02:03:36 AM
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)
Title: Re: Akismet Spam Protection
Post by: 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.

i use smf 1.1.2 with tiny-portal,
german language
TP AERO Theme from Bloc
Title: Re: Akismet Spam Protection
Post by: mihu on February 15, 2007, 12:47:31 AM
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

Title: Re: Akismet Spam Protection
Post by: taucher on February 16, 2007, 04:09:14 AM
Yes, i did this.
Problem occurs only when using ie6, with firefox it works how it should.
Title: Re: Akismet Spam Protection
Post by: lucia2 on February 28, 2007, 08:37:01 AM
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  (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)
Title: Re: Akismet Spam Protection
Post by: Daniel15 on March 01, 2007, 03:12:28 AM
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 ;)
Title: Re: Akismet Spam Protection
Post by: lucia2 on March 01, 2007, 12:26:42 PM
I figured you'd consider at least the one I called "problem" a bug.  Thanks for the plugin.   
Title: No warning/spam detected messages for non-administrators
Post by: gdoostra on March 06, 2007, 04:51:36 AM
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 :).
Title: Re: Akismet Spam Protection
Post by: zwaldowski on March 11, 2007, 09:45:53 AM
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.
Title: Re: Akismet Spam Protection
Post by: EdwinK on March 15, 2007, 04:39:59 PM
Still cant get this to work in 1.1.2 :(
Title: Re: Akismet Spam Protection
Post by: juli on March 31, 2007, 01:29:59 PM
Daniel, or anyone, is there a fix to get rid of subject listings in unread posts? I'm getting about 6 - 10 spams a day and most are porn related. It's upsetting the members to constantly read, in their unread post listing, "Free teen porn" and so on.

Getting lots of complaints, and I can't keep up with deleting them fast enough.

Thanks,

Juli
Title: Re: Akismet Spam Protection
Post by: yell0wdart on April 25, 2007, 01:52:07 PM
Am I maybe missing something here?... or am I maybe one of the lucky ones who had a trouble-free install.

I've got it working flawlessly, at least it appears that way.  It seems to catch spam and allow other posts through.  I can post as admin.  I can also post under a regular user profile that I created specifically to test it.  Haven't had many other users post since I set up the mod, but my community is very small, and just starting out.

I'll be keeping a careful eye on it.  So far so good, though.  Thanks Daniel for what appears to be a great mod!  I apologize if I come off odd, but seeing a lot of issues on installing a mod tends to make one a bit cautious.  ;)

Running SMF 1.1.2
A modified version of Bloc's Mesh theme

Mods:
Custom Profile Field 3.16
Invite 1.13
Akismet Spam Blocking 1.1.1 Fixed
Title: Re: Akismet Spam Protection
Post by: michaelzap on April 25, 2007, 03:20:22 PM
@yell0wdart: If you take a look at your unread posts page before deleting spam that has been caught by Askimat, you'll see what juli is referring to.
Title: Re: Akismet Spam Protection
Post by: yell0wdart on April 25, 2007, 07:59:35 PM
Yep, I know what she's referring to.  I'm just not experiencing it.  /shrug

I did, however get an odd MySQL error just before I was headed home from work.  Didn't take the time to copy it or post it to my board, but I didn't like it.  Think I may err on the side of caution and take it down for now.  Made me a little paranoid not seeing anybody from my boards post all day long... not even some of the chattier members...

Personally, it's tested ok for me under my admin acct and under a test member acct I set up.  I just don't want to take any chances... especially since my community is just in its infancy.  I don't want to deter people from registering.
Title: Re: Akismet Spam Protection
Post by: SA™ on May 25, 2007, 05:00:00 AM
help please i just installed this and noew it cant post in my forum i get this any help

Fatal error: Cannot redeclare class akismet in /www/110mb.com/j/o/y/r/i/d/e/r/joyrider/htdocs/Sources/Akismet.class.php on line 55
Title: Re: Akismet Spam Protection
Post by: RiderRaghav on June 29, 2007, 11:41:11 PM
Will it work on smf v1.1.3 ... ???
 
Thanks in advance ;)
Title: Re: Akismet Spam Protection
Post by: octopus22 on July 02, 2007, 11:20:07 PM
i have same question =)
waiting for this one
Title: Re: Akismet Spam Protection
Post by: lestat1124 on July 05, 2007, 02:51:09 PM
I tried to install this on SMF 1.2 and after the install...its not appearing in the admin panel under Forums.  So I never get a chance to add in the Key because the feature nevers shows up for me to click it.  Any suggestions?  By the way...i tried this on default and on a custom template.....same result for both.
Title: Re: Akismet Spam Protection
Post by: vdrover on July 06, 2007, 12:44:02 AM
Quote from: riderraghav on June 29, 2007, 11:41:11 PM
Will it work on smf v1.1.3 ... ???

Appears to be working on 1.1.3, at least the akismet-test-123 was flagged.

Will this also pick up spam from registered users on my site?
Title: Re: Akismet Spam Protection
Post by: vdrover on July 06, 2007, 12:55:14 AM
So, i found out that if you try the viagra-test-123 when logged in as admin or as a registered forum user, it is not detected as spam. As stated earlier, this test only works when a guest posts a message.

So, while logged in as admin i created a message with the following:

Subject: hi there
Body:
cialis
viagra
enlargement
porn

This was flagged as spam, which i think confirms that the mod is working in 1.1.3.

Odly, the following message was not flagged.

Subject: hi there
Body: cialis, viagra, enlargement, porn

But i think that is a limitation of akismet.
Title: Re: Akismet Spam Protection
Post by: vdrover on July 10, 2007, 12:28:15 AM
As a follow, i can confirm that this is working very well with 1.1.3.
Title: Re: Akismet Spam Protection
Post by: RiderRaghav on July 11, 2007, 09:03:46 AM
Just installed it on smf 1.1.3 v ....it works like a charm :) .....

Thanks for the mod ;)
Title: Re: Akismet Spam Protection
Post by: muskokee on August 01, 2007, 05:21:20 PM
Thanks so much for this mod!  I am a regular wordpress user so I know the value of akismet.

I am using SMF1.1.3 and Akismet Spam 1.1.1 fixed.

The only issue of installation was that the language definitions did not get written to the file.  I easily added them myself - but it created a little bit of a scare as I could not see the configuration link!

I posted a test message from an actually piece of spam that my blog caught.  Your mod caught it as well.  8)

Thanks again. A+++
Title: Re: Akismet Spam Protection
Post by: vdrover on August 05, 2007, 05:54:38 PM
Just noticed a bug with smf and akismet installed.

If your most recent post gets flagged as spam, the title still shows up as the most recent post in that board. If you click that url (the most recent post url), you go to the message but only the title is displayed.

If you then search for the message title, you can get a search result, but following the result again displays only the title.

Finally, once you delete all the spam messages from the akismet configuration and go back to the board overview, there is nothing listed as the most recent post (see attached).
Title: Re: Akismet Spam Protection
Post by: Pranav on August 08, 2007, 06:23:01 AM
I also noticed this at my forum..Can we get it fixed please? And is there any way to disable akismet spam protection for admins?
Title: Re: Akismet Spam Protection
Post by: Pranav on August 08, 2007, 10:31:16 AM
Hello help me please..whenever i post anything in my forum it classifies it as spam even when it is not! Then i have to go to approve it! But it doesn't happen with other members!
Title: Re: Akismet Spam Protection
Post by: Pranav on August 09, 2007, 11:23:51 AM
so anyone??
Title: Re: Akismet Spam Protection
Post by: vdrover on August 09, 2007, 11:53:21 AM
@ulgaming:

The developer ported it to SMF as a 'gift'. I wouldn't expect speedy support. You might want to contact him directly.
Title: Re: Akismet Spam Protection
Post by: Pacov on August 19, 2007, 08:54:46 PM
Help me please :)

When I install 'aksimet spam protection' mode successfully (smf 1.1.3. is my smf version) I don't see entry 'Aksimet Configuration' under the forum admin menu when I logg in as admin. I use theme 'Black Ted' as a default theme for users and me, admin. But although i have no 'Aksimet Configuration' under the forum admin menu, I note that there, in the admin menu under the forum section (left side-menu) where 'Aksimet Configuration' should be placed, there is a larger space...like some missing text, but of course there is no text- just blank white space.
In attachment is  'Blact Thed's' theme Display.template.php file, original one.
Please see what you can do.
Recently, someone hacked/spamed my forum and I don't want to that happen again.
Tnx a lot  :) :) :) :)
Title: Re: Akismet Spam Protection
Post by: TEOC2 on August 31, 2007, 04:27:51 AM
Works OK for me so far.

One thing, can i use the same API key for more than one forum ive installed this too?
Title: Re: Akismet Spam Protection
Post by: jbosch6 on September 12, 2007, 06:35:02 PM
Great stuff. I am using it on version 1.1.3 with success. One comment though, I am using a different language. So when I went to the "Askimet Configuration" link, the page had no text. I fixed it by copying the part between the "---- Begin Akismet Mod ----" tags in Modifications.english.php to my language file. Perhaps, for future users, you can also mention this in your description of the files to change for a theme.

Thanks again! Great stuff.
Title: Re: Akismet Spam Protection
Post by: Neorics on September 20, 2007, 10:55:12 AM
nvm problem solved, thanks
Title: Re: Akismet Spam Protection
Post by: forty on October 12, 2007, 10:54:14 PM
this is almost working for me.
no problem with speed but the topics which are deleted as spam still counts as post.
Title: Re: Akismet Spam Protection
Post by: vdrover on October 23, 2007, 12:09:49 AM
Anybody got this working with 1.1.4?

Also, Akismet was totally slowing down posting on my site. The solution seems to be simply uninstalling akismet and the re-applying the mod.

I reinstalled being certain to use the fixed package. Posting is still very slow.
Title: Re: Akismet Spam Protection
Post by: Ol' Wombat on November 12, 2007, 03:24:38 PM
I've installed the fixed Akismed mod and can not post any message:

Fatal error: Cannot redeclare class Akismet in /home/myenchan/public_html/forum/Sources/Akismet.class.php on line 55


uninstalling corrupts the database due to this error

Unknown column 't.spam' in 'where clause'
File: /home/myenchan/public_html/forum/Sources/MessageIndex.php
Line: 461


how can I fix that?




Title: Re: Akismet Spam Protection
Post by: Ol' Wombat on November 12, 2007, 04:00:50 PM
Found the Akismet function twice in Subs-Post - deleted one!

A new error pops up:

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

..and here is line 1599:

SUBSTRING('$posterOptions[ip]', 1, 255), " . ($msgOptions['smileys_enabled'] ? '1' : '0') . ", '',  " . ($spam == true ? '1' : '0') . ",  " . ($spam == true ? '1' : '0') . ", SUBSTRING('$msgOptions[icon]', 1, 16))", __FILE__, __LINE__);


looks like there is something double as well - I can't sort that coz the syntax is too cryptic for me!
Help!


Title: Re: Akismet Spam Protection
Post by: TrueSatan on November 12, 2007, 09:23:57 PM
If the mod is doubled in one of your files that it edits the probability is that it is doubled in all of them...check each of the edited files and remove the duplications.
Title: Re: Akismet Spam Protection
Post by: Ol' Wombat on November 12, 2007, 09:41:30 PM
I am genuinely finished with that mess!  :)
No more Akismet for me.


Title: Re: Akismet Spam Protection
Post by: LoveFlying on December 15, 2007, 11:25:38 PM
I'm not getting the Configuration link.

SMF 1.1.4
Standard theme
Akismet Spam Blocking verision 1.1.1

It installs OK. It's listed under installed packages.  But no configuration link.

Thanks for your help.
Title: Re: Akismet Spam Protection
Post by: shinji257 on January 29, 2008, 10:43:07 AM
Just so you guys know.  I was installing some mods and Akismet Spam Filtering and vReportBoard mods conflict with each other.  No amount of special editing will work around it.  I had done some reversions to get it to try to go but the issue is with the sql query in one of the files.  Specifically ./Sources/Display.php fails the test.

This is due to this edit:
<operation>
<search position="before">smileysEnabled, posterName, posterEmail,</search>
<add> spam,</add>
</operation>
<operation>
<search position="before"><![CDATA[
FROM {$db_prefix}messages
WHERE ID_MSG IN (" . implode(',', $messages) . ")
]]></search>
<add><![CDATA[{$spamclause}]]></add>
</operation>

I'll try to get it to work again sometime but it isn't a priority.
Title: Re: Akismet Spam Protection
Post by: L'AltroWeb on April 26, 2008, 03:46:21 PM
Quote from: Ol' Wombat on November 12, 2007, 03:24:38 PM
I've installed the fixed Akismed mod and can not post any message:
Fatal error: Cannot redeclare class Akismet in /home/myenchan/public_html/forum/Sources/Akismet.class.php on line 55
HI!
I have the same problem.
If you want you can test here (guest can write to this board):
http://darkwolf.altervista.org/forum/index.php?topic=5.0
How i can fix?
Thanks in advance, DarkWolf  :)
-
Edit!
I have actually uninstalled  ::)
-
Riedit: i have full uninstalled and reinstalled, now is ok (mark spam etc) but:
1) if i delete a spam post my database is corrupt
2) guest or "standard user" post is really slow (10 minute and+)
I love akismet with wordpress but... sorry IMHO this smf mod is unsafe and really bugged  :(
Title: Re: Akismet Spam Protection
Post by: ryanhellyer on April 30, 2008, 08:45:04 PM
Hi, great idea for a plugin you have here.

Do you have any plans to upgrade this for SMF2? I'm using the new version to moderate guest posts on my new forum (http://pixopoint.com/forum/), but would love to implement Akismet to avoid having to pour through hordes of spam just to find the real posts.
Title: Re: Akismet Spam Protection
Post by: Freederic on May 06, 2008, 07:13:38 AM
Hi,

As "Daniel15" wrote :
QuoteNote that this may differ depending on your theme. If in doubt, write a comment, and I'll see how to modify your theme.

I can confirm  ;) on the theme I use Akismet don't run as I expected!

firstly I have to tell you :
I am a real news forum admin, I have no knowedge on PHP as development.
The only thing I do is copy and paste  ;) And I think I do that well O:)
... if I know wahat and where to copy.
So.

I install SMF 1.1.4 then french patch.
Everything was OK.
"SMF" code check for an upgrade and propose to install the 1.1.5 patch.
Done.
No problem.

I set and use Classic YaBB SE theme.
My forum is french reader/writer only.

I download Akismet, got a API key then install the Akismet MOD through the SMF // Admin // packet manager //Download // then Install - activate -or ssomething like that.

Install result wrote .. OK install successfully!

But, after that, I was not able to write new post.
I got error  :
QuoteErreur de base de données: MySQL server has gone away
Fichier: /homepages/6/d179291000/htdocs/services/test/Sources/Subs-Post.php
Ligne: 1602

and the link to Subs-Post.php (http://dnl.eisfi.net/outils/Subs-Post.php)
This file is the original one modified by the Akisment installation.

I check on this topic and can't found which file and what to edit ...

Please help.
Title: Re: Akismet Spam Protection
Post by: Freederic on May 17, 2008, 05:28:17 AM
So,  ???

no more comment?
Is someboby still here  ;)
Title: Re: Akismet Spam Protection
Post by: ssufian on July 02, 2008, 02:31:38 AM
Quote from: Frederic on May 17, 2008, 05:28:17 AM
So,  ???

no more comment?
Is someboby still here  ;)


Oh no!

This thread has not been updated since May 17!

Where is this mod admin?
Title: Re: Akismet Spam Protection
Post by: Achillea on July 16, 2008, 11:53:16 AM
Will this work on 1.1.5?
Title: Re: Akismet Spam Protection
Post by: ssufian on July 30, 2008, 03:14:50 PM
Quote from: Achillea on July 16, 2008, 11:53:16 AM
Will this work on 1.1.5?

Don't use it in 1.1.5

I've tried it before

Disastrous!

I have to uninstall them manually tracking back one by one...
Title: Re: Akismet Spam Protection
Post by: Achillea on August 01, 2008, 04:55:16 PM
Thanks for the warning, ssufian.  Sounds like it's more trouble than the spammers themselves.
Title: Re: Akismet Spam Protection
Post by: ssufian on August 03, 2008, 04:33:06 AM
Quote from: Achillea on August 01, 2008, 04:55:16 PM
Thanks for the warning, ssufian.  Sounds like it's more trouble than the spammers themselves.

Welcome...

I still hope the owner will come back or some other mod for Akismet created
Title: Re: Akismet Spam Protection
Post by: Shyrider on August 20, 2008, 02:58:04 AM
Cannot use Akismet anymore.
Board version: 1.1.5

Akismet slows down posting so badly that we have had to remove it entirely. Tried uninstalling and reinstalling, with no luck.

Is there any other type of spam blocker that can be used for SMF?
Title: Re: Akismet Spam Protection
Post by: Kalina on October 28, 2008, 04:29:08 PM
I just installed this on 1.1.6 and it's working wonderfully, nothing's slowed down thus far, thanks for the mod!
Title: Re: Akismet Spam Protection
Post by: genieuk on October 28, 2008, 04:48:34 PM
Hi,

I am a little confused over something,

How does it know what is spam ??? , i mean is there a file with a bunch of words in and it checks those words to see if they exist and if so reports it as spam?

I dont understand that,

Mathew
Title: Re: Akismet Spam Protection
Post by: Kalina on October 28, 2008, 06:04:47 PM
Apparently it does it through Akismet, which is why you need a key to connect to their database, basically something like that, I am not sure how to explain.
Title: Re: Akismet Spam Protection
Post by: genieuk on October 28, 2008, 06:19:50 PM
Quote from: Kalina on October 28, 2008, 06:04:47 PM
Apparently it does it through Akismet, which is why you need a key to connect to their database, basically something like that, I am not sure how to explain.

mmmm, would be interesting to here from the author of this mod about this, i would like to see what words it refers as spam as it may mislead genuine posts sometimes, i wonder if i can view a list of words that it classes as spam

Mathew
Title: Re: Akismet Spam Protection
Post by: Kalina on October 28, 2008, 06:36:49 PM
Quote from: genieuk on October 28, 2008, 06:19:50 PM
mmmm, would be interesting to here from the author of this mod about this, i would like to see what words it refers as spam as it may mislead genuine posts sometimes, i wonder if i can view a list of words that it classes as spam

Mathew

Ok, well in the meantime here's some more information about how Akismet works. http://akismet.com/faq/
Title: Re: Akismet Spam Protection
Post by: Ash_SWCMS on November 14, 2008, 10:51:00 AM
This mod has been great for stopping spam. I use the RSS feed and spam still shows in the feed. To fix this in 1.1.7 I edited /Sources/News.php, around line 186

Find
AND b.ID_BOARD != $modSettings[recycle_board]" : ''). '
AND m.ID_MSG >= ' . max(0, $modSettings['maxMsgID'] - 100 - $_GET['limit'] * 5);


and add

AND m.spam = 0

so that it looks like...

AND b.ID_BOARD != $modSettings[recycle_board]" : ''). '
AND m.spam = 0
AND m.ID_MSG >= ' . max(0, $modSettings['maxMsgID'] - 100 - $_GET['limit'] * 5);
Title: Re: Akismet Spam Protection
Post by: Ash_SWCMS on November 17, 2008, 10:19:35 AM
'Recent Posts' also shows items that Akismet caught.
\Sources\Recent.php  around line 282

Find
WHERE b.ID_BOARD = m.ID_BOARD
AND $query_this_board
ORDER BY m.ID_MSG DESC
LIMIT $_REQUEST[start], 10", __FILE__, __LINE__);


add
AND m.spam = 0

so it now looks like

WHERE b.ID_BOARD = m.ID_BOARD
AND $query_this_board
AND m.spam = 0
ORDER BY m.ID_MSG DESC
LIMIT $_REQUEST[start], 10", __FILE__, __LINE__);
Title: Re: Akismet Spam Protection
Post by: ryanhellyer on November 20, 2008, 10:30:51 PM
Quote from: genieuk on October 28, 2008, 06:19:50 PMmmmm, would be interesting to here from the author of this mod about this, i would like to see what words it refers as spam as it may mislead genuine posts sometimes, i wonder if i can view a list of words that it classes as spam

The author of the mod wouldn't know. This mod is just an implementation of the Akismet spam service which was created my Matt Mullenweg. The mod does not actually check anything, it just acts as a bridge between Akismet and SMF. Matt has a blog at ma.tt (http://ma.tt/) (yes, that is indeed the URL!). There is no way he is going to tell you how it works though as that would allow the spammers a way to circumvent it. This is by far the most effective anti-spam service available and he won't want to risk damaging that reputation by releasing details of how it works.
Title: Re: Akismet Spam Protection
Post by: WhatsTheRent on November 22, 2008, 09:20:24 PM
Hey everybody.  This Mod works great for me, catches everything.  But...  the forum still sends out notification emails, such as "new topic posted in...".  Those go out to all the users that have notification turned on.  Of course if they click the link it goes nowhere since this mod blocked the post from going up, but sometimes the subject lines of those emails contain some rather dirty language which has been a bit embarrassing for me to explain.

Is there a way to also block the instant email notifications if the post is marked as spam?

Also I am using 1.1.7, and the posting for legit items is a bit slow, about 30 seconds.  Still better than having tons of spam tho

Thanks again for the great mod
Title: Re: Akismet Spam Protection
Post by: WhatsTheRent on November 29, 2008, 11:23:47 PM
Another suggestion for this mod...  there is a bit of a delay after the user hits "post," but thats fine with me, but a new user might get impatient.  how about a window that pops up saying something like "please wait while your post is verified" or something like that.  just something so that they know it is thinking and not to hit the back button or anything
Title: Re: Akismet Spam Protection
Post by: LDeeJay on December 12, 2008, 10:14:47 PM
I installed this one manually on 1.1.7 It works in the way that it catches spam (that's what the control panel tells me) but while posting I receive a time out (as admin, user and guest) stating:

QuoteThe file http://gamequestions.efzeven.nl/index.php?action=post2;start=0;board=1 cannot be found. Please check the location and try again.

When I browse back and refresh, the post is written so it's mainly the redirect after the posting that causes the problem. Is this something familiar to anyone and better still, can this be easilly resolved?

Thanks for your time.
Title: Re: Akismet Spam Protection
Post by: invadermedia on December 16, 2008, 06:56:17 PM
I'm on SMF 1.1.5 and Akismet_1-1-1_Fixed1 and I get a pretty long delay when posting. Any suggestions?
Title: Re: Akismet Spam Protection
Post by: MoreBloodWine on January 23, 2009, 02:59:30 AM
Ok, so I installed the mod and it seems to work but that "check" time delay is realllly annoying... any way around that ?

ie: Speed it up...

Edit: Also, any chance of adding a PM feature to this so whenever a post / reply is marked as SPAM it notifies the Admin(s) about it. I only ask this because I dont check my Admin section alot and if I get posts marked as SPAM by mistake I dont wana piss my users off by taking a while to get around to it.

The next two edits are the main biggies the other stuff could be ignored if one so wished... but I feel the below two "edits" should be looked at especially the first one "edit 2".

Edit 2: I just noticed something that kinda defeats the purpose of having this mod... it may hide / mark posts as SPAM but they still show up when you click the view un-read posts link. Anything that can be done about that ?

Edit 3: Something else just hit me as well as I just found soemthing...

1. Is there a way to condense how much of the post is shown in the Akismet admin panel. Reason I ask is usually within the first 10 lines of a post you can read it to see if its SPAM or not and with these really lengthy SPAM posts I've been getting it makes things bit of a ****** to read to see whats what.

2. I have guest posting enabled on a help board for my site and well thats where SPAM's showing up but that aside I'm getting the following errors in my sites error log that seem to show up whenever one of the guest SPAM posts are caught.
8: Undefined index: HTTP_REFERER
File: /home/eojmarke/public_html/Sources/Akismet.class.php
Line: 100
Title: Re: Akismet Spam Protection
Post by: HR on May 08, 2009, 07:59:19 AM
Might have to try and get this up in my RC1
Title: Re: Akismet Spam Protection
Post by: shadowravenhawk on June 05, 2009, 11:59:12 AM
I followed all the instructions and made all the page changes but it still isn't working. I am running SMF 1.1.5 and the Alien Nation theme. I have attached the files. I would appreciate any help on this.
Title: Re: Akismet Spam Protection
Post by: Sanhux on June 08, 2009, 01:09:41 PM
Hello

This mod work in the curret stable version? And will work when 2.0 finally comes out?

There's a way to enable it only for unregistered (guest) users?

Thanks

Title: Re: Akismet Spam Protection
Post by: shadowravenhawk on June 08, 2009, 01:51:18 PM
guests are banned from posting on my forum.
Title: Re: Akismet Spam Protection
Post by: shadowravenhawk on June 14, 2009, 11:22:15 AM
How can I get this mod to work for registered users?
Title: Re: Akismet Spam Protection
Post by: shadowravenhawk on June 21, 2009, 10:45:46 AM
Does anybody know how to get this working?
Title: Re: Akismet Spam Protection
Post by: Sanhux on June 29, 2009, 08:17:48 PM
Modification in

./Themes/default/Display.template.php

fails when try to apply mod in the latest stable release SMF 1.1.9

Title: Re: Akismet Spam Protection
Post by: shadowravenhawk on July 05, 2009, 11:12:28 AM
Can someone please help me with this? See reply #135
Title: Re: Akismet Spam Protection
Post by: Yakumo on July 20, 2009, 05:12:21 PM
tried to install, i just get told :

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

on SMF 1.1.10 (upgrade install, then installed youtube bbcode, Create Topic on Report to Moderator, Seo 4 SMF)
Title: Re: Akismet Spam Protection
Post by: shadowravenhawk on September 23, 2009, 02:21:15 AM
The ad mod is failing on a test on display.template.php. I had it in there and had to rip it for the akismet/stop spammer problem. This is the same file so it should go in. What can I do?
Title: Re: Akismet Spam Protection
Post by: shadowravenhawk on September 25, 2009, 03:35:07 AM
I can't get Akismet to go back in. I reinstalled the same files and it doesn't work MessageIndex.php and Display.php are still acting like I got the stop spammer in there. Where does file SSI.php go?
Title: Re: Akismet Spam Protection
Post by: erlend_sh on November 12, 2009, 05:21:16 PM
My forum has one particular member (http://www.jmonkeyengine.com/forum/index.php?action=profile;u=5492) that seems to be recognized as a spammer every time he posts, even though I have repeatedly whitelisted his posts. Is there any way to whitelist his account? Every account that's ever had a post whitelisted, or even have more than say 50 posts, should be automatically whitelisted really.
Title: Re: Akismet Spam Protection
Post by: Beagleboys on November 21, 2009, 06:05:37 AM
will this mod get upgrade for smf 2.0??
Title: Re: Akismet Spam Protection
Post by: ryanhellyer on December 23, 2009, 03:11:40 AM
Quote from: erlend_sh on November 12, 2009, 05:21:16 PM
My forum has one particular member (http://www.jmonkeyengine.com/forum/index.php?action=profile;u=5492) that seems to be recognized as a spammer every time he posts, even though I have repeatedly whitelisted his posts. Is there any way to whitelist his account?

Not within Akismet itself. You can report errors, but if someone is being blacklisted then it is probably for a reason so reporting it isn't going to work.

Quote from: erlend_sh on November 12, 2009, 05:21:16 PMEvery account that's ever had a post whitelisted, or even have more than say 50 posts, should be automatically whitelisted really.

Yeah, that would be a nice feature for the MOD to have.

It doesn't look like this thing is every going to be updated though unfortunately :(

Title: Re: Akismet Spam Protection
Post by: live627 on February 27, 2010, 11:32:54 PM
Okay I have finally updated this mod. SMF 1.1 users need not upgrade, nothing changed for them.

It's SMF 2 support that's new, and is why this mod has entered beta status. I need some people to test this mod by making a spam post and then look for it wherever you see posts. Recent posts, unread replies, message index, etc. and report back where you found the spam post. This will really help in improvements, there are so many places to cover that I may have missed some of them.

Thanks guys
Title: Re: Akismet Spam Protection
Post by: TheListener on February 28, 2010, 12:39:09 AM
Will be installing the mod on my test forum which is on 2.0rc2.

However those with the user cp mod installed may find the following on install:

Add After     ./Sources/Profile-View.php     Test failed

I will be looking at this soon.

(is 5:40am)


EDIT: The aquired key needs to be placed in the akismet box under features & options > forum.

Title: Re: Akismet Spam Protection
Post by: .Crazy.Face. on February 28, 2010, 02:22:54 AM
I used this as a plugin on my MyBB forum once. But, realizing the SMF just tops all other forum software right off, I decided to convert and lost that plugin! Thank monkeys for you! :] You rock!
Title: Re: Akismet Spam Protection
Post by: giveaway365.com on February 28, 2010, 04:30:00 AM
does not work on 1.1.11
Title: Re: Akismet Spam Protection
Post by: TheListener on February 28, 2010, 06:00:13 PM
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/xxxxx/public_html/forum/Sources/Subs-Post.php on line 1833

// Increase spam count
      $smcFunc['db_query']('', '
         UPDATE {db_prefix}settings
         SET value = value + 1
         WHERE variable = {string:akismetCaughtSpam''}
         array(
            'akismetCaughtSpam' => 'akismetCaughtSpam', (line 1833)

Any ideas Live?
Title: Re: Akismet Spam Protection
Post by: TheListener on February 28, 2010, 06:01:13 PM
Quote from: giveaway365.com on February 28, 2010, 04:30:00 AM
does not work on 1.1.11

Can you please explain more.
Title: Re: Akismet Spam Protection
Post by: TheListener on February 28, 2010, 06:41:30 PM
Hello stranger hows you?

Will have a look and let ya know.
Title: Re: Akismet Spam Protection
Post by: Sabre™ on February 28, 2010, 06:46:18 PM
Yeah good mate, nah nah, I just had a quick look through the package and will leave it for live to reply, so removed my post.
I might install it another time and go through it, but not right now. Im in the middle of building a new site, so busy busy busy lol
Title: Re: Akismet Spam Protection
Post by: TheListener on February 28, 2010, 06:51:11 PM
What you suggested didn't work.

:(
Title: Re: Akismet Spam Protection
Post by: Sabre™ on February 28, 2010, 06:55:55 PM
Read above post ~~
Title: Re: Akismet Spam Protection
Post by: TheListener on February 28, 2010, 06:59:27 PM
Quote from: Sabre™ on February 28, 2010, 06:55:55 PM
Read above post ~~

Already did bud.

Anyways I have a private test forum now so it doesn't matter if the bugs get it lol
Title: Re: Akismet Spam Protection
Post by: giveaway365.com on February 28, 2010, 11:12:07 PM
Quote from: Brack1 on February 28, 2010, 06:01:13 PM
Quote from: giveaway365.com on February 28, 2010, 04:30:00 AM
does not work on 1.1.11

Can you please explain more.

The admin panel only showed me the version all other push buttons were blank.
Title: Re: Akismet Spam Protection
Post by: tanshin on March 01, 2010, 07:35:59 AM
Hi there! I'm having an issue with installation on 2.0 RC2. The issue is with the second step of the view-profile.php file.
FIND
FROM {db_prefix}draft_messages AS m' . ($user_info['query_see_board'] == '1=1' ? '' : ' INNER JOIN {db_prefix}boards AS b ON (b.id_board = m.id_board AND {query_see_board})') . ' WHERE m.id_member = {int:current_member} 
ADD AFTER
  AND m.spam = 0 

Attached are my mods.
Title: Re: Akismet Spam Protection
Post by: live627 on March 01, 2010, 04:22:37 PM
Quote from: Brack1 on February 28, 2010, 06:00:13 PM
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/xxxxx/public_html/forum/Sources/Subs-Post.php on line 1833

// Increase spam count
      $smcFunc['db_query']('', '
         UPDATE {db_prefix}settings
         SET value = value + 1
         WHERE variable = {string:akismetCaughtSpam''}
         array(
            'akismetCaughtSpam' => 'akismetCaughtSpam',

Any ideas Live?

WHERE variable = {string:akismetCaughtSpam''}

needs replaced with

WHERE variable = {string:akismetCaughtSpam}

(The quotes need removed)
Title: Re: Akismet Spam Protection
Post by: JamesKilton on March 02, 2010, 12:43:11 PM
So, this mod is completely broken against 1.1.11 (1.2-beta of course, 1.1-fixed is flagged as incompatible):

It installs fine, but I get the empty link, and going to the page directly, there's no text. So I went looking for the text, and ... it doesn't exist. The installer has no idea what any of the admin text is supposed to be.  I think I can make it work as the 1.1-Fixed has all the text keys appropriately, but this is a pretty huge oversight packaging 1.2-beta.

Please fix this asap.
Title: Re: Akismet Spam Protection
Post by: giveaway365.com on March 03, 2010, 12:29:37 AM
This mod is now dangereous
Title: Re: Akismet Spam Protection
Post by: live627 on March 06, 2010, 01:17:50 AM
1.2 beta 2 has been released!

Fixed missing language strings for SMF 1.1.11
Fixed parse errors (one detected, bad query)
More areas where spam posts are hidden
Refined spam alert on topic view; looks nicer
added a show me this post link on said alert
Title: Re: Akismet Spam Protection
Post by: tanshin on March 06, 2010, 10:55:21 AM
Quote from: tanshin on March 01, 2010, 07:35:59 AM
Hi there! I'm having an issue with installation on 2.0 RC2. The issue is with the second step of the view-profile.php file.
FIND
FROM {db_prefix}draft_messages AS m' . ($user_info['query_see_board'] == '1=1' ? '' : ' INNER JOIN {db_prefix}boards AS b ON (b.id_board = m.id_board AND {query_see_board})') . ' WHERE m.id_member = {int:current_member} 
ADD AFTER
  AND m.spam = 0 

Attached are my mods.

I'm still having this issue with b2
Title: Re: Akismet Spam Protection
Post by: live627 on March 06, 2010, 01:03:58 PM
Oh thanks for pointing that out! I've changed that and re-uploaded the package
Title: Re: Akismet Spam Protection
Post by: tanshin on March 06, 2010, 02:38:57 PM
Looks like we're good and running!

I guess the only improvement that I can see would be some form of notification to admins that there are spam posts (perhaps an ! after the admin link)
Title: Re: Akismet Spam Protection
Post by: live627 on March 06, 2010, 09:53:07 PM
That's a great idea! I'll include it in the next release
Title: Re: Akismet Spam Protection
Post by: giveaway365.com on March 07, 2010, 12:15:24 PM
is this mod stable for smf 1.1.11?
last time it did not work a bit...
Title: Re: Akismet Spam Protection
Post by: IdanC on March 21, 2010, 12:03:14 PM
hi,

it seems like every reply from any ip gets this messeage -

Warning: Your post has been classified as spam, and will not be visible to the public until an administrator or moderator approves it.

and the weird thing is, that the post IS visible to the public, and all can see this msg...

i use smf2 rc2
Title: Re: Akismet Spam Protection
Post by: Bugo on March 22, 2010, 05:27:43 AM
Please add russian translation
Title: Re: Akismet Spam Protection
Post by: harryxyz on April 09, 2010, 11:53:10 AM
in the displaytemplate.php of my default theme as well as the Underground theme i use I cannot find this line you mentioned:"<a href="', $message['href'], '">', $message['subject'], '</a>
                           </div>';"

There is no such line: Two lines close to this line are:
1"<td width="10%" valign="middle" align="right">
                                <span class="smalltext"><a href="', $message['href'], '">#', $message['counter'], '</a></span>';"

2.<div style="font-weight: bold;" id="subject_', $message['id'], '">
                                    ', $message['subject'], '
                                </div>

Please tell me what to do. Will be really grateful for the great help
Title: Re: Akismet Spam Protection
Post by: marknekk on April 09, 2010, 05:59:56 PM
Hmm... I was trying to use this mod, but the "Akismet Configuration" text doesn't appear in the Admin-zone... no matter what language I choose... english, english british, spanish... whatever... tried the 1.2b2 or so... (not the 1.11fixed which doesn't install)
Title: Re: Akismet Spam Protection
Post by: aliweb on May 03, 2010, 11:47:28 AM
Quote from: giveaway365.com on March 07, 2010, 12:15:24 PM
is this mod stable for smf 1.1.11?
last time it did not work a bit...

Yeah I tried just now and it doesn't work. Any updates on this?
Title: Re: Akismet Spam Protection
Post by: Pieti on May 13, 2010, 04:47:25 PM
Hello!

I get this error:

Undefined index: akismetCaughtSpam
Datei: /xxx/Themes/default/Akismet.template.php (main sub template - eval?)
Zeile: 67

Line: 67
global $txt, $modSettings, $scripturl, $context;

Any who knows how to solve it?

Nice Greetings
Title: Re: Akismet Spam Protection
Post by: ehsizzup on May 27, 2010, 11:01:14 AM
How is this mod with SMF2 RC3?
Title: Re: Akismet Spam Protection
Post by: tj.baker on June 01, 2010, 06:49:48 PM
Quote from: aliweb on May 03, 2010, 11:47:28 AM
Quote from: giveaway365.com on March 07, 2010, 12:15:24 PM
is this mod stable for smf 1.1.11?
last time it did not work a bit...

Yeah I tried just now and it doesn't work. Any updates on this?

No go for me and 1.1.11 either ......

Would really love to get this mod working :(
Title: Re: Akismet Spam Protection
Post by: V@no on June 03, 2010, 07:32:27 PM
Hello.

First of all, thank you for this very needed mod.

I have successfully installed it on SMF v1.1.111, but with some manual modifications.

The install11.php uses updateSettings() function, which doesn't work in SMF 1.1.111, that's why some people see warning messages at Akismet configuration page.
I had to add this:
db_query("
REPLACE INTO {$db_prefix}settings
(variable, value)
VALUES (SUBSTRING('akismetCaughtSpam', 1, 255), SUBSTRING('0', 1, 65534)), (SUBSTRING('akismetAPIKey', 1, 255), SUBSTRING('', 1, 65534))", __FILE__, __LINE__);


Then, these two lines work only on MySQL5 and newer:
$request = db_query("SHOW COLUMNS FROM {$db_prefix}messages WHERE Field = 'spam'", __FILE__, __LINE__);
$request = db_query("SHOW COLUMNS FROM {$db_prefix}topics WHERE Field = 'spam'", __FILE__, __LINE__);

I had to replace them with these, they work with any mysql version:
$request = db_query("SHOW COLUMNS FROM {$db_prefix}messages LIKE 'spam'", __FILE__, __LINE__);
$request = db_query("SHOW COLUMNS FROM {$db_prefix}topics LIKE 'spam'", __FILE__, __LINE__);


Just in case I've attached fixed install11.php



Now, how is the new version coming? any updates on when we will see it? Will it include moderators support?

Thank you.
Title: Re: Akismet Spam Protection
Post by: giveaway365.com on June 04, 2010, 03:04:52 AM
Thanks for the code! I hope it will help people who r on 1.1.11
I have shifted to RC3 from April 2010.
Title: Re: Akismet Spam Protection
Post by: tj.baker on June 04, 2010, 03:41:30 PM
Thanks for the info V@no

Sorry to be such a dimwit, but would it be possible for you to clarify where you added the lines:

db_query("
REPLACE INTO {$db_prefix}settings
(variable, value)
VALUES (SUBSTRING('akismetCaughtSpam', 1, 255), SUBSTRING('0', 1, 65534)), (SUBSTRING('akismetAPIKey', 1, 255), SUBSTRING('', 1, 65534))", __FILE__, __LINE__);


Did you just put that in the install11.php file ?  Did you have to remove anything else, re the updateSetting()function? 

Thanks for the help!
Title: Re: Akismet Spam Protection
Post by: V@no on June 04, 2010, 08:58:53 PM
I've attached modified instal11.php to my original reply (http://www.simplemachines.org/community/index.php?topic=138076.msg2653601#msg2653601).
Title: Re: Akismet Spam Protection
Post by: tj.baker on June 07, 2010, 03:41:54 PM
Perfect!  Thanks V@ano ... I now have Akismet working on our forum  :)

Appreciate the help ...

And much thanks to the creators of the mod!!!
Title: Re: Akismet Spam Protection
Post by: sumeshpremraj on August 14, 2010, 12:59:23 PM
Quote from: Spuds on August 02, 2010, 09:07:25 AM
I don't know if this mod is still being worked on or not ....

Downloaded the 1.2b2 version and installed it on RC3, it installed fine so that's the good news.  The issues I noticed are all around the admin functions, and specifically caused by the Admin-Akismet.template which appears to be either the wrong file or just half baked.

For example the template_info function has vars such as $txt['DreamShop_latest_news'] etc not that its matters since that template is never called, the admin function tries to call show_settings instead which shows but there are problems with saving or getting help on that screen.  Also the viewSpam template has the title of $txt['showAttachments'] which is not correct ... etc   So to me it looks like the wrong file got included into the zip distribution

I'm having trouble installing Akismet on RC3 too. It installed but when I click Akismet sub menu (API key can be entered but the other link does not work), an error is shown instead. Are there any quick fixes for it or do I have to wait till final SMF 2 release for Akismet?
Title: Re: Akismet Spam Protection
Post by: live627 on August 15, 2010, 01:52:40 AM
I completely forgot the template was half wrong lol

But to answer your question, afraid you'll have to wait
Title: Re: Akismet Spam Protection
Post by: sumeshpremraj on August 16, 2010, 09:06:38 AM
Waiting is not a problem, after all this is free mod so you are not really under any obligation. Just an assurance that you're working on it is enough :=)

Thanks.
Title: Flagged spam shows up in RSS
Post by: pitamatein on September 11, 2010, 05:15:56 PM
Is it possible for flagged spam to not show up in RSS? I have other sites that get feeds from my SMF forum, and I have to manually delete the spam feeds.

(I like Askimet and appreciate your making it possible to incorporate it into SMF.)
Title: Re: Akismet Spam Protection
Post by: coolfx350 on November 12, 2010, 02:30:40 PM
it says if you have 25,000 pages views you need to get a paid version?

What will happened if i use the free one on a site that has more than 50k pageviews.
Title: Re: Akismet Spam Protection
Post by: drusso1 on December 10, 2010, 09:17:02 AM
Without making a backup immediately before I did so (foolish, I know), I installed Akismket 111-FIXED1 on SMF 1.1.12 with the Flagrant theme (by Crip) and Pretty URLs. No other packages. I do have a day-old back up of the forum which I would rather not go back to.

I got no errors during the install of Akismet. I got a success message.

Right after that, users reported this error:

Fatal error: Cannot redeclare class Akismet
in /home/gatordav/public_html/forum_sm/Sources/Akismet.class.php on line 55


I unstalled Akismet. After that, when I attempted to access any forum, I got a generic message saying that there was a database problem (not just the PHP problem reported above).

I ran the standard MYSQL checks and fixes against the database tables. No errors were reported.

I thought that I might be able to help things (famous last words) by unstalling SMF 1.1.12, then reinstalling it.  I did so. That did not help, but now I have what seems like a better error message:

  Unknown column 't.spam' in 'where clause'
File: /home/gatordav/public_html/forum_sm/Sources/MessageIndex.php
Line: 473

Note: It appears that your database may require an upgrade. Your forum's files are currently at version
SMF 1.1.12, while your database is at version 1.1.11. The above error might possibly go away if you
execute the latest version of upgrade.php.
 

Unfortunately I do not see upgrade.php anywhere on my forum -- which for all I know is a good thing since I don't want someone else running this file. But I am stuck at this point.

Suggestions?
Title: Re: Akismet Spam Protection
Post by: drusso1 on December 10, 2010, 02:48:24 PM
Thanks, Spud. I uninstalled my one remaining mod (Pretty URLs), then I replaced the three PHP files that were identified in the forum error messages (Display.php, MessageIndex.php, Subs-Post.php) with SMF 1.1.12 originals. Then I reinstalled  Pretty URLs. I see that I still have some Akismet files, which I will go bakc and delete at some point.

I might wait a while before I try the Akismet mod for SMF 1.x. I might wait for SMF 2.x

Thanks, again.
Title: Re: Akismet Spam Protection
Post by: Dorr Altizer on January 04, 2011, 08:35:27 PM
Using SMF 1.1.12. I downloaded this mod from the Package Manager "Browse" list and it shows on the downloaded list like this:

Modification Packages
Mod Name Version
1. Akismet Spam Blocking 1.2 Beta 2

Clicking on the "Apply Mod" I get this:

Install Actions
Installations actions for "Akismet Spam Blocking":
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/Subs-Post.php Test successful
3. Execute Modification ./Sources/Post.php Test successful
4. Execute Modification ./Sources/Subs.php Test successful
5. Execute Modification ./Sources/Display.php Test successful
6. Execute Modification ./Sources/Recent.php Test successful
7. Execute Modification ./SSI.php Test successful
8. Execute Modification ./Sources/MessageIndex.php Test successful
9. Execute Modification ./Sources/Profile.php Test successful
10. Execute Modification ./Themes/default/index.template.php Test successful
11. Execute Modification ./Themes/default/Display.template.php Test successful
12. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
13. Execute Code install11.php
14. Extract File ./Sources/Akismet.php
15. Extract File ./Sources/Akismet.class.php
16. Extract File ./Themes/default/Akismet.template.php

Clicking on "Install Now" I get this:

Database Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE Field = 'spam'' at line 1
File: D:\inetpub\trainnet\forum\Packages\temp\install11.php
Line: 12

Not being a programmer, I have no idea what this means or how to fix it. Help!!!

Dorr
Title: Re: Akismet Spam Protection
Post by: impreza on January 05, 2011, 06:21:23 AM
Mod looks interesting
Title: Re: Akismet Spam Protection
Post by: bigjoe11a on February 15, 2011, 09:05:18 PM
Well you didn't say that we had to pay for the API key. and can't you do some thing good that doesn't cost us money.

See I just installed it to find out I had to uninstall it.


Title: Re: Akismet Spam Protection
Post by: SN95Forums on March 03, 2011, 07:03:20 PM
I am getting this issue once its activated:

8: Undefined index: akismetCaughtSpam
File: /home/snforums/public_html/Themes/default/Akismet.template.php (main sub template - eval?)
Line: 67

This is on the Akismet Configuration below the "Save API Key" button.

Any ideas?! It appears to be working but I cant see which posts its flagged.
Title: Re: Akismet Spam Protection
Post by: SN95Forums on March 06, 2011, 04:16:37 PM
No one? I really need to be able to view the posts that got flagged.

Thanks
Title: Re: Akismet Spam Protection
Post by: STS on April 06, 2011, 01:17:59 PM
I installed this and everything seemed to go fine. But it isn't showing up in my Admin area. Not in the current theme, or the default theme.
Title: Re: Akismet Spam Protection
Post by: mark7144 on May 20, 2011, 10:37:03 AM
Well, this mod looked promising but is blocking too many legimate posts so I have to uninstall it.

- It's blocking posts where people hotlink to a few images.
- It's blocking posts when people link to news websites such as dailyrecord.co.uk

So what I strongly suggest is for you to allow the admin to choose what member groups have this check so it only applies to guests and new users.
Title: Re: Akismet Spam Protection
Post by: ryansdistrict on May 30, 2011, 04:29:15 AM
Quote from: Spuds on December 10, 2010, 11:04:41 AM
Basically the mod did NOT uninstall properly or completely so you will need to go in to each file and manually remove it, yes a pain but that is what you need to do (unless of course this was the only mod you had).  You can go to the mod page and select your forum version and parse .. use that as a guide for all the changes you will need to back out.

QuoteFatal error: Cannot redeclare class Akismet
in /home/gatordav/public_html/forum_sm/Sources/Akismet.class.php on line 55
This means the same block of code is in there twice, generally caused by an incomplete uninstall followed by a reinstall


QuoteUnknown column 't.spam' in 'where clause'
File: /home/gatordav/public_html/forum_sm/Sources/MessageIndex.php
Line: 473
The main SMF database is fine, this error is because the MessageIndex.php still has some Akismet code in it but the database entries for the mod are no longer there.



I have a similar issue but i got loads of mods installed
Please can you help me resolve this issue

Thanks
Title: Re: Akismet Spam Protection
Post by: ryansdistrict on June 06, 2011, 03:50:45 AM
anyone ?
Title: Re: Akismet Spam Protection
Post by: SD-X on July 02, 2011, 12:53:55 PM
Sorry if someone already mentioned it, I may have missed it, but is this mod SMF 2.0 Gold compatible?
Title: Re: Akismet Spam Protection
Post by: live627 on July 12, 2011, 01:49:12 AM
Beta three released. Only topics get checked since there's no hook available for replies. No edits made, hooks only.
Title: Re: Akismet Spam Protection
Post by: Babadinho on July 18, 2011, 08:26:27 PM
installed but cant find admin panel
Title: Re: Akismet Spam Protection
Post by: Yakumo on July 19, 2011, 07:46:11 AM
Ditto.
SMF 2.0 with default or 'essence' theme.

Akismet Spam Blocking  1.2 beta 3

Pretty URL's 1.0 RC5.1
Youtube BBCode 2.6

I've tried removing the other packages, the akismet configuration options don't appear to show up anywhere, I've searched and searched, they aren't under the forum configuration, or in any of the drop down menu's as described, or anywhere else.
Title: Re: Akismet Spam Protection
Post by: italiansoda on July 19, 2011, 02:25:22 PM
Same here. Not finding the admin configuration

SMF 2
Akismet Spam Protection 1.2 Beta 3
Title: Re: Akismet Spam Protection
Post by: live627 on July 19, 2011, 07:12:18 PM
he wrong file was being called, one that never existed in fact. I fixed that. That silly error caused the mod to not do a thing.
Title: Re: Akismet Spam Protection
Post by: Yakumo on July 19, 2011, 08:10:04 PM
Many thanks for the update, just one small problem still -

Parse error: syntax error, unexpected '!', expecting T_STRING or T_VARIABLE or '$' in *************/htdocs/forum/Sources/Subs-Akismet.php on line 12

this new build hosed my entire forum.

if (empty($_REQUEST['action']) && !empty($board) && empty(!$topic))

should be

if (empty($_REQUEST['action']) && !empty($board) && !empty($topic))

I assume. seems to return the forum to life, and add the menu options anyway.


The config options are under

Configuration --> Modification Settings ->Akismet Spam Blocking.
And not under the forum section where the current download page for the mod states.

I've added an API key, but now posting the test 'akismet-test-123' topic it hasn't been removed as spam
Title: Re: Akismet Spam Protection
Post by: live627 on July 19, 2011, 10:47:05 PM
QuoteI've added an API key, but now posting the test 'akismet-test-123' topic it hasn't been removed as spam
The mod relies on post modeeration to be enabled. It should mark spam unapproved. I'll update the mod page with this info in a bit.
Title: Re: Akismet Spam Protection
Post by: pball on July 20, 2011, 10:36:41 AM
I tried installing 1.2 b3 on SMF 2.0 and after the install completed the forum didn't load any more. I had to delete the setting entries it added to the db for the site to load again.

Any clue what could be wrong?
Title: Re: Akismet Spam Protection
Post by: Yakumo on July 20, 2011, 03:55:03 PM
yes, read my previous post in this thread, 2 above you, I'm guessing you had the same error?
Title: Re: Akismet Spam Protection
Post by: Yakumo on July 20, 2011, 05:45:40 PM
I added an akismet wordpress api key to the settings.

I enabled post moderation under core features and saved the settings.
I posted the akismet test from a regular user test account.
I still can't find any sign of the akismet mod doing anything :/
Title: Re: Akismet Spam Protection
Post by: pball on July 20, 2011, 08:13:36 PM
thanks Yakumo that stupid ! was the problem. I didn't get any error at all so I skipped your post since you at least got an error.
Title: Re: Akismet Spam Protection
Post by: live627 on July 20, 2011, 08:16:18 PM
I fixed that. Some calls were not done correctly.
Title: Re: Akismet Spam Protection
Post by: pball on July 20, 2011, 08:19:52 PM
did you happen to fix this error just now?

Field 'spam' doesn't have a default value
File: C:\vhosts\forum\Sources\Subs-Post.php
Line: 1859

I got that when i tried posting a new thread
Title: Re: Akismet Spam Protection
Post by: live627 on July 20, 2011, 08:29:11 PM
Do you have beta 2? Because b3 does not edit any file.
Title: Re: Akismet Spam Protection
Post by: pball on July 20, 2011, 09:12:59 PM
i just downloaded the b3 that was updated a few hours or so ago.
Title: Re: Akismet Spam Protection
Post by: live627 on July 21, 2011, 12:15:59 AM
Can you execute the following query in phpMyAdmin?

ALTER TABLE `smf_dev_topics` CHANGE `spam` `spam` TINYINT( 1 ) NOT NULL DEFAULT '0'
Title: Re: Akismet Spam Protection
Post by: Yakumo on July 21, 2011, 04:36:56 AM
Well there is one problem for me for a start.
There is no smf_dev_topics table at all :/
Title: Re: Akismet Spam Protection
Post by: live627 on July 21, 2011, 08:49:33 PM
Try smf_topics
Title: Re: Akismet Spam Protection
Post by: Yakumo on July 25, 2011, 08:35:46 PM
in smf_topics it already was tinyint(1) but I ran the query anyway.
ALTER TABLE `smf_topics` CHANGE `spam` `spam` TINYINT( 1 ) NOT NULL DEFAULT '0'
performed with no errors.

the akismit test still has no effect,  nothing is triggered in the moderation log, everyone can see the post.
Title: Re: Akismet Spam Protection
Post by: gavinseim on September 16, 2011, 12:46:53 PM
Using 1.2 b2 on SMF 2.0. From what I can tell this mod is doing nothing. Moderation is enabled.

It installed OK on the default theme and under configuration/modification settings there is a link with no name that leads to a settings panel that has no text or descriptions (but does have Akismet mentioned in the url). And only a field where you can enter your Akismet number.

When I first installed the mod I though I actually had a config page with more info, but even then the mod never seemed to stop the test posts. Would be nice to get this working.
Title: Re: Akismet Spam Protection
Post by: gavinseim on September 16, 2011, 02:22:02 PM
An update to my issue. I re-uploaded the full install of SMF2, overwriting the core files (leaving the DB alone of course). Then I re-activated all plugins one by one. The Akismet config settings returned under Configuration/Modification Settings/Askimet Spam Blocking.

I can the the test post and have it goes to moderation. The "viagra-test-123" post does not get stopped however. Though I was not logged in as a guest so maybe that one is not supposed to work.

Anyone's I'm not sure why it stopped working before, but presumably it's working now. If it does this is a great asset to the SMF mods.
Title: Re: Akismet Spam Protection
Post by: ukhalik2 on September 24, 2011, 06:19:27 AM
Is there any way to check stats?
Title: Re: Akismet Spam Protection
Post by: welshdog on October 20, 2011, 05:15:00 PM
Quote from: Babadinho on July 18, 2011, 08:26:27 PM
installed but cant find admin panel

Likewise. Just installed on 2.0.1 and there's no sign of the Admin panel... not even a blank one!!! :(

EDIT: Found it. The Key is entered under "Modification Settings"
Title: Re: Akismet Spam Protection
Post by: snadge on November 25, 2011, 04:45:32 PM
im getting abut 50 errors from few hours usage from 1 or 2 users on my forum, i think they are related to akismet

QuoteApply Filter: Only show the error messages of this URL
http://www.domain.net/index.php?pretty;board=chit-chat.0&amp;action=post2;start=0
Apply Filter: Only show the errors with the same message
8: Undefined variable: topicOptions
Apply Filter: Only show the errors from this file
File: /home/domain/public_html/Sources/Subs-Akismet.php
Line: 67

can anyone help?
Title: Re: Akismet Spam Protection
Post by: fernandozap on November 27, 2011, 03:36:16 PM
Sorry if it's repost... but I didn't find nothing about...

I've installed and tested Askimet, and it's blocking correctly...

The issue is when one of the admins tries to Approve the blocked post by clicking in the Approve button on de first post of the topic... the system goes to Moderation Panel... and nothing happens...

I've tried to change in the flag directly on data-base too... but the post don't want to be approved! lol....

somebody to help me?

Fernando
Title: Re: Akismet Spam Protection
Post by: daklander on December 10, 2011, 01:59:10 PM
When trying to apply mod I just get a blank page.
SMF 1.1.15 and 1.2 Beta 3

I'm trying to help a friend with the constant spam on his forum so I don't know anything about the overall setup of the forum but it looks to be completely stock so there should be no theme changes.

Title: Re: Akismet Spam Protection
Post by: lilwiccaseba on December 11, 2011, 01:08:50 PM
Everyone, please read!

I got interested in the mod (it was either find a mod or write it myself), and I noticed the exact same issue as described below. To fix this issue, it's a rather simple fix:

Open the file /Sources/Subs-Akismet.php
Go to rule 65 (Control + F to search, then search for "topicOptions")
Replace "topicOptions" with "topic_options". I don't know why the author used "topicOptions", as this variable doesn't exist anywhere, the variable "topic_options" however does exist inside that function. Guess it's a typo.

Quote from: snadge on November 25, 2011, 04:45:32 PM
im getting abut 50 errors from few hours usage from 1 or 2 users on my forum, i think they are related to akismet

QuoteApply Filter: Only show the error messages of this URL
/index.php?pretty;board=chit-chat.0&amp;action=post2;start=0
Apply Filter: Only show the errors with the same message
8: Undefined variable: topicOptions
Apply Filter: Only show the errors from this file
File: /home/domain/public_html/Sources/Subs-Akismet.php
Line: 67

can anyone help?
Title: Re: Akismet Spam Protection
Post by: MaXiForum.cz on December 29, 2011, 03:47:08 AM
Hmm I don't know if this mod is still being worked on or not ....
Title: Re: Akismet Spam Protection
Post by: Moodx on January 15, 2012, 04:55:17 AM
Hi all,

Mods installed on a fresh 2.0.2 SMF --> rss feeder and Akismet spam protection

This mod doesn't work with rss feeder mod.
--> Fatal error: Cannot redeclare class Akismet in ../Sources/Akismet.class.php on line 54 --> Flood protection?

Is there any way I can white list a user or IP number so that rss feeder is not checked by akismet?

Thanks for any help!   :)
Title: Re: Akismet Spam Protection
Post by: marc512 on January 26, 2012, 02:58:23 PM
Having a problem, i cant seem to get this working :\ i enter my API key which i bought and all i get nothing. When i click save, the page basicly refreshes.

Can anyone help?

Thanks
Marc
Title: Re: Akismet Spam Protection
Post by: andrewgjohnson on May 08, 2012, 02:00:22 AM
Two issues I have with this mod: [note I'm running SMF 2.0.2 which is the most recent version]

1) I can't approve messages at all.  Someone posted a message that was wrongfully flagged as spam.  I click approve and I land in the admin area but nothing happens and the post remains flagged.

2) Non-admins/mods shouldn't see messages flagged as spam.  These should only be visible to people who can approve them [and possibly the original poster but that's optional] until they get deleted or approved
Title: Re: Akismet Spam Protection
Post by: Arantor on May 08, 2012, 09:06:22 AM
Admin > Core Features > make sure Post Moderation is turned on, sounds like it isn't.
Title: Re: Akismet Spam Protection
Post by: andrewgjohnson on May 09, 2012, 08:56:03 AM
Quote from: Arantor on May 08, 2012, 09:06:22 AM
Admin > Core Features > make sure Post Moderation is turned on, sounds like it isn't.

Fantastic, that actually seems to have solved both of my complaints.  It must be off by default -- I'd HIGHLY recommend you put this note somewhere in the docs or on the mod's page.

Thanks for the help
Title: Re: Akismet Spam Protection
Post by: Arantor on May 09, 2012, 09:01:26 AM
I have no power to change that ;)
Title: Re: Akismet Spam Protection
Post by: revwill on December 15, 2012, 10:57:54 PM
Greetings all, has anyone installed this on 2.0.2 successfull and it runs stable no log errors or general errors?  If so, please share how you did so?

William
Title: Re: Akismet Spam Protection
Post by: Armada on December 23, 2012, 03:58:46 PM
William,
Have you got error logging turned on?
Title: Re: Akismet Spam Protection
Post by: revwill on December 24, 2012, 01:00:59 AM
Quote from: Armada on December 23, 2012, 03:58:46 PM
William,
Have you got error logging turned on?

Hello Armada, Yes I have error logging turned on.  Is this a bad thing?  Sorry I am learning SMF slowly--but surely.  I have a silly question, isn't the error a real error though it seems to work but logs that one?

Thanks and Happy Holidays!

William
Title: Re: Akismet Spam Protection
Post by: Armada on December 24, 2012, 10:14:53 AM
Have you enabled the mod then?
Title: Re: Akismet Spam Protection
Post by: revwill on December 24, 2012, 10:32:51 AM
Quote from: Armada on December 24, 2012, 10:14:53 AM
Have you enabled the mod then?

Oh Yes, when it was installed Yes went to the settings and made usre all was set up with the codes and all from akisimet and was enabled.

William
Title: Re: Akismet Spam Protection
Post by: Armada on December 24, 2012, 03:25:20 PM
William,

It sound like you've done it all correct.

What errors are you seeing then?
Title: Re: Akismet Spam Protection
Post by: j4td on January 16, 2013, 08:17:49 AM
Hi, I've just bought an API key,and installed the MOD "Akismet Spam Protection 1.2 Beta 3"

As I install it I've got a panel in wich I can insert the key, but nothing seems to happen.

Then I try to write a new topic with the subject of 'akismet-test-123', and it is classified as spam. Same thing if I open a topic with a user named viagra-test-123.
But that's all... if I open, for example, a topic with a user named Drizchooc that has a mail like
[email protected], and with object "How to gain more" it goes in the forum like a normal post. Same thing with every spam-like post  from improbable users.

I ask to Akismet support, but tehy answer me that probably my forum is not able to talk to the Akismet servers (but the tests seems to tell the opposite) and, as they do not write that plugin I have to contact the author of that mod and request his help.

This is the only MOD I've installed. Forum has SMF 2.0.3 Update. Layout "Core Theme"

Can you help me?

Thanks.
Title: Re: Akismet Spam Protection
Post by: PhoenixLament on February 19, 2013, 10:43:40 PM
for some reason I can't find the askimet config menu. 

SMF 2.0.3
Askimet 1.2 Beta 3
Title: Re: Akismet Spam Protection
Post by: Armada on February 20, 2013, 01:18:17 AM
It's under:

Admin > Modification Settings > Akismet Spam Blocking (the only 'option' is the API key for Akismet).
Title: Re: Akismet Spam Protection
Post by: Luca_ on March 07, 2013, 11:53:59 PM
Same here, SMF 2.0.4 and Akismet Spam Blocking 1.2 Beta 3
'akismet-test-123',  it is NOT classified as spam.
Can sombody helps me please?
Title: Re: Akismet Spam Protection
Post by: Armada on May 21, 2013, 11:51:27 AM
We've been using Akismet successfully for a few months now, all of a sudden we are getting error messages in the logs of:

Quote
8: Undefined index: akismet_cant_connect File: forum/Sources/Akismet.class.php
Line: 371

And
8: Undefined index: akismet_cant_connect
8: Undefined variable: topic
Line 80

Any ideas at all please? Could it be a firewall issue as we've also had issues with our emails today (which appears to be firwall related)

Thanks in advance,
Armada

Title: Re: Akismet Spam Protection
Post by: BFS010 on September 29, 2013, 10:52:14 PM
I installed
http://mods.simplemachines.org/index.php?mod=544
akismet_1_2.zip

into my SMF 2.0.5 forum.  It installed with no errors, but there were no additions to the Adminsitration center, in particular, nothing under "Forum" which is where the instructions said it would be.

Is this a known issue?  Is this something I can correct on my own?
Title: Re: Akismet Spam Protection
Post by: killing91 on December 03, 2013, 11:59:25 AM
Quote from: BFS010 on September 29, 2013, 10:52:14 PM
I installed
http://mods.simplemachines.org/index.php?mod=544
akismet_1_2.zip

into my SMF 2.0.5 forum.  It installed with no errors, but there were no additions to the Adminsitration center, in particular, nothing under "Forum" which is where the instructions said it would be.

Is this a known issue?  Is this something I can correct on my own?
I solved it by typing "Akismet" in the search bar of the admin panel and it sent me to where you can add the API key. It's not a solution to to the issue but it's a workaround.

I'm using SMF 2.0.6 and there is no "'Akismet Configuration'" or similar under "forum" in the admin panel.
Title: Re: Akismet Spam Protection
Post by: ormuz on February 13, 2014, 02:34:51 PM
I think this mod is causing this annoying bug...
http://www.simplemachines.org/community/index.php?topic=514593.0
Title: Re: Akismet Spam Protection
Post by: OCJ on February 27, 2014, 01:28:52 AM
I would like to echo last reply... As admin my posts are often not displayed - need to approve my own posts.
Title: Re: Akismet Spam Protection
Post by: prahman on August 12, 2014, 11:29:34 PM
i hsve install this Plugin (ksimet) no sucsess,
http://Forumgosip.com/
Title: Re: Akismet Spam Protection
Post by: OCJ on August 18, 2014, 06:50:54 AM
QuoteI think this mod is causing this annoying bug...
http://www.simplemachines.org/community/index.php?topic=514593.0

Since uninstalling this mod I do not have any problems with my own posts (by Admin)  set to unapproved anymore.

Title: Re: Akismet Spam Protection
Post by: fernandozap on September 24, 2014, 10:52:07 PM
Hi,

I was using Askimet (last version) and suddenly my foruns (there's 2) became almost impossible to create topics...
By clicking in "Send" button to create the topic, the browser can't get the response from server until the default browser timeout... the toppic is created, not showing the next step to user, making the user go back and try to create it again clicking in "Send" button again...

Disabling Akismet MOD (removing the API key) the problem was solve...

There's anyone with this problem too? Or is an know error?

Please help-me! Akismet was blocking almost spams in my foruns...

Thanks!!
Title: Re: Akismet Spam Protection
Post by: Armada on October 01, 2014, 01:53:14 AM
Yes - We've had the same problem.

You post a new topic, and it hangs there for 2 minutes 30 seconds before you see your own post. It's taken me a few days to narrow down the problem to the Akismet mod.  :-\

It only started happening since last week.

I have the Akismet Spam Blocking 1.2 Beta 3

You can temporarily stop the problem with the Akismet mod just by removing the Akismet key (of course this means that the Antispam mo doesn't work either).

I wonder if Akismet have changed something?

Title: Re: Akismet Spam Protection
Post by: Armada on October 01, 2014, 05:34:49 PM
fernandozap,

What version are/were you running of the mod?

Title: Re: Akismet Spam Protection
Post by: fernandozap on October 01, 2014, 05:47:18 PM
1.2 Beta 3 too... it seems to be the last one...
Title: Re: Akismet Spam Protection
Post by: Armada on October 02, 2014, 05:46:03 AM
fernandozap

Thanks for the reply :) Lets hope we may be get some help on this one or perhaps figure it out ourselves if we have to.

Do have the exact date that you noticed a problem with this?

I'm guessing that there has been a change in the way that the akismet service/site communicates with APIs. If we can figure out the date then we may be able to go to them and ask them what changes they have made (if they have), and then it might give us some clues to be able to fix it.

The other possibility is that a package update on one of our own servers was updated which has in some way broken this. There were a load of updates around about Sept 25th on our server

/var/log/yum.log

Sep 25 Updated:
bash-3.2-33.el5.1.x86_64
php-common
mysql-libs
mysql
php-cli
php-pdo
php-mysql
php-devel
php
mysql-server
php-pspell
php-gd
php-dba
php-bcmath
php-mbstring
php-soap
php-xml
mysql-libs
mysql-devel
php-common
mysql-devel
Title: Re: Akismet Spam Protection
Post by: FlorentP on November 01, 2015, 07:17:55 AM
Hello

Sorry for digging up this but the issue is still going on.

Mod version 1.2 (supposedly the version updated on September 19, 2015)
SMF v2.0.11

Posting new topics works but takes 2m30s.
You can interrupt the page after clicking the submit button before the 2m30s and the topic will still be posted.

The test topic (with akismet-test-123 as subject) is immediately caught.
Posting new replies works fine.

Hope this is fixed one  day, Akismet is a good anti-spam...

Florent
Title: Re: Akismet Spam Protection
Post by: Armada on November 02, 2015, 05:27:56 AM
It doesn't look like it was really updated.

If you look at the zip file, the most recent file in there is the package-info.xml file dated 15 June 2013.

It doesn't look good that the mod author username of "Runic" no longer exists here on the Simple Machines Forum http://www.simplemachines.org/community/index.php?action=profile;u=23577

Also, Daniel is no longer working on it either (form an email I got from him in 2014).

It looks like it's been abandoned.

If we can figure out *when* it broke for people (or even determine has it broken for *everybody*) then perhaps betwen us we can piece together what might be wrong with it.

My initial thinking is it's something to do with the 'strictness' of php after an update, or a difference in how akismet handles requests. Heck it cold be someting to do with SSL certificates or something like that. I don't know :P If we could find a date for when it seemed to break then we could:

a) Look to see if there was a new php update around that time
b) Look to see if akismet changed it's api around that time

It's probably the Akismet.class.php that need a good looking at, and compare it to the 'comment check' method in Akismet: http://akismet.com/development/api/#comment-check



Title: Re: Akismet Spam Protection
Post by: Kindred on November 02, 2015, 07:32:24 AM
Runic is still around -- he just left for a bit and came back with a different account.

From the first post, you can tell that the current "owner" of the mod is vbgamer.
Title: Re: Akismet Spam Protection
Post by: Armada on November 02, 2015, 10:36:45 AM
Cool, what's Runic's new username on here?

Vbgamer doesn't seem to be responding to *any* of these posts? Not even once.

Is there any chance you could ask them nicely to look into this please?

It does seem to be an abandoned mod at the moment.
Title: Re: Akismet Spam Protection
Post by: vbgamer45 on November 02, 2015, 10:44:43 AM
I am sorry I have very limited time at the moment.

I have mix feelings supporting it since it seems to be paid service with a free tier.
Title: Re: Akismet Spam Protection
Post by: Armada on November 02, 2015, 11:00:50 AM
Thanks for replying - it's your very first reply to this mod topic :) :) Yeah!  .

(As far as the Akismet service they have to pay for the servers somehow, ans they do offer a free tier anyhow).

If you could have a little look then that would be great. Please. (be our hero).

I know that Akismet moved over to SSL/HTTPS with their API at some point - I'm wondering if it could just be that.
http://wptavern.com/akismet-improves-user-privacy-by-encrypting-api-calls
Title: Re: Akismet Spam Protection
Post by: vbgamer45 on November 02, 2015, 11:52:55 AM
Try this updated file. Updated the class used untested
Title: Re: Akismet Spam Protection
Post by: Armada on November 02, 2015, 12:24:53 PM
Thank you for taking the time to try that.

I just tried it, but just got a white screen when posting a new topic.
Title: Re: Akismet Spam Protection
Post by: BPSC_Chris on September 26, 2017, 11:27:11 AM
hey all...I'm having trouble with akismet....here is the error I'm getting

PHP Fatal error:  Call to undefined method Akismet::setAuthor() in /home/chrisbar/public_html/forums/Sources/Subs-Akismet.php on line 62

and this is line 62...

$akismet->setAuthor($poster_options['name']);

I don't see the error...I hope someone can help
Thanks
Chris
Title: Re: Akismet Spam Protection
Post by: vbgamer45 on September 26, 2017, 11:42:45 AM
What PHP version are you running?
Title: Re: Akismet Spam Protection
Post by: BPSC_Chris on September 26, 2017, 02:14:43 PM
php version is 5.6...can change to lower or higher

Chris
Title: Re: Akismet Spam Protection
Post by: GravuTrad on February 22, 2018, 09:42:50 AM
Is this mod ok and up to date?

Thanks.
Title: Re: Akismet Spam Protection
Post by: vbgamer45 on February 22, 2018, 10:56:29 AM
Not sure I haven't tested it.
Title: Re: Akismet Spam Protection
Post by: GravuTrad on March 26, 2018, 08:30:13 AM
It seems marked compatible? not true so?

What's the result in antispam protection with smf? (registration?)
Title: Re: Akismet Spam Protection
Post by: vbgamer45 on March 26, 2018, 09:26:15 AM
How so? I haven't tested.
Title: Re: Akismet Spam Protection
Post by: GravuTrad on March 29, 2018, 01:06:03 PM
QuoteCompatible with:2.0.5, 2.0.6, 2.0.7, 2.0.11, 2.0.12, 2.0.13, 2.0.14, 2.0.15
QuoteWhy indicated on the mod page if not tested? (because the install can at less pass?)
Title: Re: Akismet Spam Protection
Post by: vbgamer45 on March 29, 2018, 01:43:03 PM
Yes
Title: Re: Akismet Spam Protection
Post by: Looking on June 21, 2019, 07:21:09 AM
Installed. It provides no configuration option in Admin to enter the Akismet key.

Update. The location is:

    Administration Center »
    Modification Settings »
    Akismet Spam Blocking

and not "Forums" as described in the description.
Title: Re: Akismet Spam Protection
Post by: Unkl on April 02, 2020, 07:11:50 AM
I installed this at the end of Feb 2020 and it seemed to work well and was able to enter the key.

However I can also echo that I'm getting an error on creating a new topic in new board: "Call to undefined method Akismet::setAuthor()"

I can create new topics in boards that existed prior the installation of Akismet.

PHP version is 7.3.11
Title: Re: Akismet Spam Protection
Post by: vbgamer45 on April 02, 2020, 08:50:29 AM
Update:
3.0 Fixed new class names in Akismet.

Give it a try now.
Title: Re: Akismet Spam Protection
Post by: Unkl on April 02, 2020, 11:23:46 AM
That worked like a dream. Thank you for such quick action!
Title: Re: Akismet Spam Protection
Post by: bjornforum on May 22, 2020, 07:34:06 AM
Hi,

Just installed version 3.0. My akismet-test-123 message is marked spam, however if I try to approve it by clicking the approve link, it only takes me to the moderation center where I don't see anything related to akismet. The message is not approved.

Do others see this as well?

Thanks
Björn
Title: Re: Akismet Spam Protection
Post by: bjornforum on May 22, 2020, 09:07:17 AM
Nevermind. Seems the message moderation in the basic settings needs to be turned on :)
Title: Re: Akismet Spam Protection
Post by: vbgamer45 on May 25, 2020, 12:27:34 AM
Thanks will add that note!
Title: Re: Akismet Spam Protection
Post by: Douglas on October 19, 2020, 06:51:16 PM
Just an FYI... all posts started requiring moderation at some point yesterday, including Admin posts. When I removed the API code, posts started working correctly.

SMF 2.0.17, with only Akismet and Ad management mods installed.

I'm having the account owner check to see if the Akismet account got rati'd.
Title: Re: Akismet Spam Protection
Post by: SD-X on March 10, 2021, 04:03:38 PM
Are there any plans to support this in SMF 2.1?
Title: Re: Akismet Spam Protection
Post by: vbgamer45 on March 10, 2021, 04:20:00 PM
Maybe for final.
Title: Re: Akismet Spam Protection
Post by: SD-X on March 10, 2021, 04:34:08 PM
Quote from: vbgamer45 on March 10, 2021, 04:20:00 PM
Maybe for final.
Yay!