// Then calculate their posts per day // $regdate = $profiledata['user_regdate']; $memberdays = max(1, round((time() - $regdate) / 86400)); $posts_per_day = $profiledata['user_posts'] / $memberdays; // Get the users percentage of total posts if ($profiledata['user_posts'] != 0) { $total_posts = $config['max_posts']; $percentage = $total_posts ? min(100, $profiledata['user_posts'] / $total_posts * 100) : 0; } else { $percentage = 0; } // Mighty Gorgon - Thanks Received - BEGIN $total_thanks_received = 0; if ($config['show_thanks_profile'] && empty($config['disable_likes_posts'])) { $total_thanks_received = user_get_thanks_received($profiledata['user_id']); $template->assign_block_vars('show_thanks_profile', array()); } // Mighty Gorgon - Thanks Received - END // Mighty Gorgon - HTTP AGENTS - BEGIN include IP_ROOT_PATH . 'includes/functions_mg_http.' . PHP_EXT; $user_os = get_user_os($profiledata['user_browser']); $user_browser = get_user_browser($profiledata['user_browser']); // Mighty Gorgon - HTTP AGENTS - END // Mighty Gorgon - Full Album Pack - BEGIN if (!empty($config['plugins']['album']['enabled'])) { include IP_ROOT_PATH . PLUGINS_PATH . $config['plugins']['album']['dir'] . 'common.' . PHP_EXT; include IP_ROOT_PATH . PLUGINS_PATH . $config['plugins']['album']['dir'] . 'includes/album_functions_profile.' . PHP_EXT; album_profile_last_pictures($profiledata); } // Mighty Gorgon - Full Album Pack - END
//$mini_post_url = append_sid(CMS_PAGE_VIEWTOPIC . '?' . $forum_id_append . '&' . $topic_id_append . $kb_mode_append . '&' . POST_POST_URL . '=' . $postrow[$i]['post_id']) . '#p' . $postrow[$i]['post_id']; $mini_post_url = append_sid(CMS_PAGE_VIEWTOPIC . '?' . POST_POST_URL . '=' . $postrow[$i]['post_id']) . '#p' . $postrow[$i]['post_id']; } // Mighty Gorgon - Multiple Ranks - BEGIN $user_ranks = generate_ranks($postrow[$i], $ranks_array); if (($user_ranks['rank_01_html'] == '') && ($user_ranks['rank_01_img_html'] == '') && ($user_ranks['rank_02_html'] == '') && ($user_ranks['rank_02_img_html'] == '') && ($user_ranks['rank_03_html'] == '') && ($user_ranks['rank_03_img_html'] == '') && ($user_ranks['rank_04_html'] == '') && ($user_ranks['rank_04_img_html'] == '') && ($user_ranks['rank_05_html'] == '') && ($user_ranks['rank_05_img_html'] == '')) { $user_ranks['rank_01_html'] = ' '; } // Mighty Gorgon - Multiple Ranks - END $poster_thanks_received = ''; if (($poster_id != ANONYMOUS) && ($user->data['user_id'] != ANONYMOUS) && $config['show_thanks_viewtopic'] && empty($config['disable_thanks_topics']) && !$lofi) { $total_thanks_received = user_get_thanks_received($poster_id); $poster_thanks_received = ($total_thanks_received > 0) ? ($lang['THANKS_RECEIVED'] . ': ' . '<a href="' . append_sid(CMS_PAGE_SEARCH . '?search_thanks=' . $poster_id) . '">' . $total_thanks_received . '</a>' . '<br />') : ''; } // Handle anon users posting with usernames if (($poster_id == ANONYMOUS) && ($postrow[$i]['post_username'] != '')) { $poster = $postrow[$i]['post_username']; $poster_qq = $postrow[$i]['post_username']; $user_ranks['rank_01_html'] = $lang['Guest'] . '<br />'; } if ($poster_id != ANONYMOUS) { $profile_url = append_sid(CMS_PAGE_PROFILE . '?mode=viewprofile&' . POST_USERS_URL . '=' . $poster_id); $profile_img = '<a href="' . $profile_url . '"><img src="' . $images['icon_profile'] . '" alt="' . htmlspecialchars($postrow[$i]['username']) . ' - ' . $lang['Read_profile'] . '" title="' . htmlspecialchars($postrow[$i]['username']) . '" /></a>';