now ... what I want to do is extract the FIRST comment and display it where I have $Discussion->Comment of course $Discussion->Comment doesn't work it returns 0 - given this is only used on comment creation.
I've looked over the RSS2 default page becuase the RSS feed does exactly what I want ... but it has it's own set of functions to do the joins for the discussion manager.
I'm trying to write this as a theme rather than an extension ... am I hitting a brick wall? Is there anyway on the discussions page to reveal the comment associated with the discussion ... without me hacking the Vanilla.class.dis...files - which I don't want to go anywhere near!!
$Discussion->Comment is an object I think. You should try $Discussion->Comment->Body. But I do think you need to change te discussion retrievel statement, because it doesn't load the first comment object... If you don't want to hack, you can use the delegates to do it.
$discussion->comment always returns 0 .... I'm pretty sure I have to change the retrievel statement .... delegates you say? ...hmmm okay cool ... off to look up info on them Cheers