PDA

View Full Version : Don't censor inside HTML or vbCode


SFishy
09 Jun 2001, 09:17
Hey all,

Sounds a bit bizarre but I need to have it so the censor function does NOT include anything inside HTML or vbCode tags. In our community we have some weird censor rules and some of the words are actually things that could be used inside a useful tag!

example:
I can't have


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


popping out as


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Can anyone help me with this? I really need to have censoring ignore anything inside carrots.

Thanks!

John Percival
09 Jun 2001, 16:46
Amy,

Unfortunately, there is not a lot that we can do about that - without serious programming effort, which will also slow the running of the board down considerably, you are not going to be able to achieve that anyway. Perhaps you might have to give up on censoring whatever is appearing in the HTML code?

Can anyone help me with this? I really need to have censoring ignore anything inside carrots.

We have an anti-carrot policy in place here I am afraid :)

John

Mike Sullivan
09 Jun 2001, 16:55
Do you mean "inside carrots" as ^word^ or ^blahblahblah word blahblahblah^ ? (Those are carrots, right? :)) If it's the former, you could probably edit the censoring routines to account for that (adding the carrot as something that won't match in an exact [ {word} ] censor).

vanny
04 Sep 2001, 19:13
I would like to censor the word " I hate you " to " I love you". How can I do that ?

Wayne Luke
04 Sep 2001, 21:38
Originally posted by vanny
I would like to censor the word " I hate you " to " I love you". How can I do that ?

Pretty old, non-relevant thread to bump but...

Create a replacement variable.. In "text to look for" put hate. In The replacement text box put love.