Hi everyone,
I wanted to have a wordfilter, to replace a censored word for a word I want, in all forum sections but one specific.
when I was looking online for how to solve this, I've found this link:
https://vborg.vbsupport.ru/showthread.php?t=219968
which contained this code:
PHP Code:
$word = array(
'word1',
'word2'
);
$link = array(
'<a href="/forums/link1.php">Word1</a>',
'<a href="/forums/link2.php">Word2</a>'
);
$this->post['message'] = str_ireplace($word, $link, $this->post['message']);
So I changed it to:
PHP Code:
$censoredword = array(
'word1',
'word2'
);
$changedword = array(
'word3',
'word4'
);
$this->post['message'] = str_ireplace($censoredword, $changedword, $this->post['message']);
I wonder if this code is right, where should I put it, and how would I make it work for all subforums but one.
Sorry for this silly question, but I don't know PHP.
Thanks in advance!