Ok, dziękuję.

Już wątpiłem, że ktoś mi pomoże

Udało się, zrozumiałem i jest świetnie

Dziękuję

edit:
Niestety nie działa tam gdzie powinno

Używam takiego skryptu:
<?php
$text = str_replace(\":)\", \"<img src=\"forum/images/smiles/icon_smile.gif\">\", $text); $text = str_replace(\";)\", \"<img src=\"forum/images/smiles/icon_wink.gif\">\", $text); $text = str_replace(\":P\", \"<img src=\"forum/images/smiles/icon_razz.gif\">\", $text); $text = str_replace(\"X)\", \"<img src=\"forum/images/smiles/icon_twisted.gif\">\", $text); $text = str_replace(\":D\", \"<img src=\"forum/images/smiles/icon_biggrin.gif\">\", $text); $text = str_replace(\":(\", \"<img src=\"forum/images/smiles/icon_sad.gif\">\", $text); $text = str_replace(\"->\", \"<img src=\"forum/images/smiles/icon_arrow.gif\">\", $text); $text = str_replace(\";(\", \"<img src=\"forum/images/smiles/icon_cry.gif\">\", $text);
$dzial = '8';
$sql=\"SELECT p.post_id, pt.post_id, pt.post_text, pt.bbcode_uid, t.topic_id, t.to
p
c_title, t.topic_first_post_id, t.forum_id, t.topic_replies, u.user_id,
u.username, u.user_posts, u.user_rank
FROM \".TOPICS_TABLE.\" t, \".USERS_TABLE.\" u, \".POSTS_TABLE.\" p, \".POSTS_TEXT_TABLE.\" pt
WHERE t.forum_id = $dzial
AND t.topic_poster = u.user_id
AND t.topic_first_post_id = pt.post_id
AND t.topic_first_post_id = p.post_id
ORDER BY pt.post_id DESC\";
while(
{
$text = $result['post_text'];
$text = bbcode_strip($text, $result['bbcode_uid']);
$link = append_sid('viewtopic.' . $phpEx . '?t=' . $result['topic_id']);
$text = substr($text, 0, 1000).'...[space][space] <a href=\"forum/'.$link.'\" class=\"wiecej\">Wiecej</a>';} ', '<br>', $text);
$author = ' ';
echo '<div style=\"text-align:justify; background:#FCFCFC; border: solid #CACACA 1px; padding:5px; margi
n:5px; font-size:10pt\"><b><a
href=\"forum/'.$link.'\" class=\"tytul_newsa\">'.$result['topic_title'].'</a></b><hr width=\"90%\" align\"center\"><span
class=\"news\">'.$text.'</span><div align=\"right\"><br /><span class=\"autor\">'.$author.' :: </span><a href=\"forum/'.$link.'\"
class=\"autor\">Komentarzy: <span class=\"autor_red\">'.$result['topic_replies'].'</span></a></div></div>';
}
?>
Może gdzieś popełniłem błąd?