Example extension extending APS - (Full example acme extension)
To extend the Advanced Points System you will need 3 files.
Your custom action type, the service definition in
services.yml and the
phpbbstudio_aps_ prefixed language file.
The custom action type class needs to have the 5 mandatory functions.
For a list of currently available actions, please have a look at the
The action types there are also a good example of how set up and calculations can (and should) be done.
If you want to see from where the actions are triggered, please have a look at the
There you can find the phpBB’s event(s) and any additional data that might be available for calculations.
During development and testing of your action type you might want to turn off the “Safe Mode” setting in the ACP.
This will make sure any errors/exceptions are thrown and not caught and logged.