threaded-comments

How to build a threaded Comment System in C#? Help...

Hey All, Im building a Threaded Comment System for a website of mine and I ran into a problem... I have a list PULLED FROM A DATABASE that has a ID field and a Parent ID Field. The parent ID field can be null, but the ID field will NEVER be null. Since this will be a threaded comment system, I organize the list to where the ID is the...

How to build an ASP.NET TreeView From Scratch...?

Hey all, I am trying to build a nested/threaded comment system in ASP.NET. I don't know how the PHP guys do it. Its much harder than first imagined. I am trying my damnedest get Hierarchical data to output to the user, but its not working. I have a table with text, a itemID and a parentID. I want to display the information in a t...

Reddit-style nested/threaded/indented comments for Rails?

I'm wondering if someone has already built a system for threaded comments (for lack of a better term) in Rails or if I need to build it myself. In case it's not clear, what I'm referring to is a comment system like Reddit's that automatically indents replies so that they appear like branches of a tree (preferably with voting just as Re...

Most efficient data structure to represent threaded comments in Java?

I want to represent threaded comments in Java. This would look similar to the way comments are threaded on reddit.com hello hello hello hello hello hello hello As in the example above, responses are nested in the HTML with appropriate indentation to reflect their relationship to prior comments. What would b...

Modified preorder traversal for comment system

Hi, I'm trying to make a comments system for a blog. I have the modified preorder traversal system working (used this guide: http://dev.mysql.com/tech-resources/articles/hierarchical-data.html). I have a few issues though. I do not think that guide explains how to manage having different blog posts, and adding a comment that is not a re...

Need advice on html/css structure for indented, threaded comments

I want to have a comments section in my app that looks like this: response1 response1a response1b response1b1 response2 response2a response2b response2c response2c1 response2c1a response2c1a1 response2c1a1 response2c1a1a response2c1a1a1 I believe it's called threaded comments. You've probably seen thi...

Is there native support in Rails or Ruby for representing threaded comments

I want to have a comments section in my app that looks like this: response1 response1a response1b response1b1 response2 response2a response2b response2c response2c1 response2c1a response2c1a1 response2c1a1 response2c1a1a response2c1a1a1 Assuming I do this by using HTML such as the following: <div cla...

How to build Threaded comments with a 1 or 2 queries?

Can anyone suggest a creative database structure + fetching algorithm for a threaded comments system, that would output x amount of threads per page (with unlimited replies for each)? I can run a query to get the threads, and in each instance of a loop, run another query to echo out the replies.... but that's a bad idea. ...

Are there any website comments systems available (like phpbb for forums)?

I'm looking to add comments to my website. I've seen some great frameworks for forums (like phpbb) and for blogs (like wordpress). Is there anything like this for comment systems? ...

CakePHP find('threaded') pagination

Hi, I'm kind of new to cakePHP and get to the moment where i have to do pagination. The comments table has a parent_id and the threaded query is working correctly so now, I want to paginate the results. My problem is the limited sql query affects all the retrieved comments and I only want to limit the parent ones because the other way...

Scalable Solution For Threaded Comments

I'm not sure how to create a threaded comments system in PHP and MySQL which can handle hundreds of comments at a time. Something like this is the only thing I can come up with $query = execute_query...('SELECT * FROM `comments` WHERE `post` = "1"'); foreach($query as $comment){ $replies = execute_query...('SELECT * FROM `comment_r...

JavaScript code to handle comment folding (similar to Reddit's)?

I really like the way Reddit's comment system works - particulary the ability to smoothly fold/unfold a tree of comments. Is there some standard JavaScript code/library that does this? Or did Reddit develop this inhouse and is not portable? I'm fairly a beginner in JS, so browsing through Reddit's page source is not that helpful. ...

Django built-in signals problem: error when using post_save

Hello! I'm building an app that notifies user when new ThreadedComments appear. For this I'm using post_save signal. Here's my models.py: from django.db import models from django.contrib.auth.models import User from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes import generic from datetime impor...

What is the best practice for fetching a tree of nodes from database for further rendering?

Let's say we have a table with user comments. First-level comments have a reference to an article they are attached to. Deeper-level comments do not have this reference by design but they have a reference to it's parent comment. For this database structure - what would be the most efficient way to fetch all comments for a given article...

asp.net threaded comments?

Hi, I am working on creating a blog in asp.net 4.0 and sql server 2008 and would like to learn how to create a threaded comments system. By threaded I mean each comment would have a reply link and the comments are indented under the comment that it is a reply to. So, you can either respond to the article itself or reply to any of the com...

Threaded / Nested comments

Anyone know how to create a threaded / nested comment system? I would like to learn how to do this for my blog that I am working on. I simply can't find anything useful out there. Some one surely must know how its done. ...

Django threadedcomments and voting

I'm using django-threadedcomments and django-voting in my project to achieve a Reddit-like comments voting system. I've set everything up correctly and I'm able to successfully record votes for each threaded comment and its children, however I'm a bit stuck as to how to sort the comments so that the comment with the highest score rises ...

Django threaded comments - one level only

I'm looking at implementing django-threadedcomments and am wondering if it is able to restrict threading to replies made by a moderator/owner, similar to how Yelp handles user reviews and business owner replies. For example the comments would look like: "Comment 1" by User1 "Comment 2" by User2           "Reply 1" by Owner "Comment 3" ...