I've used this mod. It's great.
I've made some modifies: the $cantshout group won't see the text box so they can't input text. It'll prevent the guest posting and the script won't run.
Open the chatbox.php, find:
PHP Code:
echo '<div class="smallfont">'.$date.'<form action="'.THIS_SCRIPT.'.php" method="post" name="chatboxForm"><input type="text" name="shout" size="50" maxlength="255" class="smallfont"> <input type="submit" value="'.$text_send.'" class="smallfont"> <input type="button" value="'.$text_refresh.'" onclick="refreshChatboxLite(\'\')" class="smallfont"> '.$pagelinks.'<br /></form></div>';
(line 162)
replace with:
PHP Code:
echo '<div class="smallfont">'.$date.'<form action="'.THIS_SCRIPT.'.php" method="post" name="chatboxForm">';
if ( !empty($canshout) ) {
echo '<input type="text" name="shout" size="50" maxlength="255" class="smallfont"> <input type="submit" value="'.$text_send.'" class="smallfont">';
}
echo '<input type="button" value="'.$text_refresh.'" onclick="refreshChatboxLite(\'\')" class="smallfont"> '.$pagelinks.'<br /></form></div>';
Then find:
PHP Code:
if (empty($_REQUEST['nofocus'])) {
?>
replace with:
PHP Code:
if (empty($_REQUEST['nofocus']) && !empty($canshout)) {
?>