PUNBB Forum Integration Help

If you've problems with unsupported - non official ;-) - functionalities use this forum please.
Post Reply
LPWV
Posts: 34
Joined: Mon 19. Dec 2005, 04:31

PUNBB Forum Integration Help

Post 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!
Michael S. Wilson
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post 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.
LPWV
Posts: 34
Joined: Mon 19. Dec 2005, 04:31

Brilliant

Post 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
Michael S. Wilson
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post 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>
LPWV
Posts: 34
Joined: Mon 19. Dec 2005, 04:31

Recent Posts

Post 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....
Michael S. Wilson
LPWV
Posts: 34
Joined: Mon 19. Dec 2005, 04:31

RESOLVED

Post by LPWV »

I resolved this on my own...Was not using the Replacement Tag format!
Michael S. Wilson
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post by Ben »

Can you tell us how you resolved the issue? Thanks.
LPWV
Posts: 34
Joined: Mon 19. Dec 2005, 04:31

The Answer and ANOTHER QUESTION

Post 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
Michael S. Wilson
Post Reply