1

Topic: After <body> and before </body>

Hi,

I'm trying to "integrate" punBB into my website layout (and i decided to build the layout around it) but I cant find the following:

1. Where can i put my code so that it comes directly after <body>?
2. Where can i put my code so that it comes directly before </body>?

I checked the footer.php and header.php but my php aint the best and i got confused too fast tongue

Hope u understand, thanks for help

Re: After <body> and before </body>

If it's plain HTML, just insert it into main.tpl wink

Re: After <body> and before </body>

best thing to do is do the main.tpl

im completely integrating punbb into my css template.
moding files to make it look the way i want to integrate things ..
http://bunpai.com

here some old code from my site.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html dir="<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>" />
<pun_head>

<!-- Wordpress Template CSS -->
<link rel="stylesheet" type="text/css" href="grass_stains.css" media="screen" />

<style type="text/css">
#brdtitle { display: none; }
#brdmenu  { padding-top: 0; }
#punwrap {
    width: 680px;
    text-align: left;
    margin-top: 6px;
    margin-right: 0px;
    margin-bottom: 6px;
    margin-left: 0px;
    padding-right: 2px;
}
DIV.box {BORDER-COLOR: #CFD9BE; }
.pun H2, #brdmenu {BACKGROUND-COLOR: #fff; COLOR: #E39243; }
DIV.blockpost H2 {BACKGROUND-COLOR: #fff; }
#punwrap * { font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif; }
DIV.blockpost DIV.box {BORDER-COLOR: #CFD9BE; }
.pun { font-size: 11px !important; }
/*.box {
    width: 500px;
    margin-top: 12px;
    margin-right: -5px;
    margin-bottom: 12px;
    margin-left: 10px;
    border: solid 1px #999;
    color: #000;
    
}    
.inbox {
    width: 530px;
    margin-top: auto;
    margin-right: auto;
    margin-bottom: auto;
    margin-left: auto;
    border: solid 1px #999;
    color: #000;
*/    
}
</style>
<!-- Wordpress Template CSS -->

<!-- Mint 
<script src='/mint/mint.js.php' type='text/javascript' language='javascript'></script> 
 Mint -->

</head>
<body>

<!-- Wordpress Template Header -->
<div class="wrap clearfix">
    
  <div class="header"><strong>Bunpai:</strong> Punbb CMS</div>

<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr><td align="center">
<!-- Navigational Menu -->
<div class="topnav" id="nav">
  <ul>
  <li><a href="index.php">home</a></li>
    <li><a href="#">about</a></li>
    <li><a href="forum.php">forum</a></li>
    <li><a href="calendar.php">calendar</a></li>
    <li><a href="gallery.php">gallery</a></li>
    <li><a href="#">contact</a></li>
    <li><a href="classified.php">classified</a></li>
    <li><a href="chatbox.php">chatbox</a></li>
  </ul>
  </div>

    <!-- Wordpress Template Header -->
    <div id="punwrap">
<div id="pun<pun_page>" class="pun">

<div id="brdheader" class="block">
    <div class="box">
        <div id="brdtitle" class="clearer">
            <pun_title>
            <pun_desc>
        </div>
        <pun_navlinks>
        <pun_status>
    </div>
</div>

<pun_announcement>

<pun_main>

<pun_footer>
</div></div>
<!-- Wordpress Template Footer -->
<div class="footer" id="footer">
    <a href="index.php">home</a>  :  
    <a href="#">about</a>  :  
    <a href="forum.php">forum</a>  :  
    <a href="calendar.php">calendar</a>  :  
    <a href="gallery.php">gallery</a>  :  
    <a href="#">contact</a>  :  
    <a href="classified.php">classified</a>  :  
    <a href="chatbox.php">chatbox</a>
    </div>
</td></tr></table>
</div>
</body>
</html>
My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

4 (edited by Tomas 2006-09-03 21:11)

Re: After <body> and before </body>

Ohh, i didnt notice there were TPL files tongue stupid me big_smile

Uhm well, its not all plain html.. theres some php there too :\

<?php
        $kat_query = mysql_query("SELECT id,tittel FROM kategorier ORDER BY id ASC");
        $count = 1;
        while ($kat_row = mysql_fetch_array($kat_query)) {
            echo '<div class="meny"><div class="top">'. $kat_row['tittel'] .'</div><ul>
';
                
                   if($kat_row['id'] == 1 AND $count == 1) {
                   $count = 0;
                   print '<li><a href="index.php?">Forsiden</a></li><li><a href="/forum/">Forum</a></li>';
               }

                $side_query = mysql_query("SELECT id,tittel FROM undersider WHERE kategori='". $kat_row['id'] ."' ORDER BY id ASC");
                while ($side_row = mysql_fetch_array($side_query)) {
                    echo '<li><a href="index.php?go=vis_side&id='. $side_row['id'] .'">'. $side_row['tittel'] .'</a></li>';
                    }
                    echo "</ul></div>\n";
            }
?>

Wont work with tpl with this code, amirite? or will it?

Re: After <body> and before </body>

tomas that why i started moding punbb more and moving my css template and punbb intergrated more just beside the main.tpl look mod.
http://bunpai.com
is what im working on now.
i got the signup online stats and reg forum all in the html.

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: After <body> and before </body>

Tomas: for that PHP code, you can use pun_include as described at the following URL: http://punbb.org/docs/faq.html#faq3_4

Looking for a certain modification for your forum? Please take a look here before posting.

7

Re: After <body> and before </body>

pogenwurst: thanks alot, got it all done now smile

Re: After <body> and before </body>

Sorry to bring an old thread up again but where do I find the info on the css style sheet?

Thanks.

Re: After <body> and before </body>

All CSS-styles are placed in the forum directory "style".
In 1.2 there are usually two CSS-files for each theme: style_name.css and imports/style_name_cs.css.
First one is used to describe the way the page elements layout, and the second one describes the colors that will be used for the theme.

Regarding 1.3: all the styles for will be updated in the nearest few days. And in a week or two we are planning to publish the documentation.
Please, write here, what exactly do you want to learn about forum styles. We will answer here and this may be the base for documentation.

Re: After <body> and before </body>

Hi, well were do I start, atm I'm trying to put the wordpress theme around the punbb forum, but would like to develop my own at a later date, need to understand a little more before hand smile smile smile smile