Serendipity-Buch

Handbuch für Serendipity bestellen

Das offizielle, umfassende Serendipity-Handbuch für Einsteiger und Profis ist nun im Handel und kann online bei Amazon oder OpenSourcePress, oder auch bei jedem Buchhändler, bestellt werden!

Forum-Information

Before posting about errors, make sure that the answer cannot already be found in our FAQ or by searching this forum!
Posting is restricted to registered users (registering is free and simple!) due to recent spam attacks. When having trouble with this board, contact garvin(-at)s9y(-dot)org.

Board index Plugins Spamblock Bayes: No Spam without Akismet

Creating and modifying plugins.
User avatar
onli
Regular
 
Posts: 482
Joined: Tue Sep 09, 2008 10:04 pm

Postby onli » Wed Sep 30, 2009 11:09 am

The spamblock_bayes-plugin is intended to serve as an alternative to akismet on classifying comments as spam. It sets up a local database with spam and valid comments (ham) and compares every new comment with that data.

To fill that database it can import the log-database of the normal spamblock-plugin and it fetches comments from serendipitys database. To adjust the ratings manually, e.g. if a new type of spam is not recognized at first, a new entry is added to the admin-area (based upon the comment-view but with "spam" and "valid" buttons).

The rating-logic is based upon b8, authors of the plugin are kleinerChemiker and myself.

Let me know if it works for you or if you found an error.
Attachments
serendipity_event_spamblock_bayes.tar.gz
(11.21 KiB) Downloaded 24 times

User avatar
yellowled
Regular
 
Posts: 3028
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany

Postby yellowled » Fri Oct 23, 2009 12:38 pm

onli wrote:Let me know if it works for you or if you found an error.

I already told you via Jabber :wink:

Just for the record and the public, I have been testing this for a few days now, and it looks very promising. In fact, I haven't felt that calm about comment and trackback spam in quite some time.

The plugin might have a few quirks and still could use some work, but that's probably because it's author's haven't had much feedback since not that many people actually use it yet.

YL
Did I help you?/Konnte ich helfen?
Custom s9y template? Contact me via Email or PM.
Eigenes s9y-Template? Fragt per Email oder PM an.

User avatar
onli
Regular
 
Posts: 482
Joined: Tue Sep 09, 2008 10:04 pm

Postby onli » Fri Oct 23, 2009 4:36 pm

Yes, feedback is very valuable. The bug in the admin-frontend is typical for developer-blindness. Thanks again :)

User avatar
Don Chambers
Regular
 
Posts: 2587
Joined: Mon Feb 13, 2006 3:40 am
Location: Chicago, IL, USA

Postby Don Chambers » Fri Oct 23, 2009 8:03 pm

The methods I have in place using akismet and whatever else seems to work fine for me... what is different about this plugin, or what would it add if already using akismet?

User avatar
kleinerChemiker
Regular
 
Posts: 475
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria

Postby kleinerChemiker » Fri Oct 23, 2009 8:42 pm

It's a bayes filter, which mean it can learn from your spam for better filtering.
mein Blog

Konnte ich helfen? Neues Plugin gesucht?
Did I help you? Do you need a new plugin?
Amazon | PayPal

User avatar
onli
Regular
 
Posts: 482
Joined: Tue Sep 09, 2008 10:04 pm

Postby onli » Tue Oct 27, 2009 9:03 am

Maybe a little more detailled: If Akismet works just fine for you, an additional spamplugin won't give you anything. But as the bayes-plugin learns only by the comments from your blog, it should perfectly fit to the spam and the comments which arrive at your blog, whereas akismet is influenced by many comments on many blogs (which has it pros and cons).

Akismet is not perfect. I was told that comments from myself on wordpress-blogs were marked as spam by it (something which of course could also happen with the bayes-plugin, but then one could react easily). And of course it's an external service, so the usual question arise - what if it goes down? Is it legal to submit the comments to them (in germany was a broad discussion about that without a clear conclusion)? So a local solution for spam has its benefits :)

Anyway, I made a bugfix-release, there was a typo in an english language-file and the formular in the frontend lead to the comment-section.
sincerely
Attachments
serendipity_event_spamblock_bayes-0.1.8.tar.gz
(11.76 KiB) Downloaded 12 times

User avatar
yellowled
Regular
 
Posts: 3028
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany

Postby yellowled » Tue Oct 27, 2009 1:32 pm

Reminder: please insert duplicate previous/next buttons at the bottom of the comments list. Thanks! :)

YL
Did I help you?/Konnte ich helfen?
Custom s9y template? Contact me via Email or PM.
Eigenes s9y-Template? Fragt per Email oder PM an.

User avatar
onli
Regular
 
Posts: 482
Joined: Tue Sep 09, 2008 10:04 pm

Postby onli » Tue Oct 27, 2009 3:11 pm

Done ;) (and a cleanup of the html)
Attachments
serendipity_event_spamblock_bayes-0.1.8.1.tar.gz
(11.86 KiB) Downloaded 13 times

User avatar
yellowled
Regular
 
Posts: 3028
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany

Postby yellowled » Tue Oct 27, 2009 4:47 pm

Yup, works. Thanks :)

I keep forgetting: Should this thing be logging to the specified logfile every time I classify something as spam? 'cause it doesn't seem to do that.

YL
Did I help you?/Konnte ich helfen?
Custom s9y template? Contact me via Email or PM.
Eigenes s9y-Template? Fragt per Email oder PM an.

User avatar
onli
Regular
 
Posts: 482
Joined: Tue Sep 09, 2008 10:04 pm

Postby onli » Tue Oct 27, 2009 5:23 pm

It doesn't and it shouldn't log the classification. I think it's unnecessary: The "Done" in the frontend shouldn't appear if an error occurs. If a comment gets caught as spam, the message of moderation or rejection will be logged.

Garvin: You think that plugin may be added to spartacus?

User avatar
garvinhicking
Core Developer
 
Posts: 26675
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Tue Oct 27, 2009 7:42 pm

Hi Online!

Sure , go ahead, feel free to upload it to spartacus!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

User avatar
onli
Regular
 
Posts: 482
Joined: Tue Sep 09, 2008 10:04 pm

Postby onli » Wed Dec 16, 2009 10:16 pm

Instead of creating an own menu-entry, this version adds the controls to the comment-page. Fetching the comments for learning is improved, it fetches them directly from the database instead of reading them from the commentpage - so less modifications to the comments get included.

I'll wait a few days before updating spartacus so anyone can give feedback.
Attachments
serendipity_event_spamblock_bayes-0.1.9.tar.gz
(8.11 KiB) Downloaded 12 times



Return to Plugins

Who is online

Users browsing this forum: No registered users and 1 guest

cron