Well, I finally got around to putting my “smilies” hack in a plugin … and then I found out that not only did Matt Read do it first, he did it with more panache! Matt’s more-smilies plugin has selectable sets of emoticons and a toolbar for the rich edit box and even for your comment box.
Personally, I don’t want all the toolbars or selectability. I’ve been using these plugins on my website for as long as I’ve had one (lets not get into specifics here), and I don’t have any intention of switching. That said, it occurs to me that some people who might have been interested in these already have more-smilies, or would like to try out being able to switch sets as the mood suits them (there’s already a “Santa” set for Christmas time), so I’ve put this together in a multi-option package.
- If you download SmilingMasses and unpack it to a folder inside the more-smilies plugin, it will function as a more-smilies package.
- If you unpack it to it’s own folder inside /wp-content/plugins/ it will function as a standalone plugin which merely replaces the default WordPress smilies with a bunch of Nomicon inspired ones (have a look at the included package-options.php for an editable list of what text you can use to get smilies — and remember that double backslashes \\ are really single).
P.S.
I had to update this to work in WordPress 2.1 because something changed in the regular expression replacement for the smilies, but I feel obliged to point out that I had to do a tweak to the code WordPress was using (it’s all in my plugin) because the WordPress smilies required whitespace around the emoticons, meaning you couldn’t put two of them right next to each other, or right before punctuation, without padding spaces all around the place [ ][
]!
Similar Posts:
- None Found