1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum is for release discussion only. Discussions that do not relate specifically to the resource release should be discussed in another, more appropriate forum.
    Dismiss Notice
  3. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Mandatory Premoderation new theme in the X forum

Discussion in 'Template Modifications [Archive]' started by TheLord, Nov 26, 2010.

  1. TheLord

    TheLord Member

    open: \library\XenForo\ControllerPublic\Forum.php

    $writer->set('discussion_state', $this->getModelFromCache('XenForo_Model_Post')->getPostInsertMessageState(array(), $forum));

    replace for:
    if ($forumId==14)
                    $writer->set('discussion_state', 'moderated');
                    $writer->set('discussion_state', $this->getModelFromCache('XenForo_Model_Post')->getPostInsertMessageState(array(), $forum));
    14 - Replace your forum to id

    If you need to do pre-moderation in several forums:
    if ($forumId==14 || $forumId==15 || $forumId==16)
    arabic and ::abdo:: like this.
  2. arabic

    arabic Member

    DEMO ?
  3. TheLord

    TheLord Member

    localhost - best demo
  4. Gustavo Fernandez

    Gustavo Fernandez Active Member

  5. cobra1162

    cobra1162 Active Member

    no work for me :(
  6. araj1971

    araj1971 New Member

    any screen shoot ?
  7. Brogan

    Brogan XenForo Moderator Staff Member

    This template modification has since been superseded by the ability to individually set each forum to be moderated.

  8. araj1971

    araj1971 New Member

    thanks Brogan for the screen shoot :D

Share This Page