4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: zhono on January 16, 2013, 11:17:42 AM

Title: Reply to Comments / Nested Comments
Post by: zhono 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!
Title: Re: Reply to Comments / Nested Comments
Post by: Rembrandt on January 16, 2013, 01:25:43 PM
http://www.4homepages.de/forum/index.php?topic=29664.0

mfg Andi
Title: Re: Reply to Comments / Nested Comments
Post by: zhono 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.