The Comments plugin lets users to add comments to CMS Pages, Static Pages or Blog Post pages with ease. Users can login with RainLab.User plugin or post comment as a guest. The plugin supports Markdown syntax. Users can edit, delete and reply to comments.
The second version of plugin has an important updates that contains breaking changes!
If you have some problems or you want more functionality, please make a topic in the support section and I will try to add or modify the plugin functions.
If you like this plugin, please leave a review. Thank you!
You Can Download The Previous Version Of The Comments Plugin Here!
Installation
- Add Comments plugin to a project.
- Add the Comments component to a page where you want to display comments and the comments form.
Backend
In the back-end user interface you can delete, hide or show comments.
Variables available in templates
-
{{ comments }}
- comments list. -
{{ comment }}
- one comment. -
{{ comment.id }}
- comment id. -
{{ comment.user_name }}
- author. -
{{ comment.name }}
- guest name. -
{{ comment.user_avatar }}
- avatar. -
{{ comment.mail }}
- guest mail. -
{{ comment.homepage }}
- guest homepage. -
{{ comment.published_at }}
- published on. -
{{ comment.content_html }}
- html content. -
{{ comment.content }}
- text content. -
{{ comment.hostname }}
- user ip address. -
{{ user }}
- current user. -
{{ user.id }}
- current user id. -
{{ user.name }}
- current user name. -
{{ comments_number('example-page') }}
- displays the total number of comments for the current page.
JavaScript
Plugin uses comments.js file that provides animation and some actions:
- create comment -
onComment()
- edit comment -
onEditComment()
- delete comment -
onDeleteComment()
- append new comment or replace -
afterSubmit($el, context, data, textStatus, jqXHR)
- cancel commenting
- reply
-
Yadda
Found the plugin useful on 14 Jun, 2020
I would like to be able to turn off anonymous commenting and voting.
I know I can do that through the theme. But it would be much easier if that were included in this plugin. :)
Everything works as intended.
-
Paolo M
Found the plugin useful on 26 Feb, 2019
It works fine. Great plugin!
-
Rino
Found the plugin useful on 17 Aug, 2018
It's great plugin and the product support is awesome!
-
OFFLINE
Found the plugin useful on 8 Jun, 2018
Great plugin!
-
Muhammet KÜÇÜK
Found the plugin useful on 5 May, 2017
It's a nice plugin. I'll translate it to Turkish for myself .I can mail you then, if you're interested :)
-
Sozonov Alexey author
Replied on 6 May, 2017
Yes! It will be great! Can you create a new issue here and attach a file?
-
Maxim Geras
Found the plugin useful on 21 Apr, 2017
Good!) Pleas integreat with lang plugin ))))))
-
Sozonov Alexey author
Replied on 21 Apr, 2017
Ok!
-
lee holmes
Found the plugin useful on 3 Apr, 2017
Looks great, much more preferable over the embedded forum topic method that is usually used for comments, however I'm getting an error at the moment: "call to a member function lastPage() on null" on line 187. Comments aren't being saved
-
Sozonov Alexey author
Replied on 3 Apr, 2017
-
Tyson Rude
Found the plugin useful on 14 Jun, 2016
When I submit a comment I get "AJAX handler 'onComment' was not found." Any suggestions?
-
Sozonov Alexey author
Replied on 14 Jun, 2016
Thank you for review! Can you create support ticket?
> "AJAX handler 'onComment' was not found."
Did you add the component to page?
-
Michael Burke
Found the plugin useful on 28 Aug, 2015
I bought this plugin as it was stated that it worked with the RainLab.Blog and Pages plugins - which is what my site is built on. And I'm so glad I bought it because that's exactly what it does. Like everything with October it's a dream to use and simple enough to extend to suit my own needs.
In my personal opinion this should be bundled in with those plugins mentioned or October itself. It really is that good.
-
Sozonov Alexey author
Replied on 31 Aug, 2015
Thank you for review!
-
2019.02.3 |
Improvements. Feb 14, 2019 |
---|---|
2019.02.2 |
Fixes issue with nested tree. Feb 12, 2019 |
2019.02.1 |
Add "Show all replies" button and form validation. Feb 09, 2019 |
2018.10.2 |
Fixes issues. Oct 21, 2018 |
2018.10.1 |
Fixes issue with replies. Oct 13, 2018 |
2018.8.2 |
Fixes issue with slug property. Aug 17, 2018 |
2018.8.1 |
Replies can now be showed on the same page as comment. Aug 06, 2018 |
2018.7.2 |
Fixes issue with replies order. Aug 01, 2018 |
2018.7.1 |
Fixes issue with comments order. Jul 31, 2018 |
2018.6.7 |
Fixes issues with foreach loop. Jun 06, 2018 |
2018.6.6 |
Fixes issues with votes. New versioning scheme. Jun 06, 2018 |
2.0.6 |
Fixed issue with redirect. May 07, 2017 |
2.0.5 |
Added "comments_number()" function. Apr 24, 2017 |
2.0.4 |
Fixed issue with migration. Apr 07, 2017 |
2.0.3 |
Fixed issue with saving. Apr 06, 2017 |
2.0.2 |
Fixed issue with "Class Auth not found". Apr 04, 2017 |
2.0.1 |
Minor user interface update. Mar 13, 2017 |
2.0.0 |
Added pagination. Feb 13, 2017 |
1.1.1 |
Fixes issues Dec 15, 2015 |
1.0.1 |
Fixes XSS Danger issue Oct 26, 2015 |
1.0.0 |
First version Mar 04, 2015 |
The second version of plugin has an important updates that contains breaking changes!