Page 1 of 1
PUNBB Forum Integration Help
Posted: Tue 20. Dec 2005, 05:57
by LPWV
Can anyone help me out with how to integrate the PUNBB Forum into phpwcms...
I think it is suppose to work, but everyway I try I get errors...
Thanks....
Details available upon request, I don;t really know what you need ( I am a newbie)
Thanks Again!
Posted: Tue 20. Dec 2005, 06:35
by Ben
Michael,
Here's exactly what you're looking for:
http://phpwcms.de/forum/viewtopic.php?t=9003
PunBB was integrated here -
http://www.pourunquebecsolidaire.org/index.php?forum
They integrated the forum using a dynamically-sized iframe. If you view source, you'll notice the following code in the head:
Code: Select all
<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>
Then, they just inserted the following iframe code to plunk it in the page:
Code: Select all
<iframe src="include/inc_ext/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 following link. <a href="http://www.pourunquebecsolidaire.org/include/inc_ext/punbb/index.php.com/albums/" target="_blank">Photoalbum</A></iframe>
Let me know how this works out for you.
Brilliant
Posted: Tue 20. Dec 2005, 07:15
by LPWV
Worked like a charm and in under 2 minutes...
Does anyone know if there are any browsers that hate this...Or just will not cooperate with the I-Frame code
Posted: Tue 20. Dec 2005, 07:18
by Ben
I don't know of any situations where it won't work well, but the code in between the opening and closing iframe tags is a nice safeguard:
Code: Select all
If you see this text your browser didn't support iframes. so see the page click on at the following link. <a href="http://www.pourunquebecsolidaire.org/include/inc_ext/punbb/index.php.com/albums/" target="_blank">Photoalbum</A>
Recent Posts
Posted: Wed 21. Dec 2005, 07:02
by LPWV
Does anyone know how I can call the Recent Posts using extern.php in the Navigation column of my site...Under the Menu
Thanks....
RESOLVED
Posted: Wed 21. Dec 2005, 07:13
by LPWV
I resolved this on my own...Was not using the Replacement Tag format!
Posted: Wed 21. Dec 2005, 18:29
by Ben
Can you tell us how you resolved the issue? Thanks.
The Answer and ANOTHER QUESTION
Posted: Wed 21. Dec 2005, 19:38
by LPWV
In my main site template, I placed the following code in the Left: Section:
Code: Select all
<hr><table padding="3"><tr><td>
<b>ACTIVE FORUM TOPICS</b><br /><br />
[PHP]include('http://www.lpwv.org/forums/extern.php?action=new&show=10&fid=5,6,7');[/PHP]</tr></td></table><hr>
Then in the extern.php file I changed the following line:
Code: Select all
// The length at which topic subjects will be truncated (for HTML output)
$max_subject_length = 30;
I just modified the end number until the text did not wrap...
You can see how it looks here...
www.lpwv.org
Besides that, there was nothing else...
I am a newbie, but it seems you can call any <?includes> just by placing the [PHP] REPLACEMENT TAGS around it...
Hope this helps someone else....
MIKE
QUESTION:
When you click the links in the Recent Posts...It is opening a new window...Does anyone know how to get that to call to the page where it is integrated into the phpwcms? I.E.
http://www.lpwv.org/index.php?id=18,0,0,1,0,0