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

sirkitree’s picture

Actually, 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 ;)

summit’s picture

Hi Jerad,
Will this code please also be ported to drupal 5?
Thanks for considering this!
greetings,
Martijn

andrewlevine’s picture

Summit, 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.

crea’s picture

Status: Active » Closed (fixed)

D5 branch is not supported anymore. Closing.
Please reopen if the issue is relevant with Nodecomment 6.x-2 branch.