PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.


Login to move these ads to the bottom of the page

#1 2007-04-22 14:41:25

naitkris
Member
From: Cork, Ireland
Registered: 2007-01-26
Posts: 76

BB Spam Fighter 1.0.0

Code:

##
##
##        Mod title:  BB Spam Fighter
##
##      Mod version:  1.0.0
##   Works on PunBB:  1.2.14
##     Release date:  2007-04-22
##           Author:  naitkris (naitkris@gmail.com)
##
##      Description:  Based on the Forbidden word spam blocker mod by Daniel
##                    Vijge (vijge@dse.nl). This mod adds extra options for
##                    administrators in controlling spam.
##
##                    As with the Forbidden word spam blocker mod, this mod
##                    restricts posting of certain words and phrases, but
##                    improves this by:
##                    - Performing a spam check only on posts by users in
##                      certain groups, as well as:
##                       - If the user has less than # posts
##                       - If the user is registered for less than # days
##                    - Restrict the max # of URLs posted in a message for these
##                      users
##                    - Restrict the max # of characters in a message for these
##                      users
##
##                    If the message is detected as spam, a warning is then
##                    displayed telling the user the word or phrase to remove,
##                    to reduce the # of URLs, and/or to reduce the # of
##                    characters in the message.
##
##   Affected files:  post.php
##                    edit.php
##                    lang/[Lang]/post.php
##
##       Affects DB:  Yes
##
##            Notes:  1) To configure the mod, go to the Administration section
##                       and click on 'BB Spam Fighter'.
##                    2) Under Options heading, choose the groups to apply the
##                       mod to.
##                    3) Enter values (optional) for users within this group.
##                    4) Under Forbidden words heading, add spam words and/or
##                       phrases.
##                    4) Be careful what words and/or phrases you block. For
##                       example, if you block 'foo', users can't post message
##                       containing 'foobar'.
##                    5) Spam words and/or phrases that should be blocked are
##                       cached in cache_spamwords.php in the cache folder.
##                       However this file is only created each time the Add
##                       button is clicked. When you upgrade PunBB to a newer
##                       version for example, all cache files are deleted,
##                       including cache_spamwords.php. Clicking on Add will
##                       regenerate the cache file even if no word or phrase is
##                       entered.
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##
##

Download here

Offline

 

#2 2007-04-22 14:42:34

quaker
Member
From: Bama,USA
Registered: 2006-02-22
Posts: 1064
Website

Re: BB Spam Fighter 1.0.0

demo?
Q


My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Offline

 

#3 2007-04-22 14:49:06

naitkris
Member
From: Cork, Ireland
Registered: 2007-01-26
Posts: 76

Re: BB Spam Fighter 1.0.0

Based off Daniel Vijge's Forbidden word spam blocker 1.0.1 mod but a lot of extra options added, as his mod, while very good, was quite basic as it blocked spam words for every user and could not be customised in the Admin area except for adding or removing words.

Many thanks to Daniel's mod for providing the base for this as I was using his originally to prevent spam on my forum but came across problems as spammers posted many URLs, long posts, etc  which this mod aims to address a little.

Let me know what you think.

EDIT - screenshots:

Administration area:
http://www.sparu.com/other/PunBB/Mods/bb_spam_fighter_screenshot_1.png

Errors that poster sees:
http://www.sparu.com/other/PunBB/Mods/bb_spam_fighter_screenshot_2.png

Last edited by naitkris (2007-04-22 14:52:46)

Offline

 

#4 2007-04-23 10:38:47

naitkris
Member
From: Cork, Ireland
Registered: 2007-01-26
Posts: 76

Re: BB Spam Fighter 1.0.0

no comments?

Offline

 

#5 2007-04-24 11:13:15

idninvestment.com
Member
Registered: 2006-08-04
Posts: 13
Website

Re: BB Spam Fighter 1.0.0

Quite extensive. Nice.

Offline

 

#6 2007-04-24 11:40:10

crusader
Member
From: Canada
Registered: 2006-10-26
Posts: 264
Website

Re: BB Spam Fighter 1.0.0

Nice mod. I tested it on my local site and it works great!

Crusader

Offline

 

#7 2007-04-24 11:53:56

naitkris
Member
From: Cork, Ireland
Registered: 2007-01-26
Posts: 76

Re: BB Spam Fighter 1.0.0

finally some replies - yay! i almost thought nobody liked it or something.

any suggestions for improvement? i have a few ideas to make it much better but i am going to wait until i get more time as i have my final exams starting in a month or so and a few of the ideas i have are more complex unlike what is implemented thus far.

Last edited by naitkris (2007-04-24 11:56:30)

Offline

 

#8 2007-04-24 12:26:12

crusader
Member
From: Canada
Registered: 2006-10-26
Posts: 264
Website

Re: BB Spam Fighter 1.0.0

yes, make the AP_BB_Spam_Fighter.php validate. There are a couple warnings in there:

line 270 column 4 - Warning: missing </form>
line 300 column 3 - Error: discarding unexpected </form>

1 error / 1 warning

Other than that, this mod is perfect the way it is.

Crusader

Offline

 

#9 2007-04-24 17:33:55

naitkris
Member
From: Cork, Ireland
Registered: 2007-01-26
Posts: 76

Re: BB Spam Fighter 1.0.0

glad you like it.

that HTML validation error was poor on my part - sorry for that - a div start and end tags plus form start and end tags were locked within each other, easily fixed but i am not going to release an update until i add something more as it still works as supposed to.

Offline

 

#10 2007-04-24 17:41:06

crusader
Member
From: Canada
Registered: 2006-10-26
Posts: 264
Website

Re: BB Spam Fighter 1.0.0

np, I fixed it as well.

Thanks and its on my site now: http://shedrockonline.com

Last edited by crusader (2007-04-24 17:41:17)

Offline

 

#11 2007-04-24 17:56:56

naitkris
Member
From: Cork, Ireland
Registered: 2007-01-26
Posts: 76

Re: BB Spam Fighter 1.0.0

crusader wrote:

Thanks and its on my site now: http://shedrockonline.com

np. i like your integration of PunBB there.

Offline

 

#12 2009-07-17 13:14:57

xSDMx
Member
Registered: 2007-12-05
Posts: 34
Website

Re: BB Spam Fighter 1.0.0

Does this also affect URL usage in signatures for users under specified threshold?

Offline

 

Board footer

Based on PunBB
© Copyright 2002–2005 Rickard Andersson

© Copyright 2004–2006 Kristoffer Jansson

User contributed files are property of their respective owners.