Your ultimate PunBB resource!
You are not logged in.
## ## ## 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. ## ##
Offline
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:
Errors that poster sees:
Last edited by naitkris (2007-04-22 14:52:46)
Offline
no comments?
Offline
Quite extensive. Nice.
Offline
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
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
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
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
crusader wrote:
Thanks and its on my site now: http://shedrockonline.com
np. i like your integration of PunBB there.
Offline