Replacing words
2 posters
Page 1 of 1
Replacing words
Hello,
There has been something I would like to try, but sadly I'm not that familiar with Javascript - but I know I have to use that.
What I would like to try is to replace words: for example, I don't want people to place the word dog on my forum so I want it to be replaced with cat. They can however still type it in the quick reply option, but I want it to somehow swap the word dog for the word cat in the post that will eventually show up on the forum.
I do know I have to do something like this:
Love & Rockets,
Hert.
There has been something I would like to try, but sadly I'm not that familiar with Javascript - but I know I have to use that.
What I would like to try is to replace words: for example, I don't want people to place the word dog on my forum so I want it to be replaced with cat. They can however still type it in the quick reply option, but I want it to somehow swap the word dog for the word cat in the post that will eventually show up on the forum.
I do know I have to do something like this:
- Code:
function myFunction() {
var str = document.getElementById("demo").innerHTML;
var res = str.replace("dog", "cat");
document.getElementById("demo").innerHTML = res;
}
Love & Rockets,
Hert.
Re: Replacing words
Hi @Hert,
Like a censor, correct ? You can censor words here :
Administration Panel > General > Word Censoring
Here you'll be able to manage words that you want to censor. You can check this topic for more information : https://help.forumotion.com/t1245-word-username-censorship
Like a censor, correct ? You can censor words here :
Administration Panel > General > Word Censoring
Here you'll be able to manage words that you want to censor. You can check this topic for more information : https://help.forumotion.com/t1245-word-username-censorship
Similar topics
» replacing ads
» Replacing the Chatbox?
» Replacing header with a flash .swf
» Replacing Deceased Founder
» code for replacing navbar
» Replacing the Chatbox?
» Replacing header with a flash .swf
» Replacing Deceased Founder
» code for replacing navbar
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum