1 (edited by ls1dreams 2007-07-18 15:14)

Topic: pun_include not doing anything

Hi all,

I'm getting started here and loving punBB.

However, I'm having trouble getting <pun_include> working in my main template.

My paths is as follows:

root
  - forum
       - include
            - template

I need to include 3 files to make this work properly:

header.php
status.php
footer.php

All of these are located in the 'root' location (really public_html on the shared host)
(and maybe my _db.php file, but I could probably just use punBB's call to the same database)

Here's the main.tpl file:

<!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>

<META NAME="robots" CONTENT="index,follow">
<LINK REL=StyleSheet HREF="http://www.ratemycover.com/styles.css" TYPE="text/css">
</head>
<body>

<div id="bigpage">
<div id="container">
<div id="spacer">

<div id="header">
<pun_include "/header.php">
</div>

<div class="clr"></div>

<div id="status">
<pun_include "/status.php">
</div>

<div class="clr"></div>

<div id="wrap"> <!-- just used for the background -->
<p>Test text within wrap here</p>

<!-- ............. begin punbb code ......... -->
<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>

<!-- .................. end punbb code ..................... -->
<p>Test text within wrap here</p>
</div> <!-- end wrap -->

<div class="clr"></div>
<div id="footer">
<pun_include "/footer.php">
</div>

</div> <!-- end spacer -->
</div> <!-- end container -->
</div> <!-- end bigpage -->

</body>
</html>

I've tried various relative paths ( ../ , / , etc, but can't seem to get it to work.

Please help!

The live site can be seen here:  http://www.ratemycover.com/forum

(also if anyone knows how to keep the table from overflowing, that would be appreciated as well)

Re: pun_include not doing anything

`pun_include` looks for files in /include/user/.

http://punbb.org/docs/faq.html#faq3_4