since I had some time and was willing to test 3.1 a2 extension stuff and how to develop an extension by try & error and then I stuck @ the point phpBB-Logs
@ phpbb 3 I just added a line in the constants.php around
Code: Select all
// Log types
define('LOG_ADMIN', 0);
define('LOG_MOD', 1);
define('LOG_CRITICAL', 2);
define('LOG_USERS', 3);
define('LOG_FOE', 4);
already exists, I increased the number by one and it's all fine.How should this be done in 3.1?
- How do I add new constants? Since I'm really new with events, I have to ask stupidly: Do I need a new event for this?
- How can I make sure that f.e. anti-spam-mod-logs are not the same log type like my mod?