Open sozzled opened 12 years ago
If the Kunena team wants to include this feature I would like to participate in building this.
My suggestion is to make a option (on/off) in the backend and a textfield where the user can enter the category id of the forum category where the reported post topic will be placed. This way you can turn it on/off by leaving the category id in place. Another option would be to only add a category id field. When a category id is entered Kunena will add a post in that category when a post is reported.
Example layout of the created topic after a report: Subject: (Repoted by username) (Topic title or Report subject) Body: (Repoted by username with link to the user profile) (Report subject) (Report body)
(Post title) (Post body)
Please let me know what you think.
There are actually a few different approaches which can taken on the reports. Maybe we should just build hooks to catch the reports and create plug-ins that you can use on them -- allowing people to define how they would like the feature to work.
Here are few possibilities: 1) email to moderators 2) pm to moderators (by using your favorite PMS) 3) create a topic to specific moderation category 4) mark message to be reviewed (unpublishing it) 5) use combination of above or create something else
That sounds even better! Matias (or someone else) can you get me up te speed on how to build hooks for plugins? I try to crawl through the code in the lib folder tonight to find out more, but it would really help to get a short explanation.
To hook to a plugin you need to find the function where the mails are sent and put something to call a plugin, you can find exemples in some places in Kunena.
Thanks xillibit. The function is in components/com_kunena/controllers/topic.php and is called 'report'. I tried to understand how to "put something to call a plugin". I found samples, but can not understand how it works. Can you help on that part?
I need to think about it. Currently sending emails is hard coded into our code, but I would change that and deal with it in our Joomla-alike events: onAfterSave etc..
Reviewing Matias' comments earlier:
1) email to moderators - this is the way things currently work 2) pm to moderators (by using your favorite PMS) - interesting approach but, when you also have to factor-in people's preferences. If, for example, you have 10 moderators in a forum, and only one of them actually uses PM on a regular basis, this would be a waste of time. 3) create a topic to specific moderation category - that's what the request was all about. I would not use the term "moderation category"; I would, instead, use the term "category for moderators to use". 4) mark message to be reviewed (unpublishing it) - very interesting approach and it could have great benefits. Wrongly used, however, it could spell disaster for a forum. In effect, any posting could be removed from a forum by any body thereby resulting in frustration for the people whose messages are removed and the resultant additional workload for the forum moderators. This feature could only be used on forums where the web community was supportive and mature enough to act responsibly. This could not work at K.org, for example. 5) use combination of above or create something else
Maybe I have an idea to minimize the workload a bit.
If (for now) te hook can be available to create plugins using the Joomla-alike events that would be awesome! The hard coded mail can then be moved to a default plugin?
This way people can build there own plugins for reported posts and they can choose to disable the default plugin that sends the mail. If someone build one of the above options it can be implemented as a default plugin. I will try my best to contribute building the plugins.
The "mark for review" can then be a next stage future.
hello i wanted to ask if this function is planned? that would be great...
This issue is stale because it has been open 30 days with no activity.
Interesting idea suggested in http://www.kunena.org/forum/K20-Developers-Talk/124823-automatically-create-topic-in-moderator-forum-when-user-reports-a-post