Re: Display bbpress on wordpress page (inside the blog)
@chrishajer, thanks for the code, this one didn’t work for me, but the one on the page top. You can visit my forum http://deadrising2.de/?page_id=84
If someone wants to know how i made it, I just removed stuff from the bbpress head.php so it looks like this:
<body>
<div id=”main”>
<?php if ( is_bb_profile() ) profile_menu(); ?>
and also the first </div> from the footer.php, I also removed the hot tags stuff from frontpage.php. Now I installed embed-iframe plugin for wordpress and modified the iframe.php like this:
<div class="iframe-wrapper">
<iframe src="<?php echo $url ?>" frameborder="0" id="youridnamehere" width=100%>Please upgrade your browser</iframe>
</div>
<script type="text/javascript">
function resizeIframe() {
var height = document.documentElement.clientHeight;
height -= document.getElementById('youridnamehere').offsetTop;
<code></code>// not sure how to get this dynamically
height -= 150; /* whatever you set your body bottom margin/padding to be */
document.getElementById('youridnamehere').style.height = height +"px";
};
document.getElementById('youridnamehere').onload = resizeIframe;
window.onresize = resizeIframe;
</script>
Now I just modified the width of the bbpress style.css for head, main and footer, and also the cols/width of the textarea. I still have a scrollbar if there are more posts on one page, but I can live with.
Thanks for your help!`