• Welcome to Simple Machines Community Forum. Please login or sign up.
November 26, 2021, 10:43:14 PM

News:

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


Logging Functions

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

Previous topic - Next topic

SMiFFER

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

Example:
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?
At least these 16 (getting more???)steps must be completed for SMF2.1 Final.
Last Full Version: 2.0 Final released more than 10 years ago on 20110604

QUOTE OF Aleksi "Lex" Kilpinen: "That version is old enough to go to school itself."
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!

Shambles


Sesquipedalian

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.

Advertisement: