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

Support for PhpBB3. Post here to get help with any phpBB3 related issue here
There is no support here! Only Read Access!
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.
Else your topic may be ignored or locked!
User avatar
Stoker
Site Admin
Site Admin
Posts: 3558
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

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]
Board rules! No PM support
User avatar
HH-E10
BBCoder II
BBCoder II
Posts: 9
Joined: 11 May 2010, 16:48

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

Post by HH-E10 »

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