lil' update...to write.php
* Smileys
* BBCode
//text to smileys =)
$content = str_replace(":(","<img src=\"smileys/sad.gif\" alt=\":(\"/>", $content);
$content = str_replace(":(","<img src=\"smileys/sad.gif\" alt=\":(\"/>", $content);
$content = str_replace(";(","<img src=\"smileys/cry.gif\" alt=\";(\"/>", $content);
$content = str_replace(":@","<img src=\"smileys/mad.gif\" alt=\":@\"/>", $content);
$content = ereg_replace(":)","<img src=\"smileys/smile.gif\" alt=\":)\"/>", $content);
$content = ereg_replace("=)","<img src=\"smileys/smile.gif\" alt=\"=)\"/>", $content);
$content = ereg_replace(":D","<img src=\"smileys/laugh.gif\" alt=\":D\"/>", $content);
$content = ereg_replace(":d","<img src=\"smileys/laugh.gif\" alt=\":d\"/>", $content);
$content = ereg_replace(":p","<img src=\"smileys/tongue.gif\" alt=\":p\"/>", $content);
$content = ereg_replace(":P","<img src=\"smileys/tongue.gif\" alt=\":P\"/>", $content);
$content = ereg_replace(":O","<img src=\"smileys/shocked.gif\" alt=\":O\"/>", $content);
$content = ereg_replace(":o","<img src=\"smileys/shocked.gif\" alt=\":o\"/>", $content);
$content = ereg_replace(";)","<img src=\"smileys/wink.gif\" alt=\";)\"/>", $content);
$content = ereg_replace(":S","<img src=\"smileys/sick.gif\" alt=\":S\"/>", $content);
$content = ereg_replace(":s","<img src=\"smileys/sick.gif\" alt=\":s\"/>", $content);
$content = ereg_replace(":roll:","<img src=\"smileys/roll.gif\" alt=\":roll:\"/>", $content);
//bbcode
$content = str_replace("[B]", "<strong>", $content);
$content = str_replace("[/B]", "</strong>", $content);
$content = str_replace("[I]", "<em>", $content);
$content = str_replace("[/I]", "</em>", $content);
$content = str_replace("[U]", "<u>", $content);
$content = str_replace("[/U]", "</u>", $content);
$content = str_replace("[LI]", "<li>", $content);
$content = str_replace("[/LI]", "</li>", $content);