Tutorial Redirect Banned User From Homepage
poeja .

many banned members can access your page freely? this tutorial will show you how to banned them and redirect them from accessing your forum easily.

First you need to make one file named "banned.html"

then enter the following code to it
PHP Code:
<html>
<
head>
<
title>Error Page</title>
</
head>
<
body>
{
$header}
<
br />
<
table width="100%" border="0">
<
thead>
<
tr>
<
th>RULES</th>
</
tr>
<
tbody>
<
tr>
<
td>You are banned userplease contact admin for further support.<br/><br/><a href="http://forumesia.com/contact.php">Contact Us</a></td>
</
tr>
</
tbody>
</
table>
</
body>
</
html

usergroup ID banned is 7

now, go to:
ACP> Templates & Styles> Templates> {your_theme} Templates> Index Page Templates> Index

find the following code:
Code:
<body>

replace with:
Code:
<body onload = "bannedredirect ()">

then, enter the following code above it:
Code:
<script type="text/javascript">
function bannedredirect ()
{
   if ({$mybb->user['usergroup']} == 7)
   {
       window.location = "{$mybb-> settings['bburl']}/banned.html";
   }
}
</ script>

or for the custom one, you can take a look at this tutorial
read Tutorial Creating a MyBB Custom Page

Settings

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
0 Vote(s) - 0 Average