ich habe eine erweiterte LastForum Box erstellt. Soll eben so aussehen, wie bei einem WBB Portal. Zu sehen auf www.mysek.de unter den News.
Mein Problem ist die Anzeige neuer Themen mit dem entsprechenden ICON davor.
Ich fand in der show_forum.php diese Abfrage:
$r['ORD'] = forum_get_ordner($r['time'],$r['id']);
Die habe ich übernommen, und es wird mir auch das ein Icon angezeigt. Leider aber NICHT das ICON wenn es einen neuen Beitrag zu diesem Thema gibt.
Der code der Box sieht so aus:
<?php
# Copyright by Manuel
# Support www.ilch.de
defined ('main') or die ( 'no direct access' );
$query = "SELECT a.fid, a.erst, a.hit, a.id, a.name, a.rep, c.erst as last, c.id as pid, c.time
FROM prefix_topics a
LEFT JOIN prefix_forums b ON b.id = a.fid
LEFT JOIN prefix_posts c ON c.id = a.last_post_id
LEFT JOIN prefix_groupusers vg ON vg.uid = ".$_SESSION['authid']." AND vg.gid = b.view
LEFT JOIN prefix_groupusers rg ON rg.uid = ".$_SESSION['authid']." AND rg.gid = b.reply
LEFT JOIN prefix_groupusers sg ON sg.uid = ".$_SESSION['authid']." AND sg.gid = b.start
WHERE ((".$_SESSION['authright']." <= b.view AND b.view < 1)
OR (".$_SESSION['authright']." <= b.reply AND b.reply < 1)
OR (".$_SESSION['authright']." <= b.start AND b.start < 1)
OR vg.fid IS NOT NULL
OR rg.fid IS NOT NULL
OR sg.fid IS NOT NULL
OR -9 >= ".$_SESSION['authright'].")
ORDER BY c.time DESC
LIMIT 0,10";
$row['date'] = date ('d.m.Y - H:i:s', $row['time'] );
$r['ORD'] = forum_get_ordner($r['time'],$r['id']);
echo '<table width="100%" bgcolor="#000000" cellpadding="2" cellspacing="1">';
echo '<tr align="center" bgcolor="#272727"><td colspan="2"><span class="smalfont">Thema</span></td><td><span class="smalfont">Antworten</span></td><td><span class="smalfont">Autor</span></td><td><span class="smalfont">Hits</span></td><td><span class="smalfont">Letzter Beitrag</span></td></tr>';
$resultID = db_query($query);
while ($row = db_fetch_assoc($resultID)) {
$row['date'] = date('d.m.y - H:i',$row['time']);
$row['page'] = ceil ( ($row['rep']+1) / $allgAr['Fpanz'] );
echo '<tr align="center" valign="middle"><td bgcolor="#282d30"><span class="smalfont"><img alt="" src="include/images/forum/'.$r[ORD].'.png" border="0"></span></td><td bgcolor="#282d30"><a href="?forum-showposts-'.$row['id'].'-p'.$row['page'].'#'.$row['pid'].'" title="'.$row['date'].'">'.((strlen($row['name'])<18) ? $row['name'] : substr($row['name'],0,40).'...').'</a><br></td><td valign="top" bgcolor="#282d30">'.$row['rep'].'</td><td valign="top" bgcolor="#282d30">'.$row['erst'].'</td><td valign="top" bgcolor="#282d30">'.$row['hit'].'</td><td valign="top" bgcolor="#282d30"><span class="smalfont">'.$row['date'].'</span><br> '.$row['last'].'</td></tr>';
}
echo '</table>';
?>
Ich hoffe es kann mir jemand helfen.
betroffene Homepage: mysek.de




