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

XF 1.2 Add New Tab to Notable Members

Discussion in 'Styling and Customization Questions' started by mbt131, Feb 2, 2014.

  1. mbt131

    mbt131 Member

    Last edited: Feb 3, 2014
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Exactly which page gives the 503 error?
  3. mbt131

    mbt131 Member

  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Do you mean the main members page? Like this?


    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.
  5. mbt131

    mbt131 Member

    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.

    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?
  6. mbt131

    mbt131 Member

    Ok I did this.Very thanks.I don't know why I got 503 error.This is now okey. Can you help me with my second question ?

Share This Page