Det må du lige forklare lidt nærmere, jeg er lidt fat-svag hvad kode angår.
Men her er noget kode:
Min side hvor jeg "includer" mit forum -
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<!-- TemplateBeginEditable name="doctitle" -->
<title>Hammerum Gjellerup Cykelklub</title>
<!-- TemplateEndEditable -->
<meta name="robots" content="none">
<meta name="Author" content="Søren Juhl Hansen">
<link rev="made" href="mailto:webmaster@hgc.dk">
<meta http-equiv="Reply-to" content="webmaster@hgc.dk">
<meta name="Copyright" content="Søren Juhl Hansen">
<meta http-equiv="Content-language" content="dan">
<meta http-equiv="Content-type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<link href="/test/Styles/standard.css" rel="stylesheet" type="text/css">
<style type="text/css" media="print"></style>
<style type="text/css" media="screen"></style>
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
</head>
<body>
<div id="banner">
<h1> </h1>
</div>
<div id="leftcol">
<div class="leftbox">
<h4><img src="/test/graphics/markerw.gif" alt="" align="bottom">Menu</h4>
<p>
<?
include ("menu.php");
?>
</p>
</div>
<div class="leftbox">
<h4><img src="/test/graphics/markerw.gif" alt="" align="bottom">Nyheder</h4>
<p>
<?
include ("nyheder.php");
?>
</p>
</div>
</div>
<div id="indhold">
<h2><img src="/test/graphics/markerr.gif" alt=""><!-- TemplateBeginEditable name="navigationssti" -->HGC
Cykel-Forum<!-- TemplateEndEditable --></h2>
<!-- TemplateBeginEditable name="brødtekst" -->
<p>
<?
include ("forum/main.php");
?>
</p>
<!-- TemplateEndEditable --></div>
<div id="rightcol">
<div class="rightbox">
<h4><img src="/test/graphics/markerw.gif" alt="" align="bottom">Sponsorene</h4>
<p> <br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<!--<IFRAME> scroller- By Dynamic Drive-->
<!--For full source code and more DHTML scripts, visit
http://www.dynamicdrive.com--> <!--This credit MUST stay intact for use-->
<iframe class="rulle" id="datamain" src="external.htm" width=125 height=160 marginwidth=5
marginheight=0 frameborder=0 scrolling=no></iframe>
</p>
</div>
<div class="rightbox">
<h4><img src="/test/graphics/markerw.gif" alt="" align="bottom">Cykel forum</h4>
<p>Prøv vores nye "forum", afløseren for den tidligere
gæstebog.</p>
<p><a href="/test/forum.php" target="_parent">Start</a></p>
</div>
</div>
<div id="footer">
<div align="center">
<address>
Hammerum Gjellerup Cykelklub<br>
<a href="mailto:postmaster@hgc.dk">hgc@hgc.dk</a>
</address>
<font color="#666666" size="1" face="Verdana, Arial, Helvetica, sans-serif">copyright
© 2004 søren juhl hansen</font> </div>
</div>
</body>
</html>
Forum kode
<?php
include "config.php";
include "incl/head.inc";
if(count($forum_name)<2||count($forum_data)<2||count($forum_desc)<2){redirect('main.php');}
?><title><?php print $lang[2];?></title>
</head><body><?php include "incl/cust-top.inc";?>
<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td class="q">
<table width="100%" border="0" cellspacing="1" cellpadding="5">
<tr class="c"><td colspan="5"><table width="100%" cellpadding="2" cellspacing="0"><tr><td nowrap="nowrap"><span class="c"><a href="#" id="lnk" style="color:#ffffff;text-decoration:none" onmouseover="start_impress();return true" onmouseout="stop_impress();return true" onclick="window.location='index.php';return false"><?php print $lang[2];?></a></span></td><td align="right" nowrap="nowrap"> </td></tr></table></td></tr>
<tr class="z"><td class="f" width="65%" nowrap="nowrap"> </td><td class="f" width="20%" nowrap="nowrap"> <?php print $lang[24];?> </td><td class="f" width="5%" nowrap="nowrap"> <?php print $lang[21];?> </td><td class="f" width="5%" nowrap="nowrap"> <?php print $lang[25];?> </td><td class="f" width="5%" nowrap="nowrap"> <?php print $lang[26];?> </td></tr>
<?php
$total_views=0;$total_posts=0;$total_topics=0;
for($i=0;$i<count($forum_data);$i++){
$pic_number=mt_rand(1,7);
$log="$forum_data[$i]/gshow";
if(is_dir($forum_data[$i])){
$views=0;$posts=0;$topics=0;$last=' ';
if(is_file($log)){
$fs=open_file($log);
$fs=explode("\n",$fs);
for($j=0;$j<count($fs);$j++){
if(isset($fs[$j])&&strlen($fs[$j])>9){
$topics+=1;
$row=explode(":|:",$fs[$j]);
if($j==0){$last=$row[1];}
settype($row[5],"integer");
settype($row[6],"integer");
$posts+=$row[5];$views+=$row[6];
}}}
$total_views=$total_views+$views;
$total_posts=$total_posts+$posts;
$total_topics=$total_topics+$topics;
if(!strstr($last,' ')){$show_last=time_offset($last);}else{$show_last=$last;}
print "<tr class=\"$row_bg\">";
$forum_desc[$i]="<div class=\"s\">$forum_desc[$i]</div>";
print "<td><a href=\"main.php?f=$i\"><img src=\"pics/t$pic_number.gif\" $size_img[2] alt=\"\" border=\"0\" align=\"left\" vspace=\"0\" /><b>$forum_name[$i]</b></a>$forum_desc[$i]</td>";
print "<td class=\"s\" nowrap=\"nowrap\">$show_last</td><td class=\"s\">$topics</td><td class=\"s\">$posts</td><td class=\"s\">$views</td>";
print "</tr>";switch_row_bg();
}}
if(isset($memname)&&isset($mempass)){
$login_logout=$lang[68];$is_member='a';}
else{$login_logout=$lang[67];$is_member='b';}
print "<tr class=\"$row_bg\"><td class=\"f\"> <a href=\"#\" style=\"text-decoration:none\" onclick=\"yy=window.open('offset.php?f=$f','offs','width=220,height=400,resizable=1');yy.focus();return false\" title=\"$lang[72]\">$show_time</a></td>";
print "<td align=\"center\" nowrap=\"nowrap\"><a href=\"#\" onclick=\"zz=window.open('join.php','join','width=310,height=300,resizable=1');zz.focus();return false\" title=\"$lang[60]\"><img src=\"pics/log.gif\" width=\"24\" border=\"0\" height=\"14\" hspace=\"3\" alt=\"$lang[60]\" /></a> <a href=\"#\" onclick=\"zz=window.open('log.php?f=$f','log','width=310,height=300,resizable=1');zz.focus();return false\" title=\"$login_logout\"><img src=\"pics/ot$is_member.gif\" border=\"0\" width=\"22\" height=\"13\" hspace=\"3\" alt=\"$login_logout\" /></a></td>";
print "<td class=\"s\">$total_topics</td><td class=\"s\">$total_posts</td><td class=\"s\">$total_views</td></tr>";
?></table></td></tr></table>
<?php include "incl/clrs.inc";?><br clear="all" />
<?php include "incl/cust-bot.inc";?>
</body></html>