Info
- 35 posts
- 14 voices
- Started 3 years ago by tannar
- Latest reply from rbecket
- This topic is not resolved
Display bbpress on wordpress page (inside the blog)
-
- Posted 3 years ago #
@tannar, I will only share this with you if you post a link to your forum. I would like to see this working because many people have asked about it, and I've never seen it working.
From here: http://brondsema.net/blog/index.php/2007/06/06/100_height_iframe#c4631
Add this to the bottom of the page you are including in the iframe.<script type="text/javascript"> parent.window.document.getElementById("youridnamehere").height = document.body.offsetHeight +50; </script>You need to change youridnamehere to the id of the iframe in your wordpress page. So, if you did something like
<iframe src="whatever.php" id="bbpressforum" ... />you would change youridnamehere to bbpressforum because that's the id of the iframe.Also, the +50 at the end just adds some space to the bottom (it's probably in pixels I imagine.) You can try different numbers to be sure the forum fits in the frame. I can't recall exactly what number I started out with there, but +50 worked for my application (not bbPress, BTW.)
Good luck.
-
- Posted 3 years ago #
@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!` -
- Posted 1 year ago #
Hello all!
I've been thinking about SimplePress integration with your WordPress installation. It worked fine with me a few months ago.Give it a shot.May be it needs some customization on its template.Just an opinion.
After all, bbPress and buddyPress are all WordPress family product.
Regards.
-
- Posted 1 year ago #
mindacatur, did you seriously need to bump a year-old topic just to say you were going to use software unrelated to this forum?
-
- Posted 1 year ago #
-
You must log in to post.