News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Akismet Spam Protection

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

Previous topic - Next topic

vbgamer45

Link to Mod

Akismet Spam Protection for SMF

Mod Author: Runic
Original Author: daniel15
Previous Authors: live627
SMF Version: 3.0.X
Mod Version: 1.2

Description:
This is a SMF modification implementing the Akismet 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/. 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
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

RoarinRow

Very cool, every little bit helps.   8)

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

RoarinRow

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

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

EdwinK

#3
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 :(
|| foto-site ||

wudzzy

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 ?

EdwinK

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.
|| foto-site ||

wudzzy

#6
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 ?

wudzzy

also php in safe mode , is this a problem for mods installation ?

razor1394

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

mrselnombre

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.
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Total Twaddle.

Elegant John

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.

Bill-Kill

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!

Daniel15

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

mrselnombre

that code does speed it up, but caused a minor bug. i pmed you the details.
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Total Twaddle.

RoarinRow

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)

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

Daniel15

OK, version 1.1.1 is out, and it should fix the speed issues.
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!

mrselnombre

does it have differences in the template changes?
I'm wondering if i have to remove from all the templates before uninstalling and reinstalling.
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Total Twaddle.

Daniel15

No, no differences. The only changes are in Sources/ManageBoards.php and Sources/Subs-Post.php
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!

mrselnombre

(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Total Twaddle.

mrselnombre

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.
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Total Twaddle.

Advertisement: