Is there a sample on how to do that?
Thanks
-
MODX Staff
- 12,272 Posts
Honestly your best, most reliable way to do it unfortunately is creating a custom theme for SMF.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
Once, I used a scalable iframe trick:
Between <head> and </head>, add:
<script type="text/javascript" language="JavaScript">
<!--
function calcHeight()
{
var the_height=document.getElementById('the_iframe').contentWindow.document.body.scrollHeight; //find the height of the internal page
document.getElementById('the_iframe').style.height=the_height; //change the height of the iframe
}
//-->
</script>
Into the document:
<iframe src="for_example/punbb/index.php" id="the_iframe" onLoad="calcHeight();" width="600px" height="1" name="the_iframe" scrolling="no" frameborder="0">If you see this text your browser didn't support iframes. so see the page click on at the fowllowing link. <a href="link to the forum" target="_blank">Forum</A></iframe>
at the edge of dawn,
you ask yourself if your shadow did follow you down
all night long
It seems to only work in IE but not in FF until I make the height tall enough for the page then something show up.
Thanks
-
β A M B β
- 24,524 Posts
Odd, I got the "table blah blah does not exist" error in the main content area, refreshed the page and it loaded fine.
is it common for the iframe to break the template ? bottom of page is an inche of white space, only appears on the page where the wrapped url is