Open
Shoutbox.php
Find this:
PHP Code:
$templatesused = 'shoutbox,shoutboxbit,shoutbox_adminoptions,shoutbox_error,shoutbox_leaderbit,shoutbox_leaders,shoutbox_notloggedin,shoutbox_pagenav,shoutbox_postshout';
Replace that with this:
PHP Code:
$templatesused = 'shoutbox,shoutboxbit,shoutbox_adminoptions,shoutbox_error,shoutbox_leaderbit,shoutbox_leaders,shoutbox_notloggedin,shoutbox_banned,shoutbox_pagenav,shoutbox_postshout';
Then find this:
PHP Code:
eval("\$shoutbox_postshout = \"".gettemplate("shoutbox_notloggedin",1,0)."\";");
}
Below that, add this:
PHP Code:
// ###################### START OF BANNING OPTION ##########################
if ($bbuserinfo[userid] == X) {
eval("\$shoutbox_postshout = \"".gettemplate("shoutbox_banned",1,0)."\";");
}
// ###################### END OF BANNING OPTION ##########################
Replace X in that code with the User ID of the person you are banning.
Then
create a template named
shoutbox_banned
Put this in that template:
PHP Code:
<br/><center><normalfont color="white"><b>You have been banned from the shoutbox and no longer have the ability to shout.</b></normalfont></center><br/>
Upload your shoutbox.php and that should be it.
Don't forget to change the font color from white in the added template to whatever color that matches your style. That's the color the text will be from the ban message.
If you do that correctly, when someone that is banned goes to the shoutbox it will look like the attached screenshot. Sorry it's not a function that you can do from your AdminCP, I'm not that good. :ermm: