Closed (fixed)
Project:
Node Comments
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 May 2008 at 09:55 UTC
Updated:
9 May 2010 at 19:35 UTC
Hi,
I would like to get to the body of the nodecomment node (CID) from the related NID.
I see them both in the node_comments table.
Do you have a function to get to the body of the CID from the related NID or if not, may be somewhere the SQL statements for it?
I want to use this to upgrade the nodeforum module (which I have for 90% ready).
Thanks in advance for your reply!
greetings,
Martijn
Comments
Comment #1
sirkitree commentedActually, in the D6 updgrade of nodecomment, I created a views_handler_relationship that takes care of pulling in the node body of the comments related to a node. I appologise for not having the code committed yet, but will have it on tuesday (it's on my work machine). Or you can take apart comment.views.inc that is llocated in the modules folder of views2 and figure it out from that.
Good luck, or patience,
~Jerad ;)
Comment #2
summit commentedHi Jerad,
Will this code please also be ported to drupal 5?
Thanks for considering this!
greetings,
Martijn
Comment #3
andrewlevine commentedSummit, I have also been working on porting nodeforum to D6. Are you interested in sharing work? You can reach me with my account's contact form.
Comment #4
crea commentedD5 branch is not supported anymore. Closing.
Please reopen if the issue is relevant with Nodecomment 6.x-2 branch.