Qbasicnews.com

Full Version: Quesssssschin.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Anybody know how to embed a forum in a table of a site? For example, on QBColony, the menus and stuff stay the same, but I want the PHPBB forum to appear in the little space where all the content appears. Thanks.
Try using an IFRAME.
The "prototype" (heheheh) for iframe:
Code:
<iframe src="/forum/index.php" width="50%" height="10%">
Nah, no iframe. I want the whole thing embedded into the table cell...
Nope. Not to my knowledge anyways.
I don't know about phpBB specifically, but you can do something like this:

Code:
<html>
<head><title>Test</title></head>
<body>
<table width="100%" height="100%">
<tr><td width="20%" valign="top">Blah blah blah</td><td>
<?php
require("forum.php");
?>
</td></tr></table>
</body>
</html>
(If "forum.php" is supposed to be it's own page, you'll get double html, head, and body tags. IE seems to handle this ok, but it's probably not good practice. Better to modify your forum script so it doesn't output these.)
Just out of curiosity....Why would you want to do it anyway?
I tried that too sometime ago, but you have to change the all the links in phpBB if you use table cell. An iframe would work I guess.
But it would mean too much modifications i guess =P.
Yeah, you're right. The links would be screwed. :normal:
Pages: 1 2