AndyB
Well-known member
I would like to create an add-on that would essentially disable the Censoring function for logged in members. So when a Unregistered / Unconfirmed visitor is viewing the forum, the Censoring will be in effect. If a logged in member is viewing the forum, the Censoring will not be in effect.
The part of the code that I need to override is located in the following file:
XF/App.php
The line of code that reads the censoring options is this:
What would be the best way to extend the following method?
protected function initialize()
Thank you.
The part of the code that I need to override is located in the following file:
XF/App.php
The line of code that reads the censoring options is this:
PHP:
$formatter->setCensorRules($options->censorWords, $options->censorCharacter);
What would be the best way to extend the following method?
protected function initialize()
Thank you.
Last edited: