3.0.0MPAKÿüÌINFOÌüÿ# # This file contains Installation Informations. # This file does not include Installation Instructions for the normal User. # Please do not edit this file if you are not the Module Author. # # Please read the provided install.txt for Informations on how to install this Module. # # Module Name [name] Most Active Topicstarter [/name] # Module Directory Name [short_name] most_active_topicstarter [/short_name] # your name [author] Acyd Burn Original Author (2.x Module): RustyDragon [/author] # your email [email] --- [/email] # your webpage url [url] http://www.detecties.com/phpbb2018 [/url] # module version [version] 3.0.0 [/version] # required minimum Statistics Mod Version [stats_mod_version] 3.0.1beta3s [/stats_mod_version] # default update time [update_time] 360 [/update_time] [check_update_site] http://www.detecties.com/phpbb2018 [/check_update_site] # extra info for the user [extra_info] This Module displays the most active topicstarter on your board. Anonymous Poster are not counted. [/extra_info]ÌÌÿINFOÿÌÌÿüÌLANGÌüÿÌÌÿLANGÿÌÌÿüÌMODÌüÿstart_module(true); $core->set_content('bars'); $core->set_view('rows', $core->return_limit); $core->set_view('columns', 5); $core->define_view('set_columns', array( $core->pre_defined('rank'), 'username' => $lang['Username'], 'posts' => $lang['Topics'], $core->pre_defined('percent'), $core->pre_defined('graph')) ); $content->percentage_sign = TRUE; $core->set_header($lang['module_name']); $core->assign_defined_view('align_rows', array( 'left', 'left', 'center', 'center', 'left') ); $sql = "SELECT COUNT(topic_id) as total_topics FROM " . TOPICS_TABLE . " WHERE topic_status <> " . TOPIC_MOVED; $result = $core->sql_query($sql, 'Unable to retrieve total topics'); $row = $core->sql_fetchrow($result); $total_topics = $row['total_topics']; $sql = "SELECT u.user_id, u.username, COUNT(t.topic_poster) num_topics FROM " . USERS_TABLE . " u, " . TOPICS_TABLE . " t WHERE (t.topic_poster <> " . ANONYMOUS . ") AND (u.user_posts > 0) AND (u.user_id = t.topic_poster) GROUP BY t.topic_poster ORDER BY num_topics DESC LIMIT " . $core->return_limit; $result = $core->sql_query($sql, 'Unable to retrieve user and topic data'); $data = $core->sql_fetchrowset($result); $content->init_math('num_topics', $data[0]['num_topics'], $total_topics); $core->set_data($data); $core->define_view('set_rows', array( '$core->pre_defined()', '$core->generate_link(append_sid($phpbb_root_path . \'profile.php?mode=viewprofile&u=\' . $core->data(\'user_id\')), $core->data(\'username\'), \'target="_blank"\')', '$core->data(\'num_topics\')', '$core->pre_defined()', '$core->pre_defined()') ); $core->run_module(); ?>ÌÌÿMODÿÌÌ