in chat.html.tpl, change
- Code: Select all
<input type="text"
id="pfc_words"
title="<?php echo _pfc("Enter your message here"); ?>"
maxlength="<?php echo $max_text_len; ?>"/>
to
- Code: Select all
<textarea rows=1 cols=120
id="pfc_words"
title="<?php echo _pfc("Enter your message here"); ?>"
maxlength="<?php echo $max_text_len; ?>"/></textarea>
in pfcommand.class.php add the following to first lines of function ParseCommand($cmd_str, $one_parameter = false)
- Code: Select all
if (strstr ($cmd_str,"/send"))
{
$cmd_str= str_replace(array("n","t"),array("[br]","[tab]"), $cmd_str);
}
in data/public/js/pfclient.js
in parseMessage: function(msg) before
- Code: Select all
// try to parse smileys
var smileys = this.res.getSmileyHash();
(around line 1500) add
- Code: Select all
msg = msg.replace(/[br]/g, '<br>');
msg = msg.replace(/[tab]/g, ' ');