Letractively / dotnetkicks

Automatically exported from code.google.com/p/dotnetkicks
1 stars 0 forks source link

Emoticons? #102

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
question : who wants emoticons? except me :).

Ps: .. how do I change the Defect into : feature request or something ?

Original issue reported on code.google.com by xavier...@gmail.com on 17 Sep 2007 at 11:43

GoogleCodeExporter commented 9 years ago
We could have a user setting that allowed emoticons to be turned on and off.

Original comment by gavinjo...@gmail.com on 17 Sep 2007 at 11:52

GoogleCodeExporter commented 9 years ago
Would the emoticons be just for shoutbox or for story summaries, comments, etc.?

Original comment by james.e....@gmail.com on 18 Sep 2007 at 12:34

GoogleCodeExporter commented 9 years ago
Either (shoutbox) or (shoutbox and comments) I would say. 

If I was pushed I would go with just the shoutbox.

Original comment by gavinjo...@gmail.com on 18 Sep 2007 at 12:37

GoogleCodeExporter commented 9 years ago
Since you'd implement it i see no reason why not have emoticons in the comments.

Original comment by xavier...@gmail.com on 18 Sep 2007 at 3:30

GoogleCodeExporter commented 9 years ago
I was thinking about this and I think that it should be easy enough to do for 
both.
We could just make a utility class with a static method that either the 
shoutbox or
comments box would pass a string and return a string (or use ref). That method 
would
just do some RegEx search/replace and return the string with [img] tags added. 
We
just need to find some good royalty free/allowable emoticon images. Anyone have 
a
good link for a graphic set?

Original comment by james.e....@gmail.com on 23 Sep 2007 at 9:40

GoogleCodeExporter commented 9 years ago
Found these ones: http://fasticon.com/freeware/?p=20

Original comment by simone.b...@gmail.com on 30 Sep 2007 at 8:03

GoogleCodeExporter commented 9 years ago

Original comment by simone.b...@gmail.com on 1 Oct 2007 at 7:59

GoogleCodeExporter commented 9 years ago

Original comment by simone.b...@gmail.com on 1 Oct 2007 at 2:54

GoogleCodeExporter commented 9 years ago
The emoticons produce an unwanted side effect on the following page:

http://www.dotnetkicks.com/patterns/How_to_design_a_Fluent_Interface

Should we require a space before and after the emoticon text? Perhaps require 
them to
be enclosed in square brackets?

Original comment by gavinjo...@gmail.com on 2 Oct 2007 at 8:18

GoogleCodeExporter commented 9 years ago
You're right, I didn't consider this. What would you prefer? The spaces or the 
square
brackets?

Original comment by simone.b...@gmail.com on 2 Oct 2007 at 8:23

GoogleCodeExporter commented 9 years ago
How about whitespace either side? The following should work:

Hi :)
:)

Original comment by gavinjo...@gmail.com on 2 Oct 2007 at 8:27

GoogleCodeExporter commented 9 years ago
That may work, but if you start a line with a smile it won't be parsed correctly
because it looks for a space before...
Since I got this message on Thunderbird, and since it showed the two smilies 
even if
the second one doesn't have a space before, I think I'm going to see if I can 
find
the regular expression Thunderbird uses to replace the emoticons...if I ever 
can find it

Original comment by simone.b...@gmail.com on 2 Oct 2007 at 8:33

GoogleCodeExporter commented 9 years ago
Can't go with Thunderbird since it uses html to format the icons. I checked the
method used by codeproject and it's the same I implemented, that is, the result 
would
be the same as in the story you linked to before. The difference is that they 
have a
special tag for posting source code, which prevents those snippets from being
mistakenly parsed as emoticons... 
What should we do? Another problem is that users are familiar with typing :) to
create an emoticon, if we impose to leave a space before and after some 
emoticons may
not be replaced correctly and skipped by the replacement algorithm. Simple 
parsing :)
with no further spaces or other characters around it to me is the best choice, 
but we
must find a way to prevent source code from being parsed as emoticons.

Original comment by simone.b...@gmail.com on 2 Oct 2007 at 9:01

GoogleCodeExporter commented 9 years ago
I guess we need to support a [source] {} [/source] tag too so :)

Are there any good os libraries for formatting source code?

Original comment by gavinjo...@gmail.com on 2 Oct 2007 at 9:07

GoogleCodeExporter commented 9 years ago
I know this one http://manoli.net/csharpformat/

Original comment by simone.b...@gmail.com on 2 Oct 2007 at 9:12

GoogleCodeExporter commented 9 years ago
I checked many other story comments, and it seems that none is messed up by the
parsing mechanism we have. I think we should leave it as it is now and just add 
a
special tag for source code.

Original comment by simone.b...@gmail.com on 2 Oct 2007 at 10:11

GoogleCodeExporter commented 9 years ago
Ok, works for me :)

Original comment by gavinjo...@gmail.com on 2 Oct 2007 at 10:13

GoogleCodeExporter commented 9 years ago
I think that we should have a user profile option for this and that the default
should be off.

Original comment by gavinjo...@gmail.com on 3 Oct 2007 at 2:12

GoogleCodeExporter commented 9 years ago
I've seen a lot of forums that have a checkbox per comment post. Just in case 
you are
trying to post a comment that might get messed up with the smilies. We could 
add a
bit field to the comment table, make it false by default (so old comments aren't
messed up), then just add checkbox thats default to true on the UI.

Original comment by james.e....@gmail.com on 3 Oct 2007 at 2:16

GoogleCodeExporter commented 9 years ago
sure

Original comment by simone.b...@gmail.com on 3 Oct 2007 at 2:18

GoogleCodeExporter commented 9 years ago
Just a thought: if karma is ever implemented, the ability to use emoticons 
could be
one of the perks of 'good' karma.

Original comment by cdj...@gmail.com on 3 Oct 2007 at 2:50

GoogleCodeExporter commented 9 years ago
I will add a user profile option to turn emoticons on and off. No big deal 
however,
since they are saved in the database as simple text and parsed during 
rendering. Even
if they are enabled by default now, once the profile option get implemented 
users who
don't want to see them won't, even in the older stories.

Original comment by simone.b...@gmail.com on 3 Oct 2007 at 3:44