• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.1 Replacing censored words with "nothing"

B

bogus

Guest
#1
I would like to add some censored words/phrases in Xenforo´s Censoring Options but instead to replace a censored word/phrase with anything less offensive I just want to make it "disappear" means replace with a space or similiar... Is that possible?
 

Chris D

XenForo developer
Staff member
#2
You can have space as your censor character. But continuous spaces only display one space.

So this is a ****ing censorable word

Becomes

So this is a ing censorable word.

Multiple spaces aren't supported in HTML in general when used like that.

I'd suggest the replacement character being _ looks better IMO:

So this is a ____ing censorable word.
 
B

bogus

Guest
#3
Its a whole Text i want to get rid off, so a space might be better.... Thanks for your Help

Edit: Is there a way to use joker. Like... Words to Censor: I want to *

If someone writes "i want to read a book" this gets "vanished"?!
 

Neil E.

Active member
#4
For a longer blank, you might try inserting a "space"+"non-breaking space"+"space"+"non-breaking space" as needed to get a wide actual space

"space" = spacebar

"non-breaking space" = &nbsp