i have this codes for show smileys
$C->POST_ICONS = array (
':)' => 's1.gif',
':))' => 's33.gif',
)
and for classes use :
foreach($C->POST_ICONS as $k=>$v) {
$message = str_replace($k, '<img src="'.$C->IMG_URL.'icons/'.$v.'" class="post_smiley" alt="'.$k.'" title="'.$k.'" rel="tooltip" />', $message);
}
problem : when i post :)) just show s1.gif and ) ! but should show s33.gif