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 Pollstarter [/name] # Module Directory Name [short_name] most_active_pollstarter [/short_name] # your name [author] Fost [/author] # your email [email] fost@moonpod.com [/email] # your webpage url [url] http://www.moonpod.com/ [/url] # module version [version] 1.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.moonpod.com/board/viewtopic.php?p=6839 (not sure if he is updating still) http://www.detecties.com/phpbb2018 [/check_update_site] # extra info for the user [extra_info] This Module displays the most active poll starter on your board. Anonymous posters 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'], 'polls' => $lang['polls'], $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_polls FROM " . TOPICS_TABLE . " WHERE topic_vote = 1 AND topic_status <> " . TOPIC_MOVED; $result = $core->sql_query($sql, 'Unable to retrieve total topics'); $row = $core->sql_fetchrow($result); $total_polls = $row['total_polls']; $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) AND (t.topic_vote = 1) 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_polls); $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ÿÌÌ