2012-09-30, 10:21 AM
Assuming:
1. Your homepage is index.php
2. Your banned usergroup id is 7 (default).
Now open your index page template:
ACP > Templates & Styles > Templates > {your_theme} Templates > Index Page Templates > Index
Find the code:
Replace with:
Now add just above it:
Now design your Banned Message Page using "Page Manager" with URI Parameter banned
You can use the trick to redirect other usergroups also to other pages as you like.
1. Your homepage is index.php
2. Your banned usergroup id is 7 (default).
Now open your index page template:
ACP > Templates & Styles > Templates > {your_theme} Templates > Index Page Templates > Index
Find the code:
<body>
Replace with:
<body onload="bannedredirect()">
Now add just above it:
<script type="text/javascript">
function bannedredirect()
{
if({$mybb->user['usergroup']} == 7)
{
window.location="{$mybb->settings['bburl']}/misc.php?page=banned";
}
}
</script>
Now design your Banned Message Page using "Page Manager" with URI Parameter banned
You can use the trick to redirect other usergroups also to other pages as you like.