Topic: Where is the <pun_main> str_replace?

Hello

I'm modding my punBB forum quite a bit. But i can't find in witch file <pun_main> in main.tpl is replaced. I've check the files that thought made it, but i couldn't find it.
So where is the str_replace for  <pun_main>?

thanks

Re: Where is the <pun_main> str_replace?

What are you actually trying to do?

Re: Where is the <pun_main> str_replace?

it starts around the last line of header.php with the ob_start() and ends on the first few lines (where it actually replaces the output buffer)) of footer.php.

4 (edited by Pekz0r 2006-07-06 18:24)

Re: Where is the <pun_main> str_replace?

okey

I'm going to make a pageswitcher.

I'm going to use a a new template file called page.tpl. This file will contain this:

<div id="idx1" class="blocktable">
    <h2><span>
        <headline>
    </span></h2>
    <div class="box">
        <div class="inbox">
            <table cellspacing="0">
            <thead>
                <tr>
                    <th class="tcl" scope="col">
                        <legend>
                    </th>
                </tr>
            </thead>
            <tbody>
                 <tr>
                    <td class="tcl">                        
                        <content>                    
                    </td>
                </tr>
            </tbody>
            </table>
        </div>
    </div>
</div>

And then i will make a file called page.php that replaces <headline>, <legend> and <content>

I'm going to remove most of the things in idex.php and place that in a new file called forum.php for example

How do i do this?

Re: Where is the <pun_main> str_replace?

page switcher?

I think thats called a hyperlink, but maybe I'm missing something.

6 (edited by Pekz0r 2006-07-06 19:43)

Re: Where is the <pun_main> str_replace?

I dunno waht it's called. but iwhat i mean is this: if you go to the adress index?page=contact for example you come to the contact page. But the forums header and footer are still there, it's just the main content part that's changing

Re: Where is the <pun_main> str_replace?

Use Custom Pages mod, create a page and then add it to the menu bar. The footer and header is always included(?).