1. Display banned users in Statistics

Display banned users in Statistics

  |   1
Display banned users in StatisticsDisplay banned users in StatisticsIntroducing a new hack dle which allows you to display a list of banned users in the statistics for any site dle version. Now, your visitors can see a list of users in the statistics site get banned or banned users.

Author: DaeWoo
Version DLE: 9.x-10.x

Installation!
1. Open /engine/modules/stats.php and find:
$db->free();
$tpl->set( '{topusers}', $top_table );


Above the insert:
$db->query( "SELECT user_id, name, user_group, reg_date, lastdate, news_num, comm_num FROM " . USERPREFIX . "_users WHERE banned='yes' ORDER BY lastdate DESC LIMIT 0,10" );
        
        $banned_table = "<thead><td>{$lang['top_name']}</td><td align=\"center\">{$lang['top_status']}</td><td align=\"center\">{$lang['top_reg']}</td><td align=\"center\">{$lang['top_last']}</td><td align=\"center\">{$lang['top_nnum']}</td><td align=\"center\">{$lang['top_cnum']}</td><td align=\"center\">{$lang['top_pm']}</td></thead>";
        while ( $row = $db->get_row() ) {
        $registration = langdate( $config['timestamp_active'], $row['reg_date'] );
            $last = langdate( $config['timestamp_active'], $row['lastdate'] );
     
            if( $config['allow_alt_url'] == "yes" ) {
                
                $user_name = $config['http_home_url'] . "user/" . urlencode( $row['name'] ) . "/";
                $user_name = "onclick=\"ShowProfile('" . urlencode( $row['name'] ) . "', '" . htmlspecialchars( $user_name ) . "'); return false;\"";
                $user_name = "<a {$user_name} class=\"pm_list\" href=\"" . $config['http_home_url'] . "user/" . urlencode( $row['name'] ) . "/\">" . $row['name'] . "</a>";
            
            } else {
                
                $user_name = "$PHP_SELF?subaction=userinfo&amp;user=" . urlencode( $row['name'] );
                $user_name = "onclick=\"ShowProfile('" . urlencode( $row['name'] ) . "', '" . htmlspecialchars( $user_name ) . "'); return false;\"";
                $user_name = "<a {$user_name} class=\"pm_list\" href=\"$PHP_SELF?subaction=userinfo&amp;user=" . urlencode( $row['name'] ) . "\">" . $row['name'] . "</a>";
     
            }
                    
            $user_pm = "<a href=\"$PHP_SELF?do=pm&doaction=newpm&user=" . $row['user_id'] . "\">{$lang['top_pm']}</a>";
            
            $banned_table .= "<tr><td>{$user_name}</td><td align=\"center\">{$user_group[$row['user_group']]['group_prefix']}{$user_group[$row['user_group']]['group_name']}{$user_group[$row['user_group']]['group_suffix']}</td><td align=\"center\">{$registration}</td><td align=\"center\">{$last}</td><td align=\"center\">{$row['news_num']}</td><td align=\"center\">{$row['comm_num']}</td><td align=\"center\">[ {$user_pm} ]</td></tr>";
        }


Find more:
$tpl->set( '{topusers}', $top_table );


Below insert:
$tpl->set( '{bannedusers}', $banned_table );


2. Open the file stats.tpl current template and add where u want:
{bannedusers}


Login Required!Only registered users can download files. Please register or Login
Dear visitor, you are browsing our website as Guest.
We strongly recommend you to register and login to view hidden contents.

Details

+4

Comments 1

MongKol
MongKol
Moderators
Commented By MongKol on August 26, 2015 (11:41 pm)
so it just display those spammers and those who broke the site rules...that's good...they deserved to be called jackass in public am
N/A 17Forum topics : 0Forum replies : 47Forum likes : 3
Information!Would you like to leave your comment? Please Login to your account to leave comments. Don't have an account? You can create a free account now.
DLEStarter Notice!Please note...Every hack and every module will get additional queries from your database and some hacks and some modules may result your server overload, so install only what you "need", remove any hacks and modules from your script when you don't need them, all hacks and modules appears in this website are not guaranteed by DLEStarter Team for your script security and compatibility, please read instruction carefully and use hacks and modules at your own risk...Thank you.