I really liked the script that Jennifer put together for the Lazyman smileys (pop up version), but :GG: and I wanted the smileys to appear on the page next to the comment box instead of in a pop up window.
Don't forget, if you've upgraded to MovableType 2.6 or higher, you'll need to tweak your Sanitize settings so the images will display.
The smiles come from Jason's and were discovered by :GG:.
Note: I still use MTMacros because I want to be able to convert :) to the image version.
» You must be running PHP in your blog (or you can PHP-parse your HTML files, but you get to look up how to do that yourself).
» The easiest way to implement these smileys is to use the Individual Entry Archives as your comment entry form instead of using the comment popup window. This is easy to change. You'd swap out the following:
<a href="<$MTCGIPath$><$MTCommentScript$>?entry_id=<$MTEntryID$>" onclick="OpenComments(this.href); return false">Comments (<$MTEntryCommentCount$>)</a>
<a href="<$MTEntryLink$>#comments">Comments (<$MTEntryCommentCount$>)</a>
If you're really stuck on the comment popup, send me email and I'll write up a workaround.
If someone who wants to add smiles to their blog will test this, I'd really appreciate it!Important: Do not use > or < in your macro string name.Another update:Jason suggested that I let people know how to add the smileys to comment preview. Step 4 has been updated appropriately.
An FAQ: If you've upgraded to MT 2.62, you'll need to go into the Weblog config section, under Preferences, and add something along the following lines in the "Sanitize" section:
p,br/,img src,a href,b,u,i,strong,em,span,ol,ul,li
Only add the tags that you want to allow in your comments, so if you don't want to let people use underline, leave out the "u".
Yes, another update. I moved the comment & comment preview popup info to another post.