Hello
I've noticed that filter_inc.php replaces any expression only once. This fails to work when there are several smilies or :me/:you expressions.
Just for the case anyone interested... in filter_inc.php:
replace the smiles cycle with this one...
do { $pattern=current($smiley); $replacement=current($smileyfile);
$chat=preg_replace("/".preg_quote($pattern,"/")."/",$smileyopen.$replacement.$smileyclose,$chat);
next($smileyfile); } while (next($smiley));
Again if anyone interested...
The line right before "return $chat;" will allow to enter new lines into message...
$chat = preg_replace("/\s+\*n/","<br/> ",$chat);
The usage, I think, is obvious...
Log in to post a comment.
Hello
I've noticed that filter_inc.php replaces any expression only once. This fails to work when there are several smilies or :me/:you expressions.
Just for the case anyone interested...
in filter_inc.php:
replace the smiles cycle with this one...
do {
$pattern=current($smiley);
$replacement=current($smileyfile);
$chat=preg_replace("/".preg_quote($pattern,"/")."/",$smileyopen.$replacement.$smileyclose,$chat);
next($smileyfile);
} while (next($smiley));
Again if anyone interested...
The line right before "return $chat;" will allow to enter new lines into message...
$chat = preg_replace("/\s+\*n/","<br/> ",$chat);
The usage, I think, is obvious...