Username
Forgot password?
Welcome to our site!
Or Join with FTTF

Big improvement to comments system - now comments can have replies!

1

1455 views
This is a pretty big update to the comments system.
Here is the deal: Often a comment is a reply to another comment. It's not easy to keep track of these replies.
On most other site like StackOverflow for example, the best one can do is to include the @user in the beginning
of a comment to indicate that this is a reply.

But this only tells that it's a reply to a comment by @userA. It is not very helpful when userA made more than one comment. How do you know which one of these comments this reply is referring to?

I thought I can do better. Here is goes: Now every comment has a "reply" link. Want to reply to a comment - just use that magic link. No need to manually type @userA - the system will figure out that this is a reply to @userA and more importantly which one of @userA comments

Then when looking at comments all the replies will automatically include @user - and these are underscored with a dashed line.

Now the best part - when you mouse over these @user labels - the comment for which this is a reply will become highlighted - you in case instantly see the message for this this is a reply. You can even click on that @user label in which case BOTH - the original and this reply are highlighted. Clicking it again will toggle the highlighing on/off

And now I'm going to post a simple comment and a reply, and you are welcome to also post replies to comments and just test it out. If this works well, I'll push it to github soon.

I don't think you'll find this feature anywhere else because I thought of it myself. I think it's pretty useful addition.
 
asked June 12, 2011 at 3:26 PM

 US
Here we go! This is a first comment
flag
Jun 12 '11 at 15:26
@Dmitri Snytkine
Keeping fingers crossed. This is a reply.
flag
Jun 12 '11 at 15:27
@Dmitri Snytkine
This is another reply. It worked! Make sure to reload page while holding down the shift key in order to update the .css file in browser cache - there are now styles necessary for this feature to work properly!
flag
Jun 12 '11 at 15:28
@Dmitri Snytkine
test comment here.. test test test
flag
Jun 12 '11 at 18:26
@Dmitri Snytkine
test from chrome.. test test test
flag
Jun 12 '11 at 18:31
@Dmitri Snytkine
a vote up for the new comment capability.. for some reason.. the page jumps around when I click replay in chrome but not in FF .. could be I need to clear cache more..
flag
Jun 12 '11 at 18:33
@Dmitri Snytkine
test from FF . . this works really well..
flag
Jun 12 '11 at 18:34
@Steve King
Replay? Do you mean reload? I think in general this works well.
flag
Jun 12 '11 at 19:28
@Dmitri Snytkine
never mind.. I meant "reply" ,, at first Chrome was jumpy when I clicked reply to create a comment.. but now its fine.. so far so good.. more testing to follow.. as you well know.. I love to comment :)
flag
Jun 12 '11 at 20:45

3 Answers

1
 
Here's the email I got from your comment reply... looks good but the strong tag came through !


Support site for LampCMS project to sk
show details 5:54 AM (3 hours ago)

Dmitri  Snytkine has posted a reply to your comment
You comment was:
============================
and another test comment here..  <strong> test test test </strong>
============================

This is the reply:
============================
Let me know if you receive the email notification because I replied to
your comment here.
============================

Visit this url to see the answer with the new comment:

http://support.lampcms.com/q916/#c932 

----
You can change your email preferences by signing in to
site http://support.lampcms.com  and navigating to Settings > Email preferences


flag
answered June 14, 2011 at 8:11 AM
note.. I don't see the span tag in the comment email.. so ignore that.. but I do see strong tag in the email body..
flag
Jun 14 '11 at 8:12
Very good. Thank you. I'll fix this issue now.
flag
Jun 14 '11 at 9:16
done.. email looks very good now IMO
flag
Jun 14 '11 at 9:26
1
 
I still don't have enough reputation to comment so I'll try to explain
If there are many comments the comment it was replied to goes of the screen and you don't see that it gets highlighted.
So sorry to say, good idea but it doesn't work.
flag
answered June 16, 2011 at 12:06 AM
Yes, but in such case you should click on the reply link then both will stay highlighted - you can then scroll up and see the highlighted comment. Clicking on it again will unhighlight them again.
flag
Jun 16 '11 at 6:35
0
 
Everything looked good, I also updated the Email Notifier script to notify original commentor when someone replies to their comment.
I pushed all the updates to github today, you can try it now.
flag
answered June 13, 2011 at 8:52 PM
1
and another test comment here.. test test test
flag
Jun 13 '11 at 23:05
@Steve King
Let me know if you receive the email notification because I replied to your comment here.
flag
Jun 14 '11 at 4:54

Your answer

Join with account you already have

FTTF

Preview

Alert