Questions tagged [threaded-comments]

51 questions
24
votes
1 answer

Django - proper way to implement threaded comments

I'm developing a blog site using Django. My site will allow users to comment on any of my blog posts and also reply to each other and will be displayed using a 'threaded comments' structure (I haven't started user functionality yet, just comments).…
Bryan Hinchliffe
  • 529
  • 1
  • 4
  • 14
15
votes
4 answers

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…
Willem Obst
7
votes
2 answers

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…
Anton N
  • 513
  • 1
  • 4
  • 9
6
votes
3 answers

Recursive blocks in Scala Play Framework templates

I'm writing a template for a blog post, which has threaded comments. A natural way of writing a template for threaded comments it use a recursive way for constructing the Html. Something like this: @showComment(comment: models.Comment) = {
Felipe Hummel
  • 4,674
  • 5
  • 32
  • 35
5
votes
2 answers

OpenXML in Microsoft Excel for Comments

I am running the latest Office 365 Excel version, 1901. I have updated to the latest OpenXml SDK but am unable to figure out how to programmatically read information about threaded comments, as all I'm seeing is a full summary comment. Even using…
Nexxas
  • 883
  • 1
  • 8
  • 14
5
votes
1 answer

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…
twampss
  • 1,287
  • 2
  • 12
  • 13
4
votes
3 answers

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…
Hula
  • 219
  • 1
  • 4
  • 11
4
votes
0 answers

Django threaded comments with up/down-voting (like Hacker News or Reddit)

I'm new to Django. I'm trying to build a discussion app in Django that, like Reddit and Hacker News, is fully threaded and sorts each comment by up/down vote. I've been using the django-voting app, and would like to continue using it if at all…
Jake
  • 809
  • 1
  • 8
  • 18
4
votes
6 answers

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 …
J. Holmes
  • 55
  • 1
  • 7
3
votes
4 answers

Django threadedcomments - how do I reply to a comment?

I am trying to integrate threadedcommetns to my Django app and having trouble in uderstanding how it works. Here is how my template looks (based on example from tutorial):

Comments on This Post:

{% get_threaded_comment_tree for post as tree…
Silver Light
  • 44,202
  • 36
  • 123
  • 164
3
votes
1 answer

PHP Threaded comments pagination

I'm using the threaded comment from http://www.jongales.com/blog/2009/01/27/php-class-for-threaded-comments/ and I have no idea how to implement a pagination system. If anybody could point me in a direction or something because I search for a…
Netra
  • 338
  • 7
  • 29
2
votes
1 answer

Use VBA to @-Mentions a user in a Threaded Comment in excel

I added a UserForm into my file so comments can be added to a cell (that way I can update the data on other cells when a comment is added and someone is mentioned). So far I can get the comment entered with no issues. But I can´t find a way to…
Mad Robb
  • 23
  • 4
2
votes
1 answer

asp.net threaded comments?

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…
anon445699
2
votes
1 answer

Unable to assign a parent id to nested comments, using Ancestry gem (ruby on rails)

I am creating nested comments (like you find on Reddit). I am able to create parent comments, but when I try to create a child comment, it simply renders as a parent comment. In my rails console, the "ancestry" field comes back "nil". This is my…
1
2 3 4