http://www.phpbb.com/phpBB/viewtopic.php?t=393648
MOD Title: Akismet Spam Butcher MOD Description: Integrates phpBB with the Akismet spam-catching service so that spam posts on your forum can get checked and tagged by Akismet. Requires a WordPress.com API key. MOD Version: 0.1.0
MOD Download: http://prdownloads.sourceforge.net/foamods/akismetspambutcher_010.zip?download Latest Stable version: N/A
Subversion Access: You can checkout a working copy of Akismet Spam Butcher via this command: Code: svn checkout https://svn.sourceforge.net/svnroot/foamods akismetspambutcher_dev
http://www.randombyte.net/wiki/phpbb_akismet
- Downlaod Akismet.class.zip
http://www.randombyte.net/wiki/phpbb_spam_hack
Info
This is a quick hack to implement Akismet spam checking on phpBB message posts.
Step 1
Copy Akismet.class.php into the base directory of your phpBB install
*
Downlaod Akismet.class.zip
o
Main - http://www.l33thaxor.com/Akismet.class.zip
o
Mirror - http://www.randombyte.net/files/Akismet.class.zip
Step 2
Open posting.php
-- Find --
include($phpbb_root_path . 'includes/functions_post.'.$phpEx);
-- After, Add --
//Akismet - START
include($phpbb_root_path . 'Akismet.class.php');
//Akismet - END
-- Find --
prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $poll_length);
-- After, Add --
//Akismet - START
if ( $error_msg == '' )
{
$akismet = new Akismet('http://www.your-site.net/forum/', 'your-wp-api-key');
$akismet->setCommentAuthor($username);
$akismet->setCommentContent($message);
if($akismet->isCommentSpam())
$error_msg = "Error: Your message looks like spam.";
}
//Akismet - END
-- Find --
if( $preview )
-- Replace With --
//Akismet - START
$akismet = new Akismet('http://www.your-site.net/forum/', 'your-wp-api-key');
$akismet->setCommentAuthor($username);
$akismet->setCommentContent($message);
if($akismet->isCommentSpam())
$error_msg = "Error: Your message looks like spam.";
// if( $preview )
if( $preview and ($error_msg == ''))
//Akismet - END
-- DetlevLengsfeld 2007-01-04 14:45:54
| /AkismetSpamButcher /AntiSpam /ForumNews /SEO Optimierungen für phpbb3 /Simple /ezPortal /stopwords4better keywords |
Forum/Modifikationen/AkismetSpamButcher (last modified 2008-11-04 06:59:56)