1

(6 replies, posted in PunBB 1.2 troubleshooting)

im including /diskusjon/extern.php (where diskusjon is the forum folder)


i dont think you can use include with extern pages (using http://...."

anyone have a script that prints out links the 5 last posts in the forum?

I searched around and found that i could use extern.php and active, but the page im printing these in are not in the same folder as the forum so i get some errors when including extern.php...

Is there any quick php code that just gets the latest 5 titles with author+link?

3

(2 replies, posted in Feature requests)

Hi,

I'm running PunBB on my bleach-based fansite and there are often discussions that involve spoilers. It would be nice to have a BBCode for this to hide the text and maybe reveal it with a button or something if the user wants to view the spoilers.

Do you get what im saying?

pogenwurst: thanks alot, got it all done now smile

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?

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