// Avatars in the Today's Top Ten Posters List - Hack by: Hal10000 // // This hack will show the Avatar of an User in the Today's Top Ten Posters List. // // Supplied and supported by Hal10000 (hack@hal10000.de) =======================================================================// Step 1 - Download and Backup > Skin/s1/skin_stats.php > sources/misc/stats.php > sources/functions.php =======================================================================// --------------------------------------------------------------------- Open Skin/s*/skin_stats.php AND FIND THE FOLLOWING (around line 140) --------------------------------------------------------------------- {$ibforums->lang['member']} -------------------------------------------------------------------- ADD THE FOLLOWING LINE RIGHT "ABOVE" THAT -------------------------------------------------------------------- --------------------------------------------------------------------- FIND THE FOLLOWING (around line 145) --------------------------------------------------------------------- {$info['name']} -------------------------------------------------------------------- ADD THE FOLLOWING LINE RIGHT "ABOVE" THAT -------------------------------------------------------------------- {$info['avatar']} =======================================================================// Step 2 : Save And Close Skin/s*/skin_stats.php =======================================================================// -------------------------------------------------------------------- Open sources/misc/stats.php AND FIND THE FOLLOWING (around line 373) -------------------------------------------------------------------- $DB->query("SELECT COUNT(p.pid) as tpost, m.id, m.name, m.joined, m.posts FROM ibf_posts p, ibf_members m " ."WHERE m.id > 0 AND m.id=p.author_id and post_date < $time_high and post_date > $time_low GROUP BY p.author_id ORDER BY tpost DESC LIMIT 0,10"); -------------------------------------------------------------------- REPLACE WITH THE FOLLOWING LINE -------------------------------------------------------------------- $DB->query("SELECT COUNT(p.pid) as tpost, m.id, m.name, m.joined, m.avatar, m.avatar_size, m.posts FROM ibf_posts p, ibf_members m " ."WHERE m.id > 0 AND m.id=p.author_id and post_date < $time_high and post_date > $time_low GROUP BY p.author_id ORDER BY tpost DESC LIMIT 0,10"); -------------------------------------------------------------------- FIND THE FOLLOWING (around line 389) -------------------------------------------------------------------- $info['joined'] = $std->get_date( $info['joined'], 'JOINED' ); -------------------------------------------------------------------- ADD THE FOLLOWING LINE RIGHT "BELOW" THAT -------------------------------------------------------------------- $info['avatar'] = $std->get_avatar( $info['avatar'] , 2, $info['avatar_size'] ); -------------------------------------------------------------------- OR IF YOU WANT THE PICTURE TO BE IN ORGINAL SIZE YOU HAVE TO ADD (you can also skip Step 4) -------------------------------------------------------------------- $info['avatar'] = $std->get_avatar( $info['avatar'] , 1, $info['avatar_size'] ); =======================================================================// Step 3 - Save and Close sources/misc/stats.php =======================================================================// -------------------------------------------------------------------- Open sources/functions.php AND FIND THE FOLLOWING (around line 1558) -------------------------------------------------------------------- if ( (preg_match ( "/\.swf/", $member_avatar)) and ($ibforums->vars['allow_flash'] != 1) ) { return ""; } -------------------------------------------------------------------- ADD THE FOLLOWING LINES RIGHT "BELOW" THAT -------------------------------------------------------------------- if ($member_view_avatars == 2) { if ( preg_match( "/^http:\/\//", $member_avatar ) ) { // Ok, it's a URL.. if (preg_match ( "/\.swf/", $member_avatar)) { return " "; } else { return ""; } //--------------------------------------- // Not a URL? Is it an uploaded avatar? //--------------------------------------- } else if ( ($ibforums->vars['avup_size_max'] > 1) and ( preg_match( "/^upload:av-(?:\d+)\.(?:\S+)/", $member_avatar ) ) ) { $member_avatar = preg_replace( "/^upload:/", "", $member_avatar ); if ( preg_match ( "/\.swf/", $member_avatar) ) { return " "; } else { return ""; } } //--------------------------------------- // No, it's not a URL or an upload, must // be a normal avatar then //--------------------------------------- else if ($member_avatar != "") { //--------------------------------------- // Do we have an avatar still ? //--------------------------------------- return ""; } else { //--------------------------------------- // No, ok - return blank //--------------------------------------- return ""; } } =======================================================================// Step 4 - Save and Close sources/functions.php =======================================================================// -------------------------------------------------------------------- Now Upload all three files that you edited back to their proper locations -------------------------------------------------------------------- > Skin/s1/skin_stats.php > sources/misc/stats.php > sources/functions.php ===================================================================== Your Finished, use and enjoy :) =====================================================================