Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Topic started by: rogueplanet on December 01, 2013, 07:28:07 AM

Title: Mod to stop the post if it contains a banned word?
Post by: rogueplanet on December 01, 2013, 07:28:07 AM
Is there a mod around that stops a post appearing if it contains a banned word? I'm not looking for a mod that allows the post but **** the word, I want the post to be rejected and the poster receives a message on screen saying hat the post contains a banned word.
Is there such a mod already?

Sorry if I posted this in the wrong forum, I wasn't sure if it was the right one or not.

thanks.
Title: Re: Mod to stop the post if it contains a banned word?
Post by: Kindred on December 01, 2013, 12:16:50 PM
I don't think so....
Title: Re: Mod to stop the post if it contains a banned word?
Post by: Chas Large on December 01, 2013, 02:11:51 PM
You know there is a word censor built in to SMF 2.0?

Admin > Forum > Posts and Topics > Censored words.

You can then change a permission to prevent Censored words from showing up but no warnings etc. Useful if you have a younger membership.

Of course, you could make a no profanity rule and punish members who break it. Keep control, it's your forum! ;)


Title: Re: Mod to stop the post if it contains a banned word?
Post by: Kindred on December 01, 2013, 02:17:06 PM
Hey Chas, 

yeah, he said that he knew about the censor...  but what he wanted was a mod that will reject the post if any of the banned words are used.
Title: Re: Mod to stop the post if it contains a banned word?
Post by: Chas Large on December 01, 2013, 02:30:52 PM
Quote from: Kindred on December 01, 2013, 02:17:06 PM
Hey Chas, 

yeah, he said that he knew about the censor...  but what he wanted was a mod that will reject the post if any of the banned words are used.
I didn't read it like he knew about  the censor, I read it like he didn't want a mod that put xxxx in place. Still different eyes eh?
Title: Re: Mod to stop the post if it contains a banned word?
Post by: Arantor on December 01, 2013, 03:01:54 PM
That's right, he doesn't want the censored word function. Whether he knows about it or not, that's not what he wants.

/me has a mod that needs finishing off to do this
Title: Re: Mod to stop the post if it contains a banned word?
Post by: Chas Large on December 01, 2013, 03:51:05 PM
I dunno why I bother. You did see the ? at the end of my first sentence to the OP?

If all you can do is criticise my trying to help, I'll bugger off again. Don't see the point in trying any more.
Title: Re: Mod to stop the post if it contains a banned word?
Post by: Arantor on December 01, 2013, 03:58:03 PM
I'm not being funny but 'hey, that feature you already said you didn't want is built in, you can find it here' doesn't actually help.

I'm just trying to get at the fact that if the OP's post had been read properly, you could have saved yourself some time and energy by not stating something that isn't what the OP wants. It's always worth taking the time to read things carefully just in case there's some subtle nuance not already covered.

I'll just remember not to get involved next time, though. I shouldn't really help out with support, I guess, should leave that to the professionals.
Title: Re: Mod to stop the post if it contains a banned word?
Post by: rogueplanet on December 01, 2013, 04:20:01 PM
hey guys, I appreciate all your replies :) I did read about the censor function (and yeah, I could have phrased my question better) but no, it's not what I'm after really as I need the user to be told that his post isn't going to be shown.
The reason why is that the type of forum I want to make is plagued by those pay-per-view url links and I wanted to ban those urls completely using the banned words list, which means my forum wont be full of half-blanked out spam messages.
Title: Re: Mod to stop the post if it contains a banned word?
Post by: Kindred on December 01, 2013, 06:27:42 PM
Ah....   if you had explained that, we could have answered you better....

why don't you just stop the spammers from registering in the first place?   Then they won't be able to post the links at all.
Title: Re: Mod to stop the post if it contains a banned word?
Post by: rogueplanet on December 01, 2013, 06:36:19 PM
Quote from: Kindred on December 01, 2013, 06:27:42 PM
Ah....   if you had explained that, we could have answered you better....

why don't you just stop the spammers from registering in the first place?   Then they won't be able to post the links at all.

Because they are manual spammers, not bots. I already have measures in place to stop the bots.
Title: Re: Mod to stop the post if it contains a banned word?
Post by: Kindred on December 01, 2013, 06:37:59 PM
what methods do you have in place?

If you are getting inundated, I would tend to disbelieve that they are actually manual spammers.

You can also installt he anti-spam links mod - which allows you to prevent people under a certain post count from even adding links at all (which we use here)
Title: Re: Mod to stop the post if it contains a banned word?
Post by: rogueplanet on December 01, 2013, 06:53:41 PM
no, I'm not inundated, (I'm just expecting it!) its been a trickle so far. :D I've seen other forums swamped with it and I'd like to nip it in the bud.
I have a captcha and a question/answer mods in place which so far at least, seem to be working against bots.

Quote from: Kindred on December 01, 2013, 06:37:59 PM
You can also installt he anti-spam links mod - which allows you to prevent people under a certain post count from even adding links at all (which we use here)

that would normally work except in the case of my forum I want people to post links, just not ones that go through a PPV system.
Title: Re: Mod to stop the post if it contains a banned word?
Post by: margarett on December 01, 2013, 07:48:23 PM
It should be doable, I think. Tomorrow I'll have a look (if I'm not overlooking the problem :P )
Title: Re: Mod to stop the post if it contains a banned word?
Post by: margarett on December 02, 2013, 02:29:15 PM
I've thrown a simple MOD for this. Let's wait ;)
Title: Re: Mod to stop the post if it contains a banned word?
Post by: rogueplanet on December 03, 2013, 03:46:54 PM
nice one :), how do I get a copy of this? Am I right in thinking that new mods have to go by the administrators before they appear in the mods section?
Title: Re: Mod to stop the post if it contains a banned word?
Post by: Arantor on December 03, 2013, 03:50:03 PM
Yup, they do. They go into the queue and each is looked at in turn.
Title: Re: Mod to stop the post if it contains a banned word?
Post by: rogueplanet on December 03, 2013, 05:36:33 PM
Quote from: Arantor Beeblebrox the First on December 03, 2013, 03:50:03 PM
Yup, they do. They go into the queue and each is looked at in turn.

cheers, I'll be patient then :)
Title: Re: Mod to stop the post if it contains a banned word?
Post by: rogueplanet on December 11, 2013, 12:11:51 PM
any news on this? :)
Title: Re: Mod to stop the post if it contains a banned word?
Post by: Arantor on December 11, 2013, 12:13:56 PM
It's currently under review.
Title: Re: Mod to stop the post if it contains a banned word?
Post by: rogueplanet on December 11, 2013, 12:16:14 PM
Quote from: Arantor Beeblebrox the First on December 11, 2013, 12:13:56 PM
It's currently under review.

Blimey! That was a quick reply! Cheers. Reviews take a fair while then? I suppose it does have to be thorough though.
Title: Re: Mod to stop the post if it contains a banned word?
Post by: Colin on December 11, 2013, 12:30:35 PM
http://custom.simplemachines.org/mods/index.php?mod=3810
Title: Re: Mod to stop the post if it contains a banned word?
Post by: rogueplanet on December 11, 2013, 02:33:31 PM
fantastic :) thanks.
A tiny suggestion for a possible future update, the ability to change the post error message that shows up to something custom from within the admin (i.e. so I can direct them to a post that explains why some words are not allowed) but I'm over the moon, thanks again :)
Title: Re: Mod to stop the post if it contains a banned word?
Post by: Kindred on December 11, 2013, 02:35:30 PM
you can...
Edit the string in:
Themes/default/languages/Errors.english.php