I did some updates to the smilies code yesterday morning and as a result, it was only putting the smily at the end of the post. I never realized that people typed their message first and then added smilies later.
So, this morning I updated it again so that when you click on the smily icon, it will put the smily exactly where your cursor is situated. And to test, I will click my cursor somewhere else in this post and click on an icon.
And it worked!