Quote:
Originally posted by vertex
ok if i have the hack already by supreemball what is there to add thats different? is showbanned.php different?
|
Firts make sure that you create the extra and take down the ID that field and add to you config.php the following:
$bannedbyfieldid=7;
and the in the mod/user.php find:
Quote:
$banuser=$DB_site->query_first("SELECT username,userid,usergroupid,customtitle,posts FROM user WHERE userid=$userid");
$ismod=$DB_site->query_first("SELECT moderatorid FROM moderator WHERE userid=$userid");
|
and replace it by:
Quote:
$banby = $bbuserinfo['username'];
$banuser=$DB_site->query_first("SELECT username,userid,usergroupid,customtitle,posts FROM user WHERE userid=$userid");
$ismod=$DB_site->query_first("SELECT moderatorid FROM moderator WHERE userid=$userid");
|
in the same file look for:
Quote:
$DB_site->query("UPDATE userfield SET field$banreasonfieldid='$banreason', field$banuntilfieldid='$banuntil', WHERE userid=$banuser[userid]");
|
and replace it with
Quote:
$DB_site->query("UPDATE userfield SET field$banreasonfieldid='$banreason', field$banuntilfieldid='$banuntil', field$bannedbyfieldid='$banby' WHERE userid=$banuser[userid]");
|
and use my showbanned.php, and replace all the template with mine, it should be working fine after all that.
xiphoid
Quote:
Can I limit this to only super/mods/admins can see this? I do not wish guests or registered members to see this.
|
That's on my todo list.....