While this sounds like a dream it is something that can become a reality over a hopefully short period of time but that will only be possible if you, the MOD/Extensions writer community, request that events be added to the phpBB core. Here's how to do it:
You may use this forum to discuss anything related to 3.1.x extensions and to voice your opinions on what we, the phpBB Extensions Team need to provide you in order to:How to request an event wrote:Events are hook locations/ledges. For more information about them and how to add them please take a look at the wiki events and listeners category.
Please note all explanations in this post should include:How to request a template event:
- At least 1 use-case
- Preferably an extension/MOD that exists that might make use of it (optional)
- What it could be used for
- Why should it have those parameters and that location
Create a ticket with the title[Template] Identifier
Then it should include the following information:The identifier should be formatted as prosilver location file followed by a descriptor. For e.g.Code: Select all
Identifier: Prosilver Location (if applicable): Subsilver Location (if applicable): Explanation:
overall_footer_copyright
If it is only in subsilver then the subsilver location should be used (as hooks don't have to be in both styles).
How to request an acp template event:
Create a ticket with the title[ACP Template] Identifier
Then it should include the following information:How to request a core event:Code: Select all
Identifier: Location: Explanation:
Create a ticket with the title[PHP] Identifier
Then it should include the following information:The identifier should be formatted as a general descriptor (preferably the function if its in one; possibly followed by a descriptor if there are more than one event in the function). All core events are prefixed byCode: Select all
Identifer: Location: Parameters: Explanation:
core.
For e.g.
core.viewtopic_postrow
for postrow in viewtopic.php
Review Process:
After being posted it will be reviewed to check it would work ok and then someone will either implement it for you or you can submit a patch for it.
The patch will then be reviewed by someone who cannot be the original suggester or implementer. It will then be merged by a developer.
Adding events:
You can add the events yourself (via submitting a PR) or by creating a ticket and then someone might come along and do it for you.
Once a PR is submitted it will be reviewed and merged by the development team / events reviewers
- Help you convert your 3.0.x MODs to Extensions
- Understand how events work
- Documentation needed
- Tools that will help you in the long run