MyBB Community Forums

Full Version: Hooking into report center
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a custom plugin that has a report function. Currently, if a report is made it sends an email to the board staff (all of them).

In 1.8 we have report center; are there hooks we can use for a custom report type and if so how can I use them?

Ideally I would like a report on the plugin item to work in a very similar way to how threads reporting works:

1) Adds it to report center
2) Has a count of how many times reported.
3) Shows link back to reported item and who reported.

The plugin items have ids and are in their own table in the database.

Thank you.
I actually want a totally new report type that is none of those; so I can see how to hook to rep ,but I cant see how to add a custom type.

Is it like

$plugins->add_hook("report_type","mynewreport");

?
Exacly where are you stuck at? This is actually a big feature (you can say) to work with, I have never worked on it so I'm unsure where you need help.

You can check this plugin which (as the details given) it integrates with the system.
Thank you Omar, I will have a look at that. Yes, I am aware its a big feature, I was stuck on almost where to start Smile