Copy the extension to phpBB/ext/userbase/aimodhelp
Go to "ACP" > "Customise" > "Extensions" and enable the "AI moderation help" extension.
The extension's configuration is stored in the database table phpbb_aimodhelp_config. This allows dynamic updates without modifying code.
-
Run the migration SQL scripts located in
ext/userbase/aimodhelp/migrations/:aimodhelp_create_config_table.sqlto create the config table.aimodhelp_insert_config_values.sqlto insert default configuration values (edit with your config values before uploading).
-
The configuration parameters include:
AI_PROVIDER: The AI service provider (e.g., 'openrouter' or 'gemini').AI_API_KEY: The API key for the AI provider.AI_MODEL: The AI model to use.AI_BASEURL: The base URL for the AI API.MAX_TOPIC_POSTS: Maximum number of topic posts non-moderator/admin users can request.
- To update configuration values, modify the entries in the
phpbb_aimodhelp_configtable directly via SQL or through an admin UI (if implemented).
- Provides AI-powered moderation assistance for phpBB forums.
- Supports evaluating posts or topics against general or 'te koop' forum rules.
- Allows summarizing content.
- Enforces permission-based access control: non-moderators/admins can only summarize and have limits on topic post counts.
- Includes a frontend test page (
ai_evaluator.html) for interacting with the AI evaluation API. - Logs execution details for debugging and traceability.