MyBB Community Forums

Full Version: New Post/Thread text box doesn't fit?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
My forum... http://thehockeynation.ca

When you go to post a New Thread, or a New Reply the text box overlaps the container for it, like so (see picture):

[attachment=29701]

Also, in only one of my subforums -- http://thehockeynation.ca/forumdisplay.php?fid=65 -- (that I've found so far) the New Thread page text editor doesn't have any buttons or even the smilie box at the side:

[attachment=29702]
(2013-07-10, 10:05 PM)HNAdmin Wrote: [ -> ]My forum... http://thehockeynation.ca

When you go to post a New Thread, or a New Reply the text box overlaps the container for it, like so (see picture):



Also, in only one of my subforums -- http://thehockeynation.ca/forumdisplay.php?fid=65 -- (that I've found so far) the New Thread page text editor doesn't have any buttons or even the smilie box at the side:
Try this, I used it before and it worked, just post back if it doesn't.

Open (jscripts/editor.js)
Find:
 // Determine the overall height and width - messy, but works
        w = oldTextarea.getDimensions().width+"px";
        if(!w || parseInt(w) < 400)
        {
            w = "400px";
        }
        if(this.options && this.options.height)
        {
            h = this.options.height;
        }
        else if(oldTextarea.offsetHeight)
        {
            h = oldTextarea.offsetHeight+"px";
        }
        else if(oldTextarea.clientHeight)
        {
            h = oldTextarea.clientHeight+"px";
        }
        else if(oldTextarea.style.height)
        {
            h = oldTextarea.style.height;
        }
        else
        {
            h = "400px";
        }
        this.editor.style.width = w;
        this.editor.style.height = h; 
Replace with:
// Determine the overall height and width - messy, but works
        w = "550px";
        h = "300px";
        this.editor.style.width = w;
        this.editor.style.height = h; 
Find:
textInput.style.height = parseInt(areaContainer.style.height)+"px";
        textInput.style.width = parseInt(areaContainer.style.width)+"px"; 
Replace with:
textInput.style.height = "229px";
        textInput.style.width = "544px"; 
It worked after I changed the textInput.style.height = "229px" to "225px".

Thank you.


Any ideas on what's going on for my second problem? It only happens in that one forum.

EDIT: Wow I'm an idiot. I just checked the "Allow MyCode" option in forum settings for that one forum and it fixed everything...
Great, I'm glad it is now fixed Smile