Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Moderate Comments (in Panel?) #1

Open
gerritvanaaken opened this issue Mar 23, 2016 · 12 comments
Open

Moderate Comments (in Panel?) #1

gerritvanaaken opened this issue Mar 23, 2016 · 12 comments
Assignees
Projects

Comments

@gerritvanaaken
Copy link

No description provided.

@florianpircher
Copy link
Member

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 florianpircher self-assigned this Mar 26, 2016
@florianpircher
Copy link
Member

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
Copy link
Author

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

@florianpircher
Copy link
Member

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
Copy link
Member

Status Update:

2016-04-10 12_07_19

@gerritvanaaken
Copy link
Author

Awesome!

@florianpircher
Copy link
Member

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
Copy link

Thiousi commented Jun 18, 2016

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

@francoisromain
Copy link

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

@florianpircher
Copy link
Member

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 florianpircher added this to the 1.2.0 milestone Dec 7, 2016
@florianpircher florianpircher modified the milestones: 1.3.0, 1.4.0 Mar 20, 2017
@florianpircher florianpircher removed this from the 1.4.0 milestone Jun 25, 2017
@florianpircher florianpircher added this to To Do in 2.0.0 Aug 11, 2017
@FloWachter
Copy link

How can I delete a comment over PHP ?

@florianpircher
Copy link
Member

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
2.0.0
To Do
Development

No branches or pull requests

5 participants