One issue I had with this hack, is the fact that it uses a separate table, to maintain those members which get banned. If you do that, then you have to manually change their status to unbanned, when the banning period expires.
Why can't we use the normal table, in which vB stores the banned users, called "userban"? In that way, we can have the vB's cron job take care of the unbanning.
For those who are interested in this, all you have to do, is the followings:
In your warn.php file, find the following line:
PHP Code:
$DB->query("insert into ".TABLE_PREFIX."banned_members values ('','{$user['userid']}','".time()."','{$time_unban}')");
Replace it, with the followings:
PHP Code:
if($warn_type['warn_permban']=="Yes")
{$liftdate=0;
}
else
{$liftdate=$time_unban;
}
$usergroupid=8
$DB_site->query("
INSERT INTO " . TABLE_PREFIX . "userban
(userid, usergroupid, displaygroupid, customtitle, usertitle, adminid, bandate, liftdate)
VALUES
($user[userid], $user[usergroupid], $user[displaygroupid], $user[customtitle], '" . addslashes($user['usertitle']) . "', $bbuserinfo[userid], " . TIMENOW . ", $liftdate)");
$DB_site->query("
UPDATE " . TABLE_PREFIX . "user SET
usergroupid = $usergroupid,
displaygroupid = $usergroupid
WHERE userid = $user[userid]
");
Of course, in this case, you do not use the option "Unban banned users" in your AdminCP, since the bans will no longer be in the table this hack is using, but in the table vB is creating.
Also, it is obvious, that if you use this mod of mine, any future improvements by the author of this hack, might not work, so use at your own risk.
I'll try to help anyone who has issues with the above mods, but I can't promise any response times.
Rgds
------------
John