后台管理面板
Flarum 管理面板是一个友好的论坛管理界面。且只对「管理组」成员可见。要访问管理员控制面板,请点击屏幕右上角的 名称,并选择 管理。
管理员控制面板有如下部分,具体是:
- Dashboard - Shows the main Admin Dashboard, containing statistics and other relevant information.
- Basics - 显示设置基本论坛详情的选项,如名称、描述和欢迎横幅。
- 电子邮件 - 允许您配置您的电子邮件设置。更多信息请参考[此处](https://docs.flarum.org/mail)。
- 权限 - 显示每个用户组的权限,并允许您配置全站和特定范围。
- 外观 - 允许您自定义论坛的颜色、图标和添加额外的 CSS 以自定义论坛样式。
- 用户 - 为您提供论坛中所有用户的分页列表,可以在此编辑或管理用户。
- Advanced - Allows you to configure advanced settings such as Maintenance Mode, Search drivers, Queue driver, and more. It is hidden until you turn it on: see The Advanced page.
Apart from the above-mentioned sections, the Admin Dashboard also allows you to manage your Extensions (including the flarum core extensions such as Tags) under the Features section. 修改论坛主题或允许您使用多种语言的扩展分别在 Themes 和 Languages 部分下分类。
The Advanced page
The Advanced page holds settings that most forums never need to change, so it is hidden from the admin menu until you turn it on.
To show it, go to the Dashboard, open the Tools menu and select Toggle Advanced Page. Advanced then appears in the admin menu. Select Toggle Advanced Page again to hide it. Hiding the page doesn't change any of its settings.
You can also open the page directly, even while it is hidden, by adding /admin#/advanced to your forum's address, for example https://example.com/admin#/advanced.
Search Drivers
Extensions can add other search drivers, for example one that uses Elasticsearch. Once one is installed, choose here which driver each kind of content, such as discussions or users, is searched with. Until then, this section says that no other drivers are available.
On MySQL and MariaDB, Optimise search for CJK languages makes search work for Chinese, Japanese and Korean text. The database's word-based search can't match part of a CJK sentence, so this switches to matching any part of the text instead. It is slower on very large forums.
Maintenance
Puts the forum into one of the maintenance modes:
| Mode | Who can use the forum |
|---|---|
| No maintenance | Everyone. |
| Low maintenance | Admins only. |
| Safe mode | Admins only, and no extensions are booted. |
| High maintenance | No one. This can only be set in config.php. |
In safe mode, you can choose extensions that are still allowed to boot. If the safe_mode_extensions key in config.php lists them, that list is used instead.
If config.php sets a maintenance mode with the offline key, it takes precedence. The page shows the mode it sets, and changes you make here only take effect once config.php no longer sets one.
Extension Bisect
If something is broken and you think an extension is to blame, Begin Bisect finds out which one:
- The forum goes into low maintenance mode, so only admins can use it.
- At each step, some of your extensions are disabled. Try to reproduce the problem in another browser tab, then answer whether it still happens. While this runs, features from the disabled extensions are missing, and the forum may look different.
- After a few steps (the dialog tells you roughly how many), it names the extension that causes the problem.
When it finishes, or you select Stop bisect, the extensions that were enabled before are enabled again and the forum leaves maintenance mode. If you close the dialog part-way, Continue Bisect picks up where you left off.
Bisect can't start while the forum is in a maintenance mode other than low.
FontAwesome Icons
Where icons are loaded from (the bundled icons, a CDN or a FontAwesome Kit), a style to force on every icon, and a preview to check your setup. See FontAwesome for details. If config.php sets these, the page shows its values and they can't be changed here.
PostgreSQL
Only shown on forums that use PostgreSQL. Choose the text search configuration used for searching, from those available in your database.
队列
Shows which queue driver the forum uses.
- With the default
syncdriver, jobs run during the request, and there is nothing to set. - With any other driver, you can pause job processing for all queues or for each queue. See Pausing a queue.
- With the
databasedriver, you can also tune the worker:
| Setting | Default | 描述 |
|---|---|---|
| Job Retries | 1 | How many times a job is attempted before it is marked as failed. |
| Memory Limit (MB) | 128 | How much memory the worker can use before it restarts. |
| Job Timeout (seconds) | 60 | How long a single job can run before it times out. |
| Rest Time (seconds) | 0 | How long to wait between jobs. |
| Backoff (seconds) | 0 | How long to wait before retrying a failed job. |