PDA

View Full Version : PHPbb forum into HTML


ICE BLUE
11-13-2002, 10:13 PM
Well if anyone here is familiar with PHPbb forum u know when u create a link to the index.php in the /forum DIR the forum pops up in a new window. My web page is highly dependint on a style sheet it controlls absolutly evrything in my page. the layout looks like this.

http://204.49.69.31/image2.jpg

u can see there is a title colum a middle and a bottum all 3D acheved therew the style sheets "default.css" all context is displayd in the middle gray area. well opening the forum in a new window does not acheve the theme I would like, it takes you away from the page. What I am asking is how can I embed the <?PHP forum context ?> into the html document "my web page" as u can see in the image/screen shot to make the forum consist inside the midle/gray box? like a <ambed src="file.swf"> for a flash movie but for the forum. I tryd copy pasting the contect on index.php into the section of HTML for the gray box.<div> but what happens is the PHP code just gets displayd in the web page. seen here ~~> http://204.49.69.31/image3.jpg and yes i put the index.html in the root dir of /forum Thank you evryone that replys to this theread! if the images dont work since I am on dile up and cant guarenty a conection even thow my ip is static AIM me at ICE BLUE 2600 or FROZN ICE BLUE thx again
if you would like to try and pull the page up urself http://204.49.69.31/sub.html
http://204.49.69.31/forum/index.php
http://204.49.69.31/forum/index.html

Spookster
11-13-2002, 10:40 PM
I closed your poll as it was not appropriate in the PHP forum. Also please just link to screenshot images verses displaying images in posts in consideration for slow modem users.

As for your question the reason the php shows up is that the PHP engine does not know to parse .html files unless told to do so. You should change your extension from .html to .php. Otherwise use .htaccess to tell the server to treat .html files as .php.

ICE BLUE
11-13-2002, 10:49 PM
Thx that worked but I am geting some warning messages now if u dont minde taking a look http://204.49.69.31/forum/index.php

I am a modem usr as well the images were 13k and i did allso link them.

Nightfire
11-13-2002, 10:57 PM
That's coz the headers of the forums are meant to be the first thing on the page, now that you've included the forums into html, the headers aren't at the top.

ICE BLUE
11-14-2002, 12:01 AM
So does this mena im outa luck for what I want to acheve?
:(

Nightfire
11-14-2002, 12:11 AM
Only way to do it is if you edit the forums template. Never done this with phpBB, but most of the top forums allow you to do this.

SYP}{ER
11-14-2002, 12:17 AM
Or wrap your forum's page with this:

<? ob_start(); ?>
<html>
...
</html>
<?
$pContentsStr = ob_get_contents();
ob_end_clean();
echo $pContentsStr;
?>

That'll get rid of the header warning as all output will be buffered. Very useful :)

ICE BLUE
11-14-2002, 12:30 AM
WOW thx alot guys for sharing all ur knowledge it worked perfect it has a slight flaw but i can fix it in the CSS sheet I cant thank u all enuff
http://204.49.69.31/forum
all ur advice implamented
special thx to
SYP}{ER
Spookster
Nightfire