da ich nichts bei vb.org gefunden habe, dachte ich mir ich setz mich selber mal ran.

ist aber für mich als laien eine harte nus.
ich habe mich mal an den quellcode rangemacht und habe versucht es anzupassen. hier mal der code:
PHP-Code:
if ($_POST[agree] == 1){
$DB_site->query("UPDATE user SET tos = '1' WHERE userid = $bbuserinfo[userid]");
}
$query = $DB_site->query("SELECT tos FROM user AS user WHERE userid = $bbuserinfo[userid]");
$row = $DB_site->fetch_array($query);
$agree = $row[tos];
if ($bbuserinfo[userid] or $agree)
{
eval("\dooutput = \"".gettemplate('rules')."\";");
}
diesen code habe ich in meine index.php eingefügt. leider wird mir das template rules nicht angezeigt.
hier ist das template rules
Code:
{htmldoctype}
<html>
<head><title>$bbtitle - rules</title>
$headinclude
</head>
<body>
$header
<br>
<form action="index.php" method="post">
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr id="cat">
<td bgcolor="{tableheadbgcolor}" align="center"><normalfont color="{tableheadtextcolor}" class="thtcolor"><b>$bbtitle Regeln</b></normalfont></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}">
<normalfont>
text
</normalfont>
<tr>
</td>
<td align="center"><smallfont>rules?</smallfont><br>
<input type="checkbox" name="agree" value="1" />test</td>
</tr>
</table>
</td></tr></table>
<p align="center"><normalfont>
<input type="hidden" name="$bbuserinfo[userid]" />
<input type="submit" value="Submit">
</normalfont></p>
</form>
$footer
</body>
</html>
was ist falsch an diesem code?
//edit: eine tabelle tos habe ich angelegt
ALTER TABLE user ADD tos tinyint(1) NOT NULL default '0';