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

Moderator Action Logging

Discussion in 'XenForo Development Discussions' started by Kovu, Oct 27, 2014.

  1. Kovu

    Kovu New Member

    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.
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    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.

Share This Page