Lecteur Markdown
FORUMS_DOCUMENTATION_EN
Feature: Forums #
Discussion forums with categories, question threads and replies. User avatar management, email notifications, moderation and automatic cleanup of old messages.
---
Installation and Configuration #
Via FTP: Upload the `forums/` directory into `/plugins/`.
Via package manager: Select `forums` from the available plugins list.
Paths:
- Main plugin: `/plugins/forums/forums.php`
- Configuration: `/plugins/forums/conf/forums.conf.inc.php`
- Locales: `/plugins/forums/locale/`
Configuration parameters (`forums.conf.inc.php`):
| Variable | Default | Description |
|---|---|---|
| `$basedatadisplay` | `'yes'` | Display in management interface |
| `$basedisplevel` | `BASE_LEVEL_USER` | Level required to post |
| `$ftype` | `4` | Plugin type (community) |
| `$is_public` | `1` | Publicly accessible |
Required SQL tables: `forums_question`, `forums_reponse`
---
Usage #
Browsing #
- Category view with list of active threads
- Thread view with opening question and nested replies
- Avatar and level displayed for each participant
Participation (USER level and above) #
- Open a new thread in a category
- Reply to an existing question
- Email notifications to subscribers (optional)
Moderation #
- Delete threads and replies
- Manage categories (add, edit, delete)
Automatic cleanup #
Messages older than 90 days are deleted automatically when the plugin loads.
---
Hooks and Entry Points #
?obj=forums.php — Category list
?obj=forums.php&cat=ID — Threads in a category
?obj=forums.php&thread=ID — Thread view
?obj=forums.php&action=new&cat=ID — New thread (POST)
?obj=forums.php&action=reply&thread=ID — Reply (POST)
?obj=forums.php&action=delete&id=ID — Delete (moderator)
---
Dependencies #
- `Beamreactor\Database\SQL`
- `Beamreactor\Sanitizer\Parser`
- PHP `mail()` — for email notifications
- URL router — for link parsing in messages