Blog comments are created from people commenting on your posts. After a person has commented, the author is sent an email notification. He can then login to FUEL and publish the comment (assuming the monitor_comments setting is set) and reply to the comment. Comments are powered by a blog_comments_model and have a grandparent class of MY_Model.
Below are the fields to fill out to submit a comment from the blog (note that author in this case refers to the comment and not the post):
author_name- the commentor's name author_email- the commentor's email address author_wesite- the commentor's website address
The Blog Settings module has several security options for comments:
- Akismet key - The Akismet antispam key to use for checking the validity of comments
- Allow comments - You have the option to allow comments at both a global settings level and at a per post level.
- Use captchas - Adds a captcha to the comment form
- Monitor comments - Sends an email to the author to publish the comments.
- Save spam - Whether to save comments marked as spam by Akismet or not
- Comment submission time limit - The time limit allow for multiple comment submission
- Comments time_limit - How the comment form for a post remains active after the creation date
The Comment Model Properties
The comment object model has the following properties:
- parent_id (parent comment id if it exists)
- published (returns 'yes' or 'no')
The Comment Model Methods
The comment object model has the following specific methods:
Returns the content of the comment.
Returns the post associate with the comment.
Returns boolean value whether the comment is considered a duplicate of an existing.
Returns a boolean as to whether the comment is by the post's author or not.
Returns a boolean as to whether the comment is a child of another comment.
Returns the comments author and link if a website was specified in the comment.
Returns a formatted version of the date of the comment. Takes a date format. Default is 'M d, Y'.