Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Detect number of new comments in a discussion

edited January 2007 in Vanilla 1.0 Help
how can I detect the number of new comments in a discussion for a user.

I've tried it with this:
$DiscussionManager = $this->Context->ObjectFactory->NewContextObject($this->Context, 'DiscussionManager'); $Discussion = $DiscussionManager->GetDiscussionById(45); echo $Discussion->NewComments;
but it doesn't work


  • Options
    can nobody help me
  • Options
    works for me. what are you using this in? could vanilla not be recognizing that a user is logged in?
  • Options
    oh for me too, I had an error on getting the DiscussionID...
  • Options
    did you managed to get discussionID? I'm also having difficulties on getting it...
This discussion has been closed.