Well, changing the actual forum colours and style is done with styles, but I'm assuming you know that and are trying to fit your forum into your actual page layout (navigation, header, footer, ect.), sort of like I've done with mine.
This is actually very simple and doesn't require any knowledge of PHP at all. Open up your main.tpl and take a look at it:
<div id="punwrap">
<div id="pun<pun_page>" class="pun">
<div id="brdheader" class="block">
<div class="box">
<div id="brdtitle" class="inbox">
<pun_title>
<pun_desc>
</div>
<pun_navlinks>
<pun_status>
</div>
</div>
<pun_announcement>
<pun_main>
<pun_footer>
</div>
</div>
That code is the code that makes your forum itself appear. Anything you place above that code will appear above your forum, and anything you place below that code will appear below your forum. Other than that, it's essentially just a standard (X)HTML document. The only other part of the code that relates to your forum is:
<html dir="<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<pun_head>
Don't mess with the <pun_content_direction> or <pun_head> tags, as they effect how punBB interacts with these parts of the HTML (i.e. one of <pun_head>'s functions is placing the CSS of your style in the right location so that it works).
So, if you wanted to place your website's navigation above your forum, and your own footer below it, your code would look something like:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>" />
<pun_head>
<style type="text/css">
#mynavigationbar {
attribute: whatever;
}
#myfooter {
attribute: whatever;
otherattribute: 100px auto;
}
</style>
</head>
<body>
<div id="mynavigationbar">Here are all the navigation links and what not.</div>
<div id="punwrap">
<div id="pun<pun_page>" class="pun">
<div id="brdheader" class="block">
<div class="box">
<div id="brdtitle" class="inbox">
<pun_title>
<pun_desc>
</div>
<pun_navlinks>
<pun_status>
</div>
</div>
<pun_announcement>
<pun_main>
<pun_footer>
</div>
</div>
<div id="myfooter">Here is my footer and whatever. Yay.</div>
</body>
</html>
Obviously, your navigation/footer don't have to be included in the silly-named divs I used in the example, but you get the idea. It's basically just a standard (X)HTML document.
Keep in mind that the main.tpl only affects the "main" pages of your forum. Your redirect pages, administration/moderation section pages, help pages, and maintenance mode pages are all affected by their own tpl files - but they all work essentially the same way, so you can edit them just like you would normal markup too.
-Master Hob Bramble of Willowbottom
Pardon me, good sir, but it appears that your diving apparatus has a leak.
Perpetual Thursday |
Alternative-Internet.com |
hobbramble.deviantart.com