Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Logging Functions

Started by SMiFFER, February 17, 2018, 04:26:18 PM

Previous topic - Next topic


I am missing a function where I can have more logging.

Some administrator on my board has entered a very bad CENSOR WORD combination
in Aadmin>Posts and Topics> Censored Words

How can I see who has entered that?
Quote of the day: A troll is an obstinate bloke who only hungers for your attention. If you feed him, he will puke all over you!



This is unlikely to become a normal feature, but you can implement it yourself easily enough.

In Sources/ManagePosts.php, find:

// Set the new arrays and settings in the database.
$updates = array(
'censor_vulgar' => implode("\n", $censored_vulgar),
'censor_proper' => implode("\n", $censored_proper),
'censorWholeWord' => empty($_POST['censorWholeWord']) ? '0' : '1',
'censorIgnoreCase' => empty($_POST['censorIgnoreCase']) ? '0' : '1',

After that, add:

logAction('update_censor', array(), 'admin');

Or, if you want the log to contain a verbose record of what the censor was set to:

logAction('update_censor', $updates, 'admin');

Note: I have not tested this. See signature for my guarantee policy.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.