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

Support for PhpBB3.
Post here to get help with any phpBB3 related issue
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe your problem and what happened when the problem occured
3. Tell us what version of phpBB3 you are currently using.
If not your topic may be ignored or locked!

Re: Problem : Mchat Smilies .....

Post 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

Post by HH-E10 »

thank you , it work perfectly very nice add .... :)