array(), 'rows' => ceil($pagesize / qa_opt('columns_users')), 'type' => 'users', 'sort' => 'points', ); if (count($users)) { foreach ($users as $userid => $user) { if (QA_FINAL_EXTERNAL_USERS) $avatarhtml = qa_get_external_avatar_html($user['userid'], qa_opt('avatar_users_size'), true); else { $avatarhtml = qa_get_user_avatar_html($user['flags'], $user['email'], $user['handle'], $user['avatarblobid'], $user['avatarwidth'], $user['avatarheight'], qa_opt('avatar_users_size'), true); } // avatar and handle now listed separately for use in themes $qa_content['ranking']['items'][] = array( 'avatar' => $avatarhtml, 'label' => $usershtml[$user['userid']], 'score' => qa_html(qa_format_number($user['points'], 0, true)), 'raw' => $user, ); } } else { $qa_content['title'] = qa_lang_html('main/no_active_users'); } $qa_content['canonical'] = qa_get_canonical(); $qa_content['page_links'] = qa_html_page_links(qa_request(), $start, $pagesize, $usercount, qa_opt('pages_prev_next')); $qa_content['navigation']['sub'] = qa_users_sub_navigation(); return $qa_content;