Add a new comment to this piece of content.
The new comment will be owned by $POD->currentUser().
$content->addComment('This content sucks!!');
Of note, add comment causes $Content->comments() to reload itself automatically, so the new comment will be present in the stack immediately.
Comments can be assigned an arbitrary "type" field, though custom stack queries will have to be built to utilitize this field...
$content->addComment('This is great!','review'); $content->addComment('What is going on?','question');
(To remove a comment, use $Comment->delete())
Recent Posts from Our Blog
The latest version of PeoplePods is now available for download! This version features a drastically revamped theme which is now valid HTML5, a completely rewritten JSON-powered API, many...
An interview I did with OpenSource.com is now online! Read it here. In it, I discuss how running an online community is like throwing a giant, never-ending party, how open source techniques...
Recently Updated Documentation
Recent Posts from The Forum
0 comments | 16 days ago
confirmation code does not work. I got an email with the link to confirm my account I clicked on the link and also added the confirmation code to...
1 comment | 21 days ago
1 comment | 5 weeks ago
0 comments | 6 weeks ago