Log in

View Full Version : Censor words


archey
08-26-2009, 02:46 AM
Hey is there a mod, or option fo censor words where I can make them star(*) our one letter?

EX:

f*ck


Sorry, if the language is inappropriate.

mp3u
08-26-2009, 10:31 AM
I used to run a WFF board and in the Admin CP there was an option to list the words you want to censor and what you want to censor them as.

Eg, 'Phil Collins' was edited to turn into 'Baldy Git' etc - it actually worked very well by changing bad words into polite/funny alternatives. Of course you could use * etc to replace the middle letters. I do find the current censorship settings to be way too strong, depending on the audience they can be a bit of a killjoy.

If there was a vB mod that allowed you to customise the censor list I would download it in a heartbeat.

Lynne
08-26-2009, 03:58 PM
You can use Replacement Variables or write a simple plugin to do str_replace with certain words.

archey
08-27-2009, 04:37 AM
@Lynne: I have no clue how to code VB plugins :P

@mp3u: So there isn't a mod?

Lynne
08-27-2009, 03:09 PM
You can start with the manual - Plugin System (http://www.vbulletin.com/docs/html/plugin_system)

There are also several articles in the Articles forums on how to write products/plugins.

archey
08-27-2009, 05:44 PM
You can start with the manual - Plugin System (http://www.vbulletin.com/docs/html/plugin_system)

There are also several articles in the Articles forums on how to write products/plugins.

Okay, I'll read that over, but I haven't learned PHP yet.

Scu11
08-27-2009, 07:00 PM
Okay, I'll read that over, but I haven't learned PHP yet.

just search in the mod forums

archey
08-27-2009, 07:12 PM
just search in the mod forums

=] I did, before I made the post, but I guess i can search again.

Marco van Herwaarden
08-28-2009, 10:27 AM
The use Replacement Variables as Lynne suggested.

mp3u
09-06-2009, 12:11 PM
Hi there,
I just discovered the Replacement Variable function and it works perfectly. However... say if I want to censor the word 'work' - and instead of having 'w**k' I wanted the first and last letter with a 'censored' smilie in the middle? If I replace the middle letters with the BBcode :censored: (the code on my board for the censored icon) the word just appears as 'w:censored:k'.... any ideas how I can get a smiley in there?
Thanks

Lynne
09-06-2009, 03:40 PM
You need to replace it with the actual html of what you want. So, put the image code in the replacement code.

mp3u
09-06-2009, 08:36 PM
You need to replace it with the actual html of what you want. So, put the image code in the replacement code.

Thanks Lynne, great to know this can be done. I'm a complete newbie though, do you mean the file path to the smiley image on my server?

Lynne
09-06-2009, 08:39 PM
I mean the image code:
<img src="/your/path/to/the/smilie.gif" alt="Your Smilie" />

mp3u
09-06-2009, 10:44 PM
Thank for your patience, that works perfectly! Much better than the standard swear filter:)