MyBB Community Forums

Full Version: Help with HTML: iframe
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Magus Wrote:The frame is still very small. I've double checked the code and did everything right. However, when checking my actual webpage hosting the iframe - there is an error mentioned at the bottom of IE.

The error says "Line 19, Char 1, Error: Access is denied, URL: http://forums.joinsigma.com/mybb/"

This might have something to do with why it won't adjust it's size?

ok the reason for this is becuase you have used the full url of the forums, you need to put the location of your forums as follows

If your website and forums are

/www/website
/forums

you need to edit the iframe code to read

<iframe name="content" id="content" frameborder="0" scrolling="no" width="100%" src="../forums/index.php"></iframe>

as you can see the whole url for the forums is not used, i have tested this on my own mybb test forums and it works like a charm

as for the ?> appearing, this is because i accidently put that in the header include code. just remove it Smile
I tested my forums out a bit more and found you need to edit one more bit of code

Admin CP > Templates > Template > Expand > Index Templates > Index
Delete this line

<body onload="setHeight()">

Admin CP > Templates > Template > Expand > Header Include

Add this at the very bottom
<body onload="setHeight()">


To see a working version click here
Pages: 1 2