• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Moderator Action Logging

Kovu

New member
#1
I've been trying to write an addon which, on every moderator action, does something with it. (Sends it to a server or something). I currently have a listener listening to XenForo_ControllerAdmin_Log::actionModerator(), but in my override I'm not sure how to get the details of the moderator action.
 

Jeremy

Well-known member
#2
You do not want to use XenForo_ControllerAdmin_Log::actionModerator(), that is used to control the logic of displaying the moderator action log within the ACP (Controllers = display logic).

You want to use XenForo_Model_Log::logModerationAction(), and create the necessary handlers for the content you are functioning on.