XF 1.2 Add New Tab to Notable Members

Do you mean the main members page? Like this?

http://xenforo.com/community/members/

That gives a 503?

That error code doesn't make sense to me given the modification, but if it goes away when reverting that modification then that must be the cause. I can only assume you did something wrong when applying the code changes, because that mod works for me and everyone else. Double check everything.
 
Yes exactly I am getting 503 error from this page. My vip member name is "sponsor" I think its id 7.I don't know id is true.

Code:
protected function _getNotableMembers($type, $limit)
    {
        $userModel = $this->_getUserModel();

        $notableCriteria = array(
            'is_banned' => 0
        );

        if ($type == 'sponsor')
        {
            $notableCriteria['secondary_group_ids'] = array(7);
        }

        $typeMap = array(
            'messages' => 'message_count',
            'likes' => 'like_count',
            'points' => 'trophy_points',
            'sponsor' => 'message_count'
        );

        if (!isset($typeMap[$type]))
        {
            return false;
        }

        return array($userModel->getUsers($notableCriteria, array(
            'join' => XenForo_Model_User::FETCH_USER_FULL,
            'limit' => $limit,
            'order' => $typeMap[$type],
            'direction' => 'desc'
        )), $typeMap[$type]);
    }

<li class="{xen:if '{$type} == "sponsor"', active}"><a href="{xen:link members, '', 'type=sponsor'}">Sponsor Members</a></li>

Am I doing wrong?
 
Top Bottom