ich rat davon ab aber hier:
include/contents/forum/show_posts.php
$row['txt'] = (isset($_GET['such']) ? markword(bbcode ($row['txt']),$_GET['such']) : bbcode ($row['txt']) );
//löschen
//erstes und letztes gibts schon
$user_row = db_fetch_assoc(db_query("SELECT recht,posts,regist FROM prefix_user WHERE id = ".$row['erstid']));
$recht = $user_row->recht;
if($recht < -4 )
{
echo "A";
$row['txt'] = decode_html(isset($_GET['such']) ? markword(bbcode ($row['txt']),$_GET['such']) : bbcode ($row['txt']) );
}
else
{
echo "B";
$row['txt'] = (isset($_GET['such']) ? markword(bbcode ($row['txt']),$_GET['such']) : bbcode ($row['txt']) );
}
$posts = $row['posts'];
Neu einfügen am Ende
include/includes/func/escape.php
function decode_html($t)
{
$t = html_entity_decode($t);
return $t;
}
Wenns bei der Vorschau auch schon sein soll:
include/contents/forum/new_post.php
$tpl->set_out('txt', bbcode(unescape($txt)), 0);
zu
$tpl->set_out('txt', decode_html(bbcode(unescape($txt))), 0);
und
$row['txt'] = bbcode($row['txt']);
zu
$row['txt'] = decode_html(bbcode($row['txt']));
Zuletzt modifiziert von Bummelmann am 19.12.2007 - 18:54:44