Addpixel / KirbyComments

[Kirby 2] File-based comments stored as subpages for the Kirby CMS.
MIT License
68 stars 5 forks source link

Moderate Comments (in Panel?) #1

Open gerritvanaaken opened 8 years ago

florianpircher commented 8 years ago

I think the best solution would be to create a custom dashboard widget listing new comments and providing quick actions to moderate each comment individually. Kirby seems to have a great API for creating custom widgets.

florianpircher commented 8 years ago

This is my first prototype of the dashboard widget. It shows the name of the commentator, the title of the page and the date of the comment as well as the message of the comment as tooltip. bildschirmfoto 2016-03-29 um 18 16 07

gerritvanaaken commented 8 years ago

Looks good. The icon on the left represents the status of the comment "pending, online, spam, rejected"?

florianpircher commented 8 years ago

Thanks! The icon on the left is used for the quick-actions context menu (same as the pages widget). For now, this is a moderate comments plugin, which shows only unmoderated comments. You can mark comments as spam, delete them or make them public. Currently the biggest problem is that Kirby is not offering a public API for showing the context menu, so I’d have to code my own and mimic the look & feel of the original menu.

florianpircher commented 8 years ago

Status Update:

2016-04-10 12_07_19

gerritvanaaken commented 8 years ago

Awesome!

florianpircher commented 8 years ago

OK, this is as much as I can implement for now, Kirby 2.4 will allow plugins to have their own custom actions (Approve/Spam/Delete).

Thiousi commented 8 years ago

That's great! Looking forward to testing this the next time I need a comment plugin on a project!

francoisromain commented 7 years ago

thank you for this cool plugin. Any update on the moderation panel?

florianpircher commented 7 years ago

It seams like Kirby v2.4 does not provide the functionality necessary to implement this feature. The markup for the widget is ready, but as long as there is no official API for widgets to talk to their plugin-core I am not able to implement the interaction layer.

FloWachter commented 6 years ago

How can I delete a comment over PHP ?

florianpircher commented 6 years ago

@Rastabob please open a new issue for your question so that it can be referenced