kann mir einer sagen wie man das anpasst, dass die news im forum in der HP in so ner Box erscheinen? Hier ist mein script
<div id="content"> <div class="postui2 text-title">
<h2>
Willkommen auf Server
</h2>
</div>
<div class="postui2 text-con">
<div class="con-wrap">
<table width="99%" border="0">
<tr>
</tr>
<tr>
<td class="thell">
<center> News
<?PHP
require("news_config.php");
$sqlboard = mysql_connect(BRD_HOST, BRD_USER, BRD_PASS);
function bbcode($code)
{
$code = preg_replace('/\[(.*?)\]/', '', $code);
$code = preg_replace('/\n/', "<br/>\n", $code);
return $code;
}
$selthreads = mysql_query("SELECT * FROM ".BRD_DB.".wbb".BRD_VS."_1_thread WHERE boardID = '".$forum."' ORDER BY time DESC LIMIT ".$count,$sqlboard);
while($thread = mysql_fetch_object($selthreads)) {
$selpost = mysql_query("SELECT * FROM ".BRD_DB.".wbb".BRD_VS."_1_post WHERE threadID = '".$thread->threadID."' ORDER BY time ASC LIMIT 1");
$post = mysql_fetch_object($selpost);
echo '<h2>'.$thread->topic.'</h2>';
if (strlen($post->message)>$letters) {
$message = substr($post->message, 0, $letters);
echo bbcode($message).'...';
}
else {
echo bbcode($post->message);
}
$selcommands = mysql_query("SELECT * FROM ".BRD_DB.".wbb".BRD_VS."_1_post WHERE threadID = '".$thread->threadID."'",$sqlboard);
$commands = mysql_num_rows($selcommands) - 1;
echo '<br><br><i>geschrieben von <a href="'.$url.'index.php?page=User&userID='.$post->userID.'">'.$post->username.'</a> ('.date("d.m.Y - H:i",$post->time).', '.$thread->views.' Views, '.$commands.' Antworten) <a style="float:right" href="'.$url.'index.php?page=Thread&threadID='.$th read->threadID.'">read more</a>';
}
?><br><br>
</center><br><br>
</tr>
<tr>
<tr>
</tr>
<tr>
</table>
</div>
</div>
<div class="postui2 text-end">
</div></div>
<h2>
Willkommen auf Server
</h2>
</div>
<div class="postui2 text-con">
<div class="con-wrap">
<table width="99%" border="0">
<tr>
</tr>
<tr>
<td class="thell">
<center> News
<?PHP
require("news_config.php");
$sqlboard = mysql_connect(BRD_HOST, BRD_USER, BRD_PASS);
function bbcode($code)
{
$code = preg_replace('/\[(.*?)\]/', '', $code);
$code = preg_replace('/\n/', "<br/>\n", $code);
return $code;
}
$selthreads = mysql_query("SELECT * FROM ".BRD_DB.".wbb".BRD_VS."_1_thread WHERE boardID = '".$forum."' ORDER BY time DESC LIMIT ".$count,$sqlboard);
while($thread = mysql_fetch_object($selthreads)) {
$selpost = mysql_query("SELECT * FROM ".BRD_DB.".wbb".BRD_VS."_1_post WHERE threadID = '".$thread->threadID."' ORDER BY time ASC LIMIT 1");
$post = mysql_fetch_object($selpost);
echo '<h2>'.$thread->topic.'</h2>';
if (strlen($post->message)>$letters) {
$message = substr($post->message, 0, $letters);
echo bbcode($message).'...';
}
else {
echo bbcode($post->message);
}
$selcommands = mysql_query("SELECT * FROM ".BRD_DB.".wbb".BRD_VS."_1_post WHERE threadID = '".$thread->threadID."'",$sqlboard);
$commands = mysql_num_rows($selcommands) - 1;
echo '<br><br><i>geschrieben von <a href="'.$url.'index.php?page=User&userID='.$post->userID.'">'.$post->username.'</a> ('.date("d.m.Y - H:i",$post->time).', '.$thread->views.' Views, '.$commands.' Antworten) <a style="float:right" href="'.$url.'index.php?page=Thread&threadID='.$th read->threadID.'">read more</a>';
}
?><br><br>
</center><br><br>
</tr>
<tr>
<tr>
</tr>
<tr>
</table>
</div>
</div>
<div class="postui2 text-end">
</div></div>






