1. 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?

Discussion in 'XenForo Development Discussions' started by Marcus, Mar 6, 2012.

  1. Marcus

    Marcus 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:

  2. Jake Bunce

    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.
    Marcus likes this.

Share This Page