Author Topic: Reply to Comments / Nested Comments  (Read 3654 times)

0 Members and 1 Guest are viewing this topic.

Offline zhono

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Reply to Comments / Nested Comments
« on: January 16, 2013, 11:17:42 AM »
Is there a mod out there to do this? I'd like for a user to be able to hit a "Reply" button on any comment, to respond to it. The new comment would then appear under the first one as a response.

So it would be kind of like this:

-Mike
-Good photo.

-Joe
-Love this image
----Lisa
----Thanks, it's mine.
--------Joe
--------Well, good job then.

-Jay
-*troll* *troll* *troll*

-Jay
-I hate this image, it's ugly!

Rembrandt

  • Guest

Offline zhono

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Re: Reply to Comments / Nested Comments
« Reply #2 on: January 16, 2013, 10:25:25 PM »
Thanks for the reply.

I've tried your quote mod, but it doesn't do what I'm looking for. I don't actually need to quote the comment, but when I reply to a comment, I want the entire comment to be show under the comment that was replied to, instead of at the bottom. Is there a way I can make your mod do that? Your mod doesn't change anything in the database, and I'm pretty sure there would need to be something to mark a comment as regular or reply, so it can be rendered differently.

Of course I'm probably wrong, and I just don't understand how to make it work.

*EDIT* Basically, I'm rebuilding my template. My HTML for the comments section looks like in the attached image. I'm trying to figure out how to get the comments to render out in that way.


*EDIT2* Nevermind. Took a while, but I managed to code it myself, using your mod as an example. Mods, feel free to delete this thread.
« Last Edit: January 17, 2013, 06:45:23 AM by zhono »