Possible to move position of "New Post Comments" tab in new posts?

  1. joey_tbf

    joey_tbf - Jul 12, 2015 Active Member VIP Member

    Credit
    Point
    It is possible to move the "New Post Comments" tab over to a different position?


    I want to keep it together with the posts section.

    I find the "new post comments" is not in a good position after adding the Advanced Thread Rating add-on.



    Capture
    i think after "new posts" would be perfect.

    or


    Capture
     
    Last edited: Jul 12, 2015
    Loading...
  2. Brivium

    Brivium - Jul 14, 2015 XenForo Services Staff Member

    Credit
    Point
    You can do this by open file library\Brivium\CommentEachPost\ControllerPublic\FindNew.php and replace function protected function _getWrapperTabs() with
    Code:
    protected function _getWrapperTabs()
    {
      $tabs = parent::_getWrapperTabs();
      $visitor = XenForo_Visitor::getInstance();
      if ($this->canviewComments())
      {
       $tabs['brivium_post_comments'] = array(
         'href' => XenForo_Link::buildPublicLink('find-new/post-comments'),
         'title' => new XenForo_Phrase('BRCEP_new_post_comments')
       );
      }
      $keys = array(
       'posts', 'brivium_post_comments', 'brivium_thread_rating',
      );
      $newTabs = array();
      foreach ($keys as $key)
      {
       if(isset($tabs[$key]))
       {
        $newTabs[$key] = $tabs[$key];
       }
      }
     
      return $newTabs+$tabs;
    }
    Regards,
     
    joey_tbf likes this.
    #2
  3. joey_tbf

    joey_tbf - Jul 14, 2015 Active Member VIP Member

    Credit
    Point
    works perfect
    thanks!!
     
    Last edited: Jul 14, 2015
    #3