News:

Wondering if this will always be free?  See why free is better.

Main Menu

Akismet Spam Protection

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

Previous topic - Next topic

DaBoROE09

ok daniel15...you are saying the code related to the mod in those 3 files.

Daniel15

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 ;)
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

DaBoROE09

so i will uninstall it and then reinstall it?  or wat

DaBoROE09

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?

EdwinK

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 :)*
|| foto-site ||

nolageek

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.

juli

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

LiGy

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?

Daniel15

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 :)
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

Dannii

I'd prefer a minimum posts option. Some bots register before spamming..
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

juli

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

juli

ack, messed up the code on that...sorry.

juli

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.

Dannii

#53
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.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Daniel15

#54
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).
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

juli

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!!!

Dannii

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.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

LiGy

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.

firebirdnation

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?

guy in the forest

#59
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.

Advertisement: