PHP:
Немного не правильно прописаны пути смайлов, вот копался, думал почему не работает, потом решил, вот решение:
Енто в CLASS_USER.PHP:
[QUOTE]// LINK ALL LINKS
$message = ereg_replace("http://([.]?[a-zA-Z0-9_/-])*", "<a href=\"\\0\" target=\"_blank\">\\0</a>", $message);
$message = ereg_replace("(^| |\n)(www([.]?[a-zA-Z0-9_/-])*)", "\\1<a href=\"http://\\2\" target=\"_blank\">\\2</a>", $message);
// RUN SECURITY ON THE MESSAGE TO ENSURE NO XSS ATTACKS WITH LINKS
$message = cleanHTML($message, "a");
// REPLACE NEWLINES IN BODY WITH BREAKS
$message = str_replace("\n", "<br>", $message);
$message = str_replace("'", "\'", $message);
// MY SMILE BEGIN
$message = str_replace(
array(':smile:',':baffled:',':biggrin:',':confused:',':cool:',':dull:',':eek:',':frown:',':growl:',':mad:',':nerd:',':no:',':oo:',':redface:',':rofl:',':rolleyes:',':sad:',':sorry:',':tongue:',':wink:',':yes:',':good:',':bad:',':angel:',':winking:',':tease:',':abrupt:',':neigh:',':hesitate:',':surprise:',':cry:',':nosound:',':force:',':fool:',':xm:',':jokingly:',':diablo:',':meloman:',':nausea:',':tired:',':stop:',':rose:',':thumbsup:',':inlove:',':bomba:',':help:',':adrupt:',':dizziness:',':ok:',':wassup:',':ksorry:',':bravo:',':krolf:',':pardon:',':kno:',':crazy:',':dontknow:',':dance:',':yahoo:',':hi:',':bye:',':kyes:',':kwink:',':wall:',':write:',':scratch:','=)',':)','))'),
array('<img src="/images/smiles_new/smile.gif" alt="smile" />',
'<img src="/images/smiles_new/baffled.gif" alt=":baffled:" />',
'<img src="/images/smiles_new/biggrin.gif" alt="biggrin" />',
'<img src="/images/smiles_new/confused.gif" alt="confused" />',
'<img src="/images/smiles_new/cool.gif" alt="cool" />',
'<img src="/images/smiles_new/dull.gif" alt="dull" />',
'<img src="/images/smiles_new/eek.gif" alt="eek" />',
'<img src="/images/smiles_new/frown.gif" alt="frown" />',
'<img src="/images/smiles_new/growl.gif" alt="growl" />',
'<img src="/images/smiles_new/mad.gif" alt="mad" />',
'<img src="/images/smiles_new/nerd.gif" alt="nerd" />',
'<img src="/images/smiles_new/no.gif" alt="no" />',
'<img src="/images/smiles_new/oo.gif" alt="oo" />',
'<img src="/images/smiles_new/redface.gif" alt="redface" />',
'<img src="/images/smiles_new/rofl.gif" alt="rofl" />',
'<img src="/images/smiles_new/rolleyes.gif" alt="rolleyes" />',
'<img src="/images/smiles_new/sad.gif" alt="sad" />',
'<img src="/images/smiles_new/sorry.gif" alt="sorry" />',
'<img src="/images/smiles_new/tongue.gif" alt="tongue" />',
'<img src="/images/smiles_new/wink.gif" alt="wink" />',
'<img src="/images/smiles_new/yes.gif" alt="yes" />',
'<img src="/images/smiles_new/good.gif" alt=":good:" />',
'<img src="/images/smiles_new/bad.gif" alt=":bad:" />',
'<img src="/images/smiles_new/angel.gif" alt=":angel:" />',
'<img src="/images/smiles_new/winking.gif" alt=":winking:" />',
'<img src="/images/smiles_new/tease.gif" alt=":tease:" />',
'<img src="/images/smiles_new/abrupt.gif" alt=":abrupt:" />',
'<img src="/images/smiles_new/neigh.gif" alt=":neigh:" />',
'<img src="/images/smiles_new/hesitate.gif" alt=":hesitate:" />',
'<img src="/images/smiles_new/surprise.gif" alt=":surprise:" />',
'<img src="/images/smiles_new/cry.gif" alt=":cry:" />',
'<img src="/images/smiles_new/nosound.gif" alt=":nosound:" />',
'<img src="/images/smiles_new/force.gif" alt=":force:" />',
'<img src="/images/smiles_new/fool.gif" alt=":fool:" />',
'<img src="/images/smiles_new/xm.gif" alt=":xm:" />',
'<img src="/images/smiles_new/jokingly.gif" alt=":jokingly:" />',
'<img src="/images/smiles_new/diablo.gif" alt=":diablo:" />',
'<img src="/images/smiles_new/meloman.gif" alt=":meloman:" />',
'<img src="/images/smiles_new/nausea.gif" alt=":nausea:" />',
'<img src="/images/smiles_new/tired.gif" alt=":tired:" />',
'<img src="/images/smiles_new/stop.gif" alt=":stop:" />',
'<img src="/images/smiles_new/rose.gif" alt=":rose:" />',
'<img src="/images/smiles_new/thumbsup.gif" alt=":thumbsup:" />',
'<img src="/images/smiles_new/inlove.gif" alt=":inlove:" />',
'<img src="/images/smiles_new/bomba.gif" alt=":bomba:" />',
'<img src="/images/smiles_new/help.gif" alt=":help:" />',
'<img src="/images/smiles_new/adrupt.gif" alt=":adrupt:" />',
'<img src="/images/smiles_new/dizziness.gif" alt=":dizziness:" />',
'<img src="/images/smiles_new/ok.gif" alt=":ok:" />',
'<img src="/images/smiles_new/wassup.gif" alt=":wassup:" />',
'<img src="/images/smiles_new/ksorry.gif" alt=":ksorry:" />',
'<img src="/images/smiles_new/bravo.gif" alt=":bravo:" />',
'<img src="/images/smiles_new/krolf.gif" alt=":krolf:" />',
'<img src="/images/smiles_new/pardon.gif" alt=":pardon:" />',
'<img src="/images/smiles_new/kno.gif" alt=":kno:" />',
'<img src="/images/smiles_new/crazy.gif" alt=":crazy:" />',
'<img src="/images/smiles_new/dontknow.gif" alt=":dontknow:" />',
'<img src="/images/smiles_new/dance.gif" alt=":dance:" />',
'<img src="/images/smiles_new/yahoo.gif" alt=":yahoo:" />',
'<img src="/images/smiles_new/hi.gif" alt=":hi:" />',
'<img src="/images/smiles_new/bye.gif" alt=":bye:" />',
'<img src="/images/smiles_new/kyes.gif" alt=":kyes:" />',
'<img src="/images/smiles_new/kwink.gif" alt=":kwink:" />',
'<img src="/images/smiles_new/wall.gif" alt=":wall:" />',
'<img src="/images/smiles_new/write.gif" alt=":write:" />',
'<img src="/images/smiles_new/scratch.gif" alt=":scratch:" />',
'<img src="/images/smiles_new/good.gif" alt=":good:" />',),$message);
// MY SMILE END [/QUOTE]
А вот енто в USER_MESSAGES_VIEW.TPL:
[QUOTE]
<!-- MY SMILE END -->
{literal}
<script type="text/javascript">
// SMILE
function insert_text(text)
{
msgfield = (document.all) ? document.all.reply : ((document.getElementById('afocus') != null) ? (document.getElementById('afocus').reply) : (document.getElementById('reply_body')));
msgfield.value += text;
msgfield.focus();
return false;
}
// -->
</script>
<style>
#commentus_smile {
position:relative;
width:25px;
float:left;
text-align:left;
}
#commentus_smile a {
display:block;
text-decoration:none
}
#commentus_smile a img {
cursor:pointer
}
#commentus_smile a p {
position:absolute;
left:0;
background:#fff;
padding:5px;
border:1px solid #d7dff6;
width:300px;
text-align:center
}
#commentus_smile a p img {
padding:2px
}
</style>
{/literal}
<div id='commentus_smile'>
<a href='javascript:void(0);' onclick="if(document.getElementById('strk1').style.display=='none') document.getElementById('strk1').style.display='block'; else document.getElementById('strk1').style.display='none';"><img src='/images/smiles_new/smile.gif' alt=':smile:' />
<p id='strk1' style='display:none;'>
<img src='/images/smiles_new/smile.gif' alt='smile' onclick="return insert_text(' :smile: ', '')" />
<img src='/images/smiles_new/baffled.gif' alt='baffled' onclick="return insert_text(' :baffled: ', '')" />
<img src='/images/smiles_new/biggrin.gif' alt='biggrin' onclick="return insert_text(' :biggrin: ', '')" />
<img src='/images/smiles_new/confused.gif' alt='confused' onclick="return insert_text(' :confused: ', '')" />
<img src='/images/smiles_new/cool.gif' alt='cool' onclick="return insert_text(' :cool: ', '')" />
<img src='/images/smiles_new/dull.gif' alt='dull' onclick="return insert_text(' :dull: ', '')" />
<img src='/images/smiles_new/eek.gif' alt='eek' onclick="return insert_text(' :eek: ', '')" />
<img src='/images/smiles_new/frown.gif' alt='frown' onclick="return insert_text(' :frown: ', '')" />
<img src='/images/smiles_new/growl.gif' alt='growl' onclick="return insert_text(' :growl: ', '')" />
<img src='/images/smiles_new/mad.gif' alt='mad' onclick="return insert_text(' :mad: ', '')" />
<img src='/images/smiles_new/nerd.gif' alt='nerd' onclick="return insert_text(' :nerd: ', '')" />
<img src='/images/smiles_new/no.gif' alt='no' onclick="return insert_text(' :no: ', '')" />
<img src='/images/smiles_new/oo.gif' alt='oo' onclick="return insert_text(' :oo: ', '')" />
<img src='/images/smiles_new/redface.gif' alt='redface' onclick="return insert_text(' :redface: ', '')" />
<img src='/images/smiles_new/rofl.gif' alt='rofl' onclick="return insert_text(' :rofl: ', '')" />
<img src='/images/smiles_new/rolleyes.gif' alt='rolleyes' onclick="return insert_text(' :rolleyes: ', '')" />
<img src='/images/smiles_new/sad.gif' alt='sad' onclick="return insert_text(' :sad: ', '')" />
<img src='/images/smiles_new/sorry.gif' alt='sorry' onclick="return insert_text(' :sorry: ', '')" />
<img src='/images/smiles_new/tongue.gif' alt='tongue' onclick="return insert_text(' :tongue: ', '')" />
<img src='/images/smiles_new/wink.gif' alt='wink' onclick="return insert_text(' :wink: ', '')" />
<img src='/images/smiles_new/yes.gif' alt='yes' onclick="return insert_text(' :yes: ', '')" />
<img src='/images/smiles_new/good.gif' alt=':good:' onclick="return insert_text(' :good: ', '')" />
<img src='/images/smiles_new/angel.gif' alt=':angel:' onclick="return insert_text(' :angel: ', '')" />
<img src='/images/smiles_new/bad.gif' alt=':bad:' onclick="return insert_text(' :bad: ', '')" />
<img src='/images/smiles_new/winking.gif' alt=':winking:' onclick="return insert_text(' :winking: ', '')" />
<img src='/images/smiles_new/tease.gif' alt=':tease:' onclick="return insert_text(' :tease: ', '')" />
<img src='/images/smiles_new/abrupt.gif' alt=':abrupt:' onclick="return insert_text(' :abrupt: ', '')" />
<img src='/images/smiles_new/neigh.gif' alt=':neigh:' onclick="return insert_text(' :neigh: ', '')" />
<img src='/images/smiles_new/hesitate.gif' alt=':hesitate:' onclick="return insert_text(' :hesitate: ', '')" />
<img src='/images/smiles_new/surprise.gif' alt=':surprise:' onclick="return insert_text(' :surprise: ', '')" />
<img src='/images/smiles_new/cry.gif' alt=':cry:' onclick="return insert_text(' :cry: ', '')" />
<img src='/images/smiles_new/nosound.gif' alt=':nosound:' onclick="return insert_text(' :nosound: ', '')" />
<img src='/images/smiles_new/force.gif' alt=':force:' onclick="return insert_text(' :force: ', '')" />
<img src='/images/smiles_new/fool.gif' alt=':fool:' onclick="return insert_text(' :fool: ', '')" />
<img src='/images/smiles_new/xm.gif' alt=':xm:' onclick="return insert_text(' :xm: ', '')" />
<img src='/images/smiles_new/jokingly.gif' alt=':jokingly:' onclick="return insert_text(' :jokingly: ', '')" />
<img src='/images/smiles_new/diablo.gif' alt=':diablo:' onclick="return insert_text(' :diablo: ', '')" />
<img src='/images/smiles_new/meloman.gif' alt=':meloman:' onclick="return insert_text(' :meloman: ', '')" />
<img src='/images/smiles_new/nausea.gif' alt=':nausea:' onclick="return insert_text(' :nausea: ', '')" />
<img src='/images/smiles_new/tired.gif' alt=':tired:' onclick="return insert_text(' :tired: ', '')" />
<img src='/images/smiles_new/stop.gif' alt=':stop:' onclick="return insert_text(' :stop: ', '')" />
<img src='/images/smiles_new/rose.gif' alt=':rose:' onclick="return insert_text(' :rose: ', '')" />
<img src='/images/smiles_new/thumbsup.gif' alt=':thumbsup:' onclick="return insert_text(' :thumbsup: ', '')" />
<img src='/images/smiles_new/inlove.gif' alt=':inlove:' onclick="return insert_text(' :inlove: ', '')" />
<img src='/images/smiles_new/bomba.gif' alt=':bomba:' onclick="return insert_text(' :bomba: ', '')" />
<img src='/images/smiles_new/help.gif' alt=':help:' onclick="return insert_text(' :help: ', '')" />
<img src='/images/smiles_new/adrupt.gif' alt=':adrupt:' onclick="return insert_text(' :adrupt: ', '')" />
<img src='/images/smiles_new/dizziness.gif' alt=':dizziness:' onclick="return insert_text(' :dizziness: ', '')" />
<img src='/images/smiles_new/ok.gif' alt=':ok:' onclick="return insert_text(' :ok: ', '')" />
<img src='/images/smiles_new/wassup.gif' alt=':wassup:' onclick="return insert_text(' :wassup: ', '')" />
<img src='/images/smiles_new/ksorry.gif' alt=':ksorry:' onclick="return insert_text(' :ksorry: ', '')" />
<img src='/images/smiles_new/bravo.gif' alt=':bravo:' onclick="return insert_text(' :bravo: ', '')" />
<img src='/images/smiles_new/krolf.gif' alt=':krolf:' onclick="return insert_text(' :krolf: ', '')" />
<img src='/images/smiles_new/pardon.gif' alt=':pardon:' onclick="return insert_text(' :pardon: ', '')" />
<img src='/images/smiles_new/kno.gif' alt=':kno:' onclick="return insert_text(' :kno: ', '')" />
<img src='/images/smiles_new/crazy.gif' alt=':crazy:' onclick="return insert_text(' :crazy: ', '')" />
<img src='/images/smiles_new/dontknow.gif' alt=':dontknow:' onclick="return insert_text(' :dontknow: ', '')" />
<img src='/images/smiles_new/dance.gif' alt=':dance:' onclick="return insert_text(' :dance: ', '')" />
<img src='/images/smiles_new/yahoo.gif' alt=':yahoo:' onclick="return insert_text(' :yahoo: ', '')" />
<img src='/images/smiles_new/hi.gif' alt=':hi:' onclick="return insert_text(' :hi: ', '')" />
<img src='/images/smiles_new/bye.gif' alt=':bye:' onclick="return insert_text(' :bye: ', '')" />
<img src='/images/smiles_new/kyes.gif' alt=':kyes:' onclick="return insert_text(' :kyes: ', '')" />
<img src='/images/smiles_new/kwink.gif' alt=':kwink:' onclick="return insert_text(' :kwink: ', '')" />
<img src='/images/smiles_new/wall.gif' alt=':wall:' onclick="return insert_text(' :wall: ', '')" />
<img src='/images/smiles_new/write.gif' alt=':write:' onclick="return insert_text(' :write: ', '')" />
<img src='/images/smiles_new/scratch.gif' alt=':scratch:' onclick="return insert_text(' :scratch: ', '')" /></p>
</a></div>
<!-- MY SMILE END -->[/QUOTE]