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

Fixed New Posts Tab not selected when there are no unread posts

Bob

Well-known member
#1
When extending the Find New functionality to add tabs for Addons, the New Posts tab is not selected when there are no unread posts.

XenForo_ControllerPublic_FindNew::getNoPostsResponse()

changing 'threads' to 'posts' for the $selectedTab value fixes this

PHP:
  return $this->getFindNewWrapper($this->responseView('XenForo_ViewPublic_FindNew_PostsNone', 'find_new_posts_none', array(
            'days' => $days,
            'recent' => $recent
        )), 'threads');
    }
search.PNG
 

Shelley

Well-known member
#3
When extending the Find New functionality to add tabs for Addons, the New Posts tab is not selected when there are no unread posts.

XenForo_ControllerPublic_FindNew::getNoPostsResponse()

changing 'threads' to 'posts' for the $selectedTab value fixes this

PHP:
  return $this->getFindNewWrapper($this->responseView('XenForo_ViewPublic_FindNew_PostsNone', 'find_new_posts_none', array(
            'days' => $days,
            'recent' => $recent
        )), 'threads');
    }
View attachment 49474
ooooh *stares at showcase items tabs* (y)