Forums: How exactly are replies linked to the topic post?
johlin23 - April 14, 2009 - 18:38
In Drupal forums, the topic post is a node but the replies are not. That means it's possible to use taxonomy to pick out topic posts, but not to do it for replies. So how exactly are the replies connected to the original topic post? Is it something I can access? Or is it embedded in the code. Thanks for the help!

_
Forum replies are just node comments. You don't mention how you want to access them, but they're available in views via views.
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.
vote count
I'm trying to get them so I can present them in views, sorted by their points (using Voting API). I can't pull them right now according to the vote count. I can with the topics, however.
_
Are the votes on the forum post or on the comments themselves?
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.
Votes are on both the post
Votes are on both the post and the comments. However, Views can only access the points on the forum posts (topics), because they are nodes. However, Views can't access the points on the comments (replies) because they aren't nodes. I'm using Voting API, btw. So yeah, I'm trying to use views to grab the replies, sorted by points.
An example (screenshot) is: Our topic has 4 points, the two comments below has 1, and then 2. So when we access the points for the comment, we only get 4, which is the node points. We can't get to the comment points themselves.
Thanks, and sorry if this was confusing or, on way over-repetitive, haha.
_
Views2 with d6 has access to non-node objects like comments, so if the votes are not available when you create a comment view, then it must be because the voting module you're using for enabling votes on comments doesn't integrate with views. Which module are you using?
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.
We've tried different voting
We've tried different voting modules, like Up/Down, Vote UpDown, but all with the same results.
If we were using a voting module that is integrated with views, how would we use views to get to the points? Like what settings?
And do you have a voting module (that is integrated) in mind?
Thank you for taking your time to help out, by the way.
_
I use fivestar with votingapi-- i took a look at the fivestarextra module, which adds support for comment ratings, but according to http://drupal.org/node/349287, it doesn't expose its data to views.
However, i did find http://drupal.org/node/432540 in the vote_up_down issue queue-- might be worth a try.
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.