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

Where to look first for "Moderate all new posts with "WAREZ" in message test"? DataWriter?


Well-known member
Do you know where I should look if I want to moderate all posts where "WAREZ" is part of the message text? Is it ControllerPublic, or the DataWriter? It should be as non-specific as possible, so that everything else works like putting the post to the moderation queue. Here is a screenshot from ZEND searching for "moderate" within xenforos files:


Jake Bunce

XenForo moderator
Staff member
You could extend XenForo_Model_Post::getPostInsertMessageState, but you don't have access to the message text there. Otherwise you can extend XenForo_ControllerPublic_Thread::actionAddReply which saves the actual post.