This function will parse the smiley's in $message string and display the smiley code as smiley's and not as the typed characters.
Quote
parsesmileys ( string $message )
<?php
$message = "Here is a text :) With some smiley's in it :D";
echo parsesmileys($message);
?>
Quote
Here is a text <img src='images/smiley/smile.gif' alt='smile' /> With some smiley's in it <img src='images/smiley/grin.gif' alt='grin' />