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

Bob

Well-known member
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.webp
 
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* :thumbsup:
 
Top Bottom