NuclioN,
Just ban the user [space] in your chatbox control panel. That's just hitting the spacebar.
p0s3id0n & Erwin,
The code changes mentioned in posts # 68 and 70 in this thread (where the first post links point to) doesn't seem to help me get 5 messages in the "closed" version of the chatbox. I believe it must be because there has been some change to the code, since the code posted refers to "shout" stuff instead of "chat" stuff.
I've tried to insert
PHP Code:
$chatbit .= "<br>";
in two places to match the code you posted, but it didn't work. What I have now is
PHP Code:
}else{
$chat_row = mysql_fetch_assoc($chat_result);
$name = $chat_row["name"];
$comment = $chat_row["comment"];
$date = $chat_row["date"];
$date = date("Y") . "-" . substr($date, 4, 2) . "-" . substr($date, 1, 2) . " " . substr($date, 7, 2) . ":" . substr($date, 10, 2);
$date = date("[d/m|H:i]", strtotime($date) + ($bbuserinfo['timezoneoffset'] * 3600));
$comment = parseurl($comment);
$comment = ereg_replace("sessionhash=[a-z0-9]{32}", "", $comment);
$comment = ereg_replace("s=[a-z0-9]{32}", "", $comment);
$comment = bbcodeparse($comment);
$comment = str_replace("<br />"," ",$comment);
$comment = str_replace("<br>"," ",$comment);
$comment = swear($comment);
if(substr($comment,0,3) == "/me"){
$comment = stripslashes(substr($comment,3));
eval("\$chatbit = \"".gettemplate('chatbox_bit_me')."\";");
$chatbit .= "<br>";
}else{
$colorirc = $un_color_chat;
$comment = stripslashes($comment);
eval("\$chatbit = \"".gettemplate('chatbox_bit')."\";");
$chatbit .= "<br>";
}
eval("\$chatbox = \"".gettemplate('chatbox_fermee')."\";");
}
}
plus post #70's code, but it doesn't work.
Thanks for any advice.