doch leider wird darin der bbcode nicht umgesetzt wie kann ich das noch einbinden?
danke
gruß
Peter
<?php # Copyright by Manuel Staechele # Support www.ilch.de # Modded by Mairu für News Extended defined ('main') or die ( 'no direct access' ); $news_groups = 0; foreach ($_SESSION['authgrp'] as $id => $bool){ $news_groups = $news_groups | pow(2, $id); } $tn_id = intval(@db_result($news_opts = db_query("SELECT v1, v2 FROM prefix_allg WHERE k = 'news' LIMIT 1"),0,0)); $abf = 'SELECT * FROM prefix_news WHERE (((' . pow(2, abs($_SESSION['authright'])) . " | news_recht) = news_recht) OR (news_groups != 0 AND ((news_groups ^ $news_groups) != (news_groups | $news_groups)))) AND `show` > 0 AND `show` <= UNIX_TIMESTAMP() AND news_id != '.$tn_id.' AND archiv != 1 AND (endtime IS NULL OR endtime > UNIX_TIMESTAMP()) ORDER BY news_time DESC LIMIT 0,10"; $erg = db_query($abf); echo '<table>'; echo '<tr><th colspan="2" valign="mid" height="50">Last Reviews</th></tr>'; while ($row = db_fetch_object($erg)) { echo '<tr><td valign="top"><b> » </b></td><td><a class="box" href="index.php?news-'.$row->news_id.'">'.$row->news_title.'</a></td></tr>'; echo '<tr><td valign="top"></td><td>'.substr($row->news_text, 1, 100).'...</td></tr>'; } echo '<tr><td valign="top" height="50"></td></tr>'; echo '</table>'; ?>