this:
$new_post = ereg_replace("(([^\.<>[:space:]]+\.)|([[:alpha:]]+://))+". "[^\.<>[:space:]]+\.[^<>[:space:]]+", "<a href=\"http://\\0\" target=\"_blank\">\\0</a>", $row['Post']);
$new_post = ereg_replace("http://([[:alpha:]]+://)","\\1",$row['Post']);
and this:
$new_post = ereg_replace(":smilie:","<img src=http://smilieurl.com/image.gif>", $row['Post']);
Only one of them works. Whichever's the last line of the code works. The other one doesn't.