erstmal danke .... aber... wüsste nicht wo ich das in der datei änder (hab zwar ne vermutung aber das ging schon mal schief).
Lastforum.php
<?php
# Copyright by Manuel
# Support www.ilch.de
defined ('main') or die ( 'no direct access' );
$query = "SELECT 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
WHERE (b.view >= ".$_SESSION['authright']." OR b.reply >= ".$_SESSION['authright']." OR b.start >= ".$_SESSION['authright'].")
ORDER BY c.time DESC
LIMIT 0,15";
echo '<table>';
$resultID = db_query($query);
$strip = "20"; //Wieviele Zeichen angezeigt werden sollen vor dem abbrechen....
$middot = "<strong>»</strong> ";
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><td valign="top">'.$middot.'</td><td><a href="?forum-showposts-'.$row['id'].'-p'.$row['page'].'#'.$row['pid'].'" title="'.$row['date'].'">'.((strlen($row['name'])<18) ? $row['name'] : substr($row['name'],0,$strip).'...').'</a></td></tr>';
}
echo '</table>';
Zuletzt modifiziert von salitosice am 20.06.2007 - 19:01:39