內容簡介
BBP Close Old Topics 是一個針對 bbPress 的擴充套件,當話題存在一段由管理員定義的時間(一週至一年)後便會自動關閉。此處所設置的時間將與話題的新鮮度(通常基於最後回應的日期)進行比對,以確定是否要關閉該話題。
舊話題可以在操作中以「軟關閉」的方式關閉,或者是實際上在資料庫中關閉。
設置位於「設定 > 論壇」下方的「論壇功能」中。
如果您僅選擇在操作中以「軟關閉」的方式關閉舊主題,則它們只會在插件啟用的情況下顯示已關閉,但如果您禁用插件,則它們仍然會處於開放狀態。
如果您勾選「強制關閉」選項,則在操作中關閉的每個話題也將實際上在資料庫中關閉。在這種情況下,即使禁用此插件,它們仍然會保持關閉狀態。
此插件僅適用於 bbPress 2.2 或更高版本。如果未安裝和啟用 bbPress,則它將不起作用,並且與 2.2 之前的任何版本都無法正常工作。此插件已通過 bbPress 2.5.14 的測試。
配置
訪問「設定 > 論壇」,並在「論壇功能」部分中設置設置。
勾選「關閉舊話題」框以啟用此功能,並設置在關閉它們之前要多長時間(默認為 1 年)。
(選擇性)勾選「強制關閉舊話題」,如果您希望實際上在資料庫中關閉話題。
感謝
此插件的部分代碼是根據 Brandon Allen 的工作啟發而來:https://github.com/thebrandonallen/bbp-auto-close-topics
翻譯
英語 - 默認
*注意:此插件完全支持多語言。請貢獻您的語言,使其對全球所有用戶更有用!您可以使用 Poedit 編輯器進行翻譯,也可以直接在 WordPress 翻譯項目中貢獻:https://translate.wordpress.org/projects/wp-plugins/bbp-close-old-topics
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
BBP Close Old Topics is a bbPress extension to close old topics automatically when they are older than an admin-defined period of time, from one week to one year.
The period of time you set is compared to the topic freshness (usually based on the date of the last reply) to determine if a topic should be closed.
Old topics can be “soft-closed” on the fly only, or actually closed in the database.
Settings are in Settings > Forums, under “Forum Features”.
If you choose to only soft-close old topics on the fly, they will only appear closed as long as the plugin is active, but you will find them still open if you disable it.
If you check the “Hard close” option, every topic that gets closed on the fly will also be effectively closed in the database. In this case they will remain closed even if you disable this plugin.
This plugin only works with bbPress 2.2 or later. It will not have any effect if bbPress is not installed and activated, and will not work correctly with any version older than 2.2. This plugin was tested with bbPress up to 2.5.14.
Configuration
Visit ‘Settings > Forums’ and set the settings in the “Forum Features” section.
Check the “Close Old Topics” box to enable this feature, and set how old posts should be before closing them (1 year by default).
Optionally check the “Hard Close Old Topics” if you want topics to be actually closed in the database.
Credits
Some parts of the code of this plugin were inspired by the work of Brandon Allen: https://github.com/thebrandonallen/bbp-auto-close-topics
Translations
English – default
*Note: This plugin is fully translation-ready. Please contribute your language to the plugin to make it even more useful for all users worldwide! For translating you can use the “Poedit Editor” or contribute directly on translate.wordpress.org
