Page 2 of 2

Re: Problem : Mchat Smilies .....

Posted: 12 May 2010, 12:26
by Stoker
You can try using a textarea like I do on this board.
Do the following:
1. undo the mchat edits
2. Open subsilver mchat_body.html
Find:

Code: Select all

var mChatFocusFix = true;
add after:

Code: Select all

function foo(e) {
    if (!e.shiftKey && e.keyCode==13) {
        mChat.add();
        if (e.preventDefault) e.preventDefault();
        if (e.stopPropagation) e.stopPropagation();
        e.cancelBubble = true;
        e.returnValue = false;
    }
}
Find:

Code: Select all

<input type="text" tabindex="1" name="message" class="mChatText" id="mChatMessage" />
Replace with:

Code: Select all

<textarea tabindex="1" onkeydown="foo(event)" name="message" id="mChatMessage" class="mChatText"></textarea><br />
Refresh template.

Now you can change lines in the mchat. Just hit shift + enter for a new line.


[edit]Now I see you got it working, then disregard above post :)[/edit]

Re: Solved : Mchat Smilies ..... Thank you all

Posted: 14 May 2010, 13:04
by HH-E10
thank you , it work perfectly very nice add .... :)