KirbyComments icon indicating copy to clipboard operation
KirbyComments copied to clipboard

Moderate Comments (in Panel?)

Open gerritvanaaken opened this issue 8 years ago • 12 comments

gerritvanaaken avatar Mar 23 '16 07:03 gerritvanaaken

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 avatar Mar 26 '16 10:03 florianpircher

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

florianpircher avatar Mar 29 '16 16:03 florianpircher

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

gerritvanaaken avatar Mar 30 '16 06:03 gerritvanaaken

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 avatar Mar 30 '16 09:03 florianpircher

Status Update:

2016-04-10 12_07_19

florianpircher avatar Apr 10 '16 10:04 florianpircher

Awesome!

gerritvanaaken avatar Apr 11 '16 08:04 gerritvanaaken

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).

florianpircher avatar May 06 '16 14:05 florianpircher

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

Thiousi avatar Jun 18 '16 16:06 Thiousi

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

francoisromain avatar Nov 16 '16 13:11 francoisromain

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.

florianpircher avatar Nov 17 '16 10:11 florianpircher

How can I delete a comment over PHP ?

FloWachter avatar Jul 07 '18 17:07 FloWachter

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

florianpircher avatar Jul 07 '18 17:07 florianpircher