The glMessenger function msg_replaceEmoticons() will replace any emoticons with the HTML for the assigned image. By adding this function in the lib-common functions that display the article and the comments you will have support for smilies. Only the emoticon like is stored and will be replaced with the smilie image on the fly when being displayed.
This was tested with GL 1.3.9
Step1: lib-common.php function COM_article
We want to use the replaceEmoticons on the introtext and bodytext of any articles.
Around Line 485 - add:
PHP Formatted Code
$A['introtext'] = msg_replaceEmoticons
($A['introtext']);
$A['bodytext'] = msg_replaceEmoticons
($A['bodytext']);
Step2: lib-common.php
COM_getCommentWe want to use the replaceEmoticons on the comment text.
Around Line 2806 - add:
PHP Formatted Code
$A['comment'] = msg_replaceEmoticons
($A['comment']);
The only additional calls would be needed to the Admin Story Editor for when creating or editing stories as Admin. The 2 changes above will add smilie support for anyone submitting stories and/or comments.
Plus glMessenger provides you with the Smilie Admin interface to add/edit smilies for a complete solution to personalize your site.