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] Top Avatars [/name] # Module Directory Name [short_name] top_avatars [/short_name] # your name [author] Fost Wicher [/author] # your email [email] fost@moonpod.com [/email] # your webpage url [url] http://www.moonpod.com/ [/url] # module version [version] 4.1.5 [/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 Top Gallery Avatars from your board. Uploaded and Offsite Avatars 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', 4); $core->define_view('set_columns', array( $core->pre_defined('rank'), 'image' => $lang['Avatar_image'], 'posts' => $lang['Users'], $core->pre_defined('graph')) ); $core->set_header($lang['module_name']); $core->assign_defined_view('align_rows', array( 'left', 'left', 'center', 'left') ); $sql = "SELECT SUM(user_avatar) as total_avatar_users FROM " . USERS_TABLE . " WHERE user_avatar <> '' AND user_avatar_type = ".USER_AVATAR_GALLERY; $result = $core->sql_query($sql, 'Unable to retrieve avatar usage data'); $row = $core->sql_fetchrow($result); $total_avatar_users = $row['total_avatar_users']; $sql = "SELECT user_avatar, user_avatar_type, COUNT( * ) AS avatarCount FROM " . USERS_TABLE . " WHERE (user_avatar <> '') AND user_avatar_type = ".USER_AVATAR_GALLERY." AND user_id <> ".ANONYMOUS." GROUP BY user_avatar ORDER BY avatarCount DESC LIMIT " . $core->return_limit; $result = $core->sql_query($sql, 'Unable to retrieve avatar usage data'); $data = $core->sql_fetchrowset($result); $content->init_math('avatarCount', $data[0]['avatarCount'], $total_avatar_users); $core->make_global(array( '$board_config') ); $core->set_data($data); $core->define_view('set_rows', array( '$core->pre_defined()', '$core->generate_image_link($board_config[\'avatar_gallery_path\'] . \'/\' . $core->data(\'user_avatar\'), $core->data(\'user_avatar\'), \'border="0"\')', '$core->data(\'avatarCount\')', '$core->pre_defined()') ); $core->run_module(); ?>ÌÌÿMODÿÌÌ