Help - Search - Members - Calendar
Full Version: Censoring Comments?
Movable Type Community Forum > Additional Resources > Tips and Tricks
Sparticus
do you mean like bleeping out certain words, such as swear words?
This link has the coding for how to replace regular text for
CODE
<img>
tags which will display the smilies. On my site I've used it, and modified it so it also detects certain words and replaces them with ****

Basically read her article and then insert variations on stuff like this instead (or as well as) the smilie code...
CODE
    $str =~ s/rudeword/notsorudeword/g;

You can replace the 'rudeword' and 'notsorudeword' with anything you want, but if like me you want to replace 'notsorudeword' with stars like so ***** you'll have to omit them, this means putting a / in front of the character like this...
CODE
    $str =~ s/rudeword/\*\*\*\*/g;


Hope this is what you are looking for
Ynubiis
I'm wondering if there is a way to censor or filter comments made by other people.  I've been looking in the forums, but I haven't come across anything yet.  Thanks.
Ynubiis
This is exactly what I was looking for.  Thanks a million. smile.gif
Maggie
Tried to find the article (through the link you supplied) you are speaking of Sparticus, but once again, it seems people are willing to help until they realize that is the only reason others visit their site and then they remove the link to the help so perhaps you could let us know how to do this with a little more detail. Thanks.
girlie
That's a rather harsh statement, considering there's an explanation on the 404 page that Lynda has done some rearranging of her site, along with a link to the new location of her entry.

Besides which, this topic dates back to well over a year ago. Things change on the web, you know.

And trust me, a ton of people visit Lynda's site for reasons other than those of the self-serving variety.
Maggie
Do I reply to that or not? Me thinks I will. I really did not mean to offend. Its just my take on my original question'sanswer is all. Absolutely no offense intended. Although, on further assessment of my above reply, might I just say "I am sincerely sorry". Do I just say that here or go to the other thread that seems to be stalking my original question as well wink.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.