Hallo,
hab nix in der Suche gefunden. Gibt es sowas wie "letzt 5 Kommentare" box irgendwo schon? das wäre interessant.
verwendete ilchClan Version: 1.1
betroffene Homepage: externer Link
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
<?php # Copyright by: Manuel # Support www.ilch.de # Last Comments Box by OloX defined ('main') or die ( 'no direct access' ); $abf = 'SELECT * FROM `prefix_koms` ORDER BY id DESC LIMIT 0,5'; $erg = db_query($abf); echo '<table>'; while ($row = db_fetch_object($erg)) { $text = ((strlen($row->text)<15) ? $row->text : substr($row->text,0,15).'...'); if ($row->cat == 'NEWS') { $pname = 'News'; $plink = '<a class="box" href="index.php?news-'.$row->uid.'">'.$text.'</a>'; } elseif ($row->cat == 'WARSLAST') { $pname = 'Wars'; $plink = '<a class="box" href="index.php?wars-more-'.$row->uid.'">'.$text.'</a>'; } elseif ($row->cat == 'GALLERYIMG') { $pname = 'Gallery'; $plink = '<a class="box" href="index.php?gallery">'.$text.'</a>'; } elseif ($row->cat == 'GBOOK') { $pname = 'Gbook'; $plink = '<a class="box" href="index.php?gbook-show-'.$row->uid.'">'.$text.'</a>'; } echo '<tr><td valign="top"><b> » </b></td><td>'.$plink.'<br />von <b>'.$row->name.'</b> in <i>'.$pname.'</i></td></tr>'; } echo '</table>'; ?>
<?php # Copyright by: Manuel # Support www.ilch.de # Last Comments Box by OloX defined ('main') or die ( 'no direct access' ); $abf = 'SELECT * FROM `prefix_koms` ORDER BY id DESC LIMIT 0,5'; $erg = db_query($abf); echo '<table>'; while ($row = db_fetch_object($erg)) { $text = ((strlen($row->text)<15) ? $row->text : substr($row->text,0,15).'...'); if ($row->cat == 'NEWS') { $pname = 'News'; $plink = '<a class="box" href="index.php?news-'.$row->uid.'">'.$text.'</a>'; } elseif ($row->cat == 'WARSLAST') { $pname = 'Wars'; $plink = '<a class="box" href="index.php?wars-more-'.$row->uid.'">'.$text.'</a>'; } elseif ($row->cat == 'GALLERYIMG') { $pname = 'Gallery'; $plink = '<a class="box" href="index.php?gallery-show-'.$row->cat.'-p'.$row->uid.'" target="_blank">'.$text.'</a>'; } elseif ($row->cat == 'GBOOK') { $pname = 'Gbook'; $plink = '<a class="box" href="index.php?gbook-show-'.$row->uid.'">'.$text.'</a>'; } echo '<tr><td valign="top"><b> » </b></td><td>'.$plink.'<br />by <b>'.$row->name.'</b> in <i>'.$pname.'</i></td></tr>'; } echo '</table>'; ?>
<?php # Copyright by: Manuel # Support www.ilch.de # Last Comments Box by OloX defined ('main') or die ( 'no direct access' ); $abf = 'SELECT * FROM `prefix_koms` ORDER BY id DESC LIMIT 0,5'; $erg = db_query($abf); echo '<table>'; while ($row = db_fetch_object($erg)) { $text = ((strlen($row->text)<40) ? $row->text : substr($row->text,0,40).'...'); if ($row->cat == 'NEWS') { $pname = 'News'; $plink = '<a class="box" href="index.php?news-'.$row->uid.'">'.$text.'</a>'; } elseif ($row->cat == 'WARSLAST') { $pname = 'Wars'; $plink = '<a class="box" href="index.php?wars-more-'.$row->uid.'">'.$text.'</a>'; } elseif ($row->cat == 'GALLERYIMG') { $pname = 'Gallery'; $plink = '<a class="box" href="index.php?gallery">'.$text.'</a>'; } elseif ($row->cat == 'GBOOK') { $pname = 'Gbook'; $plink = '<a class="box" href="index.php?gbook-show-'.$row->uid.'">'.$text.'</a>'; } elseif ($row->cat == 'ARTICLES') { $pname = 'Artikel'; $plink = '<a class="box" href="index.php?articles-show-A'.$row->uid.'">'.$text.'</a>'; } echo '<tr><td valign="top"><b> » </b></td><td>'.$plink.'<br />von <b>'.$row->name.'</b> in <i>'.$pname.'</i></td></tr>'; } echo '</table>'; ?>
Geschlossen | ||
Zurück zu Module und Modifikationen |