News for hackers. Stuff that matters.
Re:Ask HN: How to design private messaging emoticons? by aupajo on Monday July 07, 2008 @12:34AM (#238318)
First off, I heavily advise against emoticons. People are usually perfectly happy with plain-text ones, and some people are avidly against graphical ones. Plus, if you have many triggers for emoticons that aren't immediately obvious, people can become confused when an icon pops up where they weren't expecting one.

That said, implementing said emoticons is a simple task. Assign a list of emoticon codes and image files (eg. ":)" => "smile.gif" and ":D" => "grin.gif") either hardcoded or in a database table depending on your needs, and use a simple search-and-replace function to replace the emoticon code with an image tag of the file. Make sure this is done when the message's body is parsed, and NOT before it gets inserted into the database.

Re:Ask HN: How to design private messaging emoticons? by fbailey on Monday July 07, 2008 @03:42AM (#238414)
sorry but completely wrong: We (geeks on Hacker News) don't like emoticons, the users out there love them
Re:Ask HN: How to design private messaging emoticons? by wlievens on Monday July 07, 2008 @04:12AM (#238426)
Actually I think SomethingAwful's emoticons are awesome, and that place is full of geeks.
Re:Ask HN: How to design private messaging emoticons? by 0x44 on Monday July 07, 2008 @09:17AM (#238545)
SomethingAwful is full of geeks in the archaic meaning.