Comments Changelog

Comments is on version 0.4.9, released on Nov 05, 2017

  • theicons.co/svg/photo-09 Created with Sketch. 29 New features
  • theicons.co/svg/others-47 Created with Sketch. 22 Improvements
  • theicons.co/svg/home-36 Created with Sketch. 49 Bug fixes

0.4.9 - Latest Release

Released Nov 05, 2017

  • theicons.co/svg/home-36 Created with Sketch.

    Minor fix for sidebar icon.

0.4.8

Released Oct 18, 2017

  • theicons.co/svg/photo-09 Created with Sketch.

    Verbb marketing (new plugin icon, readme, etc).

  • theicons.co/svg/photo-09 Created with Sketch.

    Add plugin settings variable.

  • theicons.co/svg/others-47 Created with Sketch.

    Improved onTrashComment and onBeforeTrashComment events.

  • theicons.co/svg/others-47 Created with Sketch.

    Swap comment output macro for native {% nav %} tag - better supports element queries such as level.

0.4.7

Released Oct 10, 2016

  • theicons.co/svg/home-36 Created with Sketch.

    Fixed template error for permissions settings for Craft Personal/Client versions.

  • theicons.co/svg/home-36 Created with Sketch.

    Fixed EntryModel.owner issue where checking for non-entry elements being commented on.

0.4.6

Released Sep 24, 2016

  • theicons.co/svg/photo-09 Created with Sketch.

    Added ability to disable spam checks.

  • theicons.co/svg/home-36 Created with Sketch.

    Fixed support for adding comments to non-entry elements.

  • theicons.co/svg/home-36 Created with Sketch.

    Fixed typo in edit comment controller action.

0.4.5

Released Sep 03, 2016

  • theicons.co/svg/photo-09 Created with Sketch.

    Added support to permanently delete comment from within the CP.

  • theicons.co/svg/photo-09 Created with Sketch.

    Added user permissions to allow edit or trash of comments for other users.

  • theicons.co/svg/photo-09 Created with Sketch.

    Added canEdit() and canTrash() method to Comment Model.

  • theicons.co/svg/others-47 Created with Sketch.

    Changed current 'delete' terminology to 'trashed', which is technically more correct.

  • theicons.co/svg/others-47 Created with Sketch.

    onBeforeDeleteComment event changed to onBeforeTrashComment.

  • theicons.co/svg/others-47 Created with Sketch.

    onDeleteComment event changed to onTrashComment.

  • theicons.co/svg/others-47 Created with Sketch.

    deleteActionUrl template action is now trashActionUrl.

  • theicons.co/svg/others-47 Created with Sketch.

    comments/delete controller action is now comments/trash. Raises a deprecation notice.

  • theicons.co/svg/others-47 Created with Sketch.

    Commenting permissions now only support native Craft elements.

  • theicons.co/svg/home-36 Created with Sketch.

    Fixed case where another logged in user could edit/save/delete comments from another user.

  • theicons.co/svg/home-36 Created with Sketch.

    Fixed permissions errors when checking for elements.

0.4.4

Released Jun 24, 2016

  • theicons.co/svg/home-36 Created with Sketch.

    Fixed issue with comments index showing comment id, not user name.

  • theicons.co/svg/home-36 Created with Sketch.

    Move Save Comment button above content on edit comment page (for consistent Craft behaviour).

0.4.3

Released Jun 24, 2016

  • theicons.co/svg/photo-09 Created with Sketch.

    Permissions to control when elements are comment-able.

  • theicons.co/svg/photo-09 Created with Sketch.

    New fieldtype to provide element-specific control on commenting.

  • theicons.co/svg/photo-09 Created with Sketch.

    Added support for craft.spamguard.

  • theicons.co/svg/home-36 Created with Sketch.

    Fixed error in comments element index - introduced in 0.4.2.

0.4.2

Released Apr 03, 2016

  • theicons.co/svg/photo-09 Created with Sketch.

    Added element attribute to CommentModel.

  • theicons.co/svg/photo-09 Created with Sketch.

    Added parent attribute to CommentModel.

  • theicons.co/svg/photo-09 Created with Sketch.

    Added comment attribute to FlagModel.

  • theicons.co/svg/photo-09 Created with Sketch.

    Added user attribute to FlagModel.

  • theicons.co/svg/photo-09 Created with Sketch.

    Added comment attribute to VoteModel.

  • theicons.co/svg/photo-09 Created with Sketch.

    Added user attribute to VoteModel.

  • theicons.co/svg/others-47 Created with Sketch.

    Code formatting.

0.4.1

Released Apr 03, 2016

  • theicons.co/svg/photo-09 Created with Sketch.

    Added author attribute to CommentModel.

  • theicons.co/svg/photo-09 Created with Sketch.

    Added isGuest() method to CommentModel.

  • theicons.co/svg/photo-09 Created with Sketch.

    Added email notifications for element authors and for other commenters when replying.

  • theicons.co/svg/others-47 Created with Sketch.

    Comments are now a little tidier in the element index table.

  • theicons.co/svg/others-47 Created with Sketch.

    Filter via Status in control panel.

0.4.0

Released Mar 17, 2016

  • theicons.co/svg/photo-09 Created with Sketch.

    Craft 2.5+ support, including release feed and icons.

  • theicons.co/svg/photo-09 Created with Sketch.

    Comments can now be edited through the front-end.

  • theicons.co/svg/photo-09 Created with Sketch.

    Added support for querying comments via votes

  • theicons.co/svg/others-47 Created with Sketch.

    Reorganise settings pages - separate flag/voting.

  • theicons.co/svg/others-47 Created with Sketch.

    Flagging comments and voting can be enabled/disabled altogether.

  • theicons.co/svg/others-47 Created with Sketch.

    Comments now require moderation by default.

  • theicons.co/svg/others-47 Created with Sketch.

    Lots of refactoring and reorganising.

  • theicons.co/svg/others-47 Created with Sketch.

    Removed Comments fieldtype.

  • theicons.co/svg/others-47 Created with Sketch.

    Comments are shown in hierarchical structure when in control panel.

  • theicons.co/svg/others-47 Created with Sketch.

    Full ajax and non ajax support for endpoints.

  • theicons.co/svg/others-47 Created with Sketch.

    Renamed comments/add to comments/save.

  • theicons.co/svg/home-36 Created with Sketch.

    Fixed comments/edit endpoint to include validation/security.

  • Templates

  • theicons.co/svg/others-47 Created with Sketch.

    Simplified and improved templates for single template tag.

  • theicons.co/svg/others-47 Created with Sketch.

    Simplified example code for ajax and non ajax handling.

  • theicons.co/svg/others-47 Created with Sketch.

    Comment forms handle validation properly, actual error messages and remembers text on validation.

  • Hooks

  • theicons.co/svg/photo-09 Created with Sketch.

    Added onBeforeSaveComment hook.

  • theicons.co/svg/photo-09 Created with Sketch.

    Added onSaveComment hook.

  • theicons.co/svg/photo-09 Created with Sketch.

    Added onBeforeDeleteComment hook.

  • theicons.co/svg/photo-09 Created with Sketch.

    Added onDeleteComment hook.

  • theicons.co/svg/photo-09 Created with Sketch.

    Added onBeforeFlagComment hook.

  • theicons.co/svg/photo-09 Created with Sketch.

    Added onFlagComment hook.

  • theicons.co/svg/photo-09 Created with Sketch.

    Added onBeforeVoteComment hook.

  • theicons.co/svg/photo-09 Created with Sketch.

    Added onVoteComment hook.

0.3.8

Released Jan 01, 2016

  • theicons.co/svg/home-36 Created with Sketch.

    Fixes for field settings messing things up. Notice The Comments fieldtype will soon be removed in favour of centralized permissions.

  • theicons.co/svg/home-36 Created with Sketch.

    Other bugfixes and improvements.

  • theicons.co/svg/home-36 Created with Sketch.

    Ensure works well on Craft Client/Craft Personal.

0.3.7

Released Jan 01, 2016

  • theicons.co/svg/home-36 Created with Sketch.

    Added the ability to get total comments per element id using {{ craft.comments.total(elementId) }}.

0.3.6

Released Jan 01, 2016

  • theicons.co/svg/home-36 Created with Sketch.

    Added security measures. You can now provide values to check against all attributes of a comment and action accordingly. Comments can be marked as pending, spam, or simply not allowed to be submitted. See Security

  • theicons.co/svg/home-36 Created with Sketch.

    Support sorting comments by votes.

  • theicons.co/svg/home-36 Created with Sketch.

    Added optional flood-control settings. Enforces minimum time to wait between posts. Works for anonymous and logged-in users.

0.3.5

Released Jan 01, 2016

  • theicons.co/svg/home-36 Created with Sketch.

    Added Schema Tags to templates (see #19).

0.3.4

Released Jan 01, 2016

  • theicons.co/svg/home-36 Created with Sketch.

    Added threshold for downvotes - if over specified limit, isPoorlyRated will be true.

  • theicons.co/svg/home-36 Created with Sketch.

    Comments can be set to auto-close after a defined amount of days since the elements creation.

0.3.3

Released Jan 01, 2016

  • theicons.co/svg/home-36 Created with Sketch.

    Altered settings pane - now with multiple tabs.

  • theicons.co/svg/home-36 Created with Sketch.

    Updated permissions UI.

  • theicons.co/svg/home-36 Created with Sketch.

    Comments can be closed, disabling editing, deleting and replies. Accessible through isClosed.

0.3.2

Released Jan 01, 2016

  • theicons.co/svg/home-36 Created with Sketch.

    Added basic sharing comment options. Provides permalink, Twitter and Facebook sharing.

0.3.1

Released Jan 01, 2016

  • theicons.co/svg/home-36 Created with Sketch.

    Organise examples seperately. Better testing locally (symlinks).

  • theicons.co/svg/home-36 Created with Sketch.

    Added standard, non-Ajax example.

  • theicons.co/svg/home-36 Created with Sketch.

    Cleanup Ajax example - refactor.

  • theicons.co/svg/home-36 Created with Sketch.

    Checked all routes perform either via Ajax, or standard POST.

0.3.0

Released Jan 01, 2016

  • theicons.co/svg/home-36 Created with Sketch.

    Added edit/delete (trashing) for users. Anonymous users can't do either.

  • theicons.co/svg/home-36 Created with Sketch.

    Added new set of templates for different comment statuses, allowing different templates for pending, approved, trashed and spam comments.

  • theicons.co/svg/home-36 Created with Sketch.

    Cleaned up comments UI to include dropdown options. Better user-handling.

  • theicons.co/svg/home-36 Created with Sketch.

    Alter Ajax example, ajax for voting, flagging, editing, deleting.

  • theicons.co/svg/home-36 Created with Sketch.

    Fixed, users could vote on their own comments.

  • theicons.co/svg/home-36 Created with Sketch.

    Fixed, remove voting arrows when unable to vote.

  • theicons.co/svg/home-36 Created with Sketch.

    Added canVote, canUpVote, canDownVote variables for better handling in templates. Checks are also done server-side.

  • theicons.co/svg/home-36 Created with Sketch.

    Some serious spelling mistakes for voting functions :)

  • theicons.co/svg/home-36 Created with Sketch.

    Added back voteCount.

0.2.1

Released Jan 01, 2016

  • theicons.co/svg/home-36 Created with Sketch.

    Seperated plugin settings to its own 'real' tab. Bad UX being directed off to plugin settings, then being redirected to plugins screen.

  • theicons.co/svg/home-36 Created with Sketch.

    Added Permissions to control elements (and element types) comments are allowed to be made on. More convenient/centralised that custom field for each element.

0.2.0

Released Jan 01, 2016

  • theicons.co/svg/home-36 Created with Sketch.

    Preserve comment formatting. Changed comment field to textarea in templates.

  • theicons.co/svg/home-36 Created with Sketch.

    Comments have access to objects for flags and votes. Removed flagCount and votesCount in favour of using length Twig filter.

0.1.2

Released Jan 01, 2016

  • theicons.co/svg/home-36 Created with Sketch.

    Added support for comments to be made on any element type (entries, users, assets, etc).

0.1.1

Released Jan 01, 2016

  • theicons.co/svg/home-36 Created with Sketch.

    Added support for voting on comments.

  • theicons.co/svg/home-36 Created with Sketch.

    Added support for flagging inappropriate comments.

  • theicons.co/svg/home-36 Created with Sketch.

    After set amount of flags made against a comment, the 'isFlagged' property on the comment is true. Configurable through settings.

0.1.0

Released Jan 01, 2016

  • theicons.co/svg/home-36 Created with Sketch.

    Initial beta release.

Get started with Comments

Available for Craft 2 & Craft 3.