Hallo
ich habe das externer Link als 2. Forum auf meiner HP. Funzt auch 1A nun aber meine Frage gibt es ne möglichkeit für das 2. Forum ein Last Forum zu machen ?
Danke für Hilfe im Vorraus
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
<?php # Copyright by Manuel Staechele # 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_topics2 a LEFT JOIN prefix_forums2 b ON b.id = a.fid LEFT JOIN prefix_posts2 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,3"; echo '<table>'; $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><td valign="top"><b> » </b></td><td><a href="?forum2-showposts2-'.$row['id'].'-p'.$row['page'].'#'.$row['pid'].'" title="'.$row['date'].'">'.((strlen($row['name'])<18) ? $row['name'] : substr($row['name'],0,15).'...').'<br /><span class="smalfont"> von '.$row['last'].'</span></a></td></tr>'; } echo '</table>'; ?>
Geschlossen | ||
![]() |
Zurück zu Allgemein |