/** * Show the top poster's name and profile link. * * @param int $topNumber * @param string $output_method = 'echo' */ function ssi_topPoster($topNumber = 1, $output_method = 'echo') { require_once SUBSDIR . '/Stats.subs.php'; $top_posters = topPosters($topNumber); // Just return all the top posters. if ($output_method != 'echo') { return $top_posters; } // Make a quick array to list the links in. $temp_array = array(); foreach ($top_posters as $member) { $temp_array[] = $member['link']; } echo implode(', ', $temp_array); }
/** * Top posters, boards, replies, etc. */ public function loadTopStatistics() { global $context; // Poster top 10. $context['top']['posters'] = topPosters(); // Board top 10. $context['top']['boards'] = topBoards(); // Topic replies top 10. $context['top']['topics_replies'] = topTopicReplies(); // Topic views top 10. $context['top']['topics_views'] = topTopicViews(); // Topic poster top 10. $context['top']['starters'] = topTopicStarter(); // Time online top 10. $context['top']['time_online'] = topTimeOnline(); }