Event For Reported Post/PM Submission

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
Feyd_Ruin
Registered User
Posts: 3
Joined: Tue Jun 04, 2019 2:04 am

Event For Reported Post/PM Submission

Post by Feyd_Ruin » Sun Jul 14, 2019 5:11 am

Is there an event in the event list for when a user submits a new Report on a post/pm?

I want to write an extension that pings discord to let the staff know when a new report has been made, but if the appropriate event is there, I can't find it in the event list.

I'm hoping I'm just overlooking it. The only ones I can find and have tried are MCP-specific (core.mcp_reports_get_reports_query_before) and only trigger when a moderator looks at the report.

User avatar
david63
Registered User
Posts: 16164
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Event For Reported Post/PM Submission

Post by david63 » Sun Jul 14, 2019 8:00 am

core.report_handler_post_submit and core.report_handler_pm_submit are probably what you are looking for.

It is normally better to look in the code for events as that list is not always up to date.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
3Di
Former Team Member
Posts: 13769
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Event For Reported Post/PM Submission

Post by 3Di » Sun Jul 14, 2019 8:50 am

david63 wrote:
Sun Jul 14, 2019 8:00 am
core.report_handler_post_submit and core.report_handler_pm_submit are probably what you are looking for.

It is normally better to look in the code for events as that list is not always up to date.
Where those events are located precisely?
-- core.report_handler_pm_submit in C:\wamp64\www\QI\boards\327dice\ from *.php --
0 occurrences have been found in 0 files.
Output completed (14 sec consumed)
https://github.com/phpbb/phpbb/search?q ... _pm_submit
We couldn’t find any code matching 'core.report_handler_pm_submit' in phpbb/phpbb
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

User avatar
david63
Registered User
Posts: 16164
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Event For Reported Post/PM Submission

Post by david63 » Sun Jul 14, 2019 8:58 am

Whoops - forget that :oops:

It was/is something I was working on and they are events that I was going to add
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

Post Reply

Return to “Extension Writers Discussion”