

Admin Settings Page – Shows OpenRouter API configuration and model selection
This plugin integrates AI-powered context-aware content moderation with the wpForo forum plugin. It uses OpenRouter API to analyze forum posts and topics in real-time, automatically flagging inappropriate content and muting users who violate your custom forum moderation guidelines.
This plugin provides shortcodes for displaying moderation-related content on your site.
[colaias_wpforo_ai_notices] – Displays user notifications about moderation and mute status
Usage:
[colaias_wpforo_ai_notices top='30px' right='30%' width='40%']
Parameters:
* top – (Optional) Top position of the notification container. Default: ’20px’
* right – (Optional) Right position of the notification container. Default: ’20px’
* width – (Optional) Width of the notification container. Default: ‘350px’
Placement:
Add this shortcode to the [wpforo] page. The notifications will display information to users:
* When a user is muted hence cannot post
* When a user’s post has been flagged
* Moderation status updates
Upgrade to the premium version for advanced features including:
🌟 Enhanced Features:
* 🛠️ Enhanced Moderator Control Panel – Bulk select management for efficient moderation
* 🎨 Easy Prompt Engineering Interface – Visual prompt builder
* 🌊 Forum Flood Control System – User and forum posting limits to prevent spam attacks
* 📊 Comprehensive Premium Metrics – 5-year data retention with detailed analytics
* 📈 Charts & Graphs For Metrics – Comprehensive visualizations with user table for metrics
* 🔎 User Look-Up – Look up individual users flag metrics
* 💎 Lifetime Single Purchase – No subscriptions, one-time payment for lifetime updates
💖 Support Independent Development:
Your purchase helps keep this plugin free and actively maintained! Support innovation in open-source AI moderation tools.
📧 Interested in Premium?
Contact us for early access and pricing:
* Telegram: https://t.me/wpforo_ai
This plugin integrates with the OpenRouter API (https://openrouter.ai/) to provide AI-powered content moderation for wpForo forums. When configured with a valid OpenRouter API key, the plugin sends moderation requests to analyze forum posts in real-time.
The query is made to this url: ‘https://openrouter.ai/api/v1/chat/completions’
What Data Is Sent:
– Only the user’s post content is transmitted to OpenRouter
– A moderation prompt configured by the administrator precedes the post content
– No personally identifiable information (name, username, or user ID) is included in the post content
– Each post from non-muted users triggers exactly one API request
Current Implementation:
The plugin now includes Context Aware Moderation, which analyzes posts with surrounding context (previous and next posts) for better accuracy while maintaining user privacy with aliases. Usernames are replaced with aliases to protect user privacy while providing the AI with necessary conversational context.
OpenRouter is an AI routing service that provides access to multiple LLM models from various providers. When using this plugin, your data passes through OpenRouter to the selected AI model provider.
Important Links:
– OpenRouter Privacy Policy: https://openrouter.ai/privacy
– OpenRouter Terms of Service: https://openrouter.ai/terms
– OpenRouter Data Collection Policy: https://openrouter.ai/docs/guides/privacy/data-collection
AI Provider Policies:
Each LLM provider (such as OpenAI, Anthropic, DeepSeek, etc.) has its own data handling policies. For information on how different providers process data, see OpenRouter’s provider logging documentation: https://openrouter.ai/docs/guides/privacy/logging
You may optionally send:
– Your site’s URL (via HTTP-Referer header)
– Application title (via X-Title header)
These optional fields help OpenRouter rank applications and improve service quality.
API Request Structure:
The plugin sends POST requests to OpenRouter (‘https://openrouter.ai/api/v1/chat/completions’) with the following JSON payload structure:
$body = json_encode( [
'model' => $model,
'messages' => [
['role' => 'user', 'content' => $json_prompt],
],
'max_tokens' => 1000, // Maximum tokens in response (50-80 is typically sufficient)
'temperature' => 0.1,
'response_format' => ['type' => 'json_object'],
] );
Response Expectation:
The plugin expects OpenRouter to return a JSON object containing moderation results with ‘type’ and ‘reason’ keys as specified in your moderation prompt.
Configuration Options:
– The plugin uses default provider selection parameters. For advanced routing configuration, see: https://openrouter.ai/docs/guides/routing/provider-selection, though these cannot be changed from default besides what is already configured above
– You can customize request processing through the OpenRouter dashboard, including model selection and privacy policies on a per-key basis: https://openrouter.ai/settings/privacy
– You can configure your key, and set limits and alerts as needed
– With this plugin, you can also set a timeout for the OpenRouter query from 10-300 seconds