This guide is only for people who intergrated a site with the UseBB forums (Like Me). Here are the following steps:

1) First of all, lets make a Database:

CREATE TABLE `Ban_IP` (
`ID` bigint(20) NOT NULL auto_increment,
`IP` varchar(255) collate latin1_general_ci NOT NULL default '',
PRIMARY KEY (`ID`)
) ENGINE=MyISAM ;


I'm going to be using the table called: Ban_IP.

2) Make a template for banned users only:

<style type="text/css">

a:link {
color: #003366;
text-decoration: underline;
}

a:visited {
color: #003366;
text-decoration: underline;
}

a:hover {
color: #FF6347;
text-decoration: none;
}

.contentbox {
border: 1px solid #0099CC;
margin-bottom: 8px;

}
.boxestext {
font-family: Arial;
font-size: 11px;
color: #333333;
text-align: left;
padding: 3px;
}

</style>

<div class="contentbox">
<div class="contentheader">
<title>The Pokemon Playground Arena
</title>
</div>
<div class="boxestext">
Sorry, but it looks like your account is <b>IP Banned</b>. If you think this was a mistake, please email: <a href="mailto:danyal@tpparpg.com?subject=Banned Problem">Danyal</a>
</div>
</div>



3) Add this code where you want the Code to do its trick:

$IP=$_SERVER["REMOTE_ADDR"];
$Check="SELECT * from Ban_IP where IP='$s'";
$Check2=mysql_query($Check) or die('Invalid query: ' . mysql_error());
$Check3=mysql_fetch_array($Check2);
if($Check3)

{


include ("path/to/template.html");
exit();
}


4) Making a form for adding different IPs:

Coming Soon.
------------------------
- Danyal