[wordpress插件] BBP Close Old TopicsBBP关闭旧主题

wordpress 插件 文章 2020-03-01 05:10 528 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

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.

BBP关闭旧主题是一个bbPress扩展,当旧主题的时间超过管理员定义的时间(从一周到一年)时,它会自动关闭。

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.

此插件仅适用于bbPress 2.2或更高版本。如果未安装和激活bbPress,则该插件无效,并且不适用于2.2之前的任何版本。

This plugin was tested with bbPress up to 2.5.14.

此插件已通过bbPress最高2.5.14进行了测试。

Configuration

配置

    1. Visit ‘Settings > Forums’ and set the settings in the “Forum Features” section.
    2. 访问“设置>论坛”,然后在“论坛功能”部分中进行设置。

    3. Check the “Close Old Topics” box to enable this feature, and set how old posts should be before closing them (1 year by default).
    4. 选中“关闭旧主题”框以启用此功能,并设置关闭前的旧帖子的状态(默认为1年)。

    5. Optionally check the “Hard Close Old Topics” if you want topics to be actually closed in the database.
    6. 如果希望在数据库中实际关闭主题,则可以选择检查“硬关闭旧主题”。

    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

    此插件代码的某些部分受Brandon Allen的启发:https://github.com/thebrandonallen/bbp-auto-close-topics

    Translations

    翻译

安装步骤

From your WordPress dashboard

从您的WordPress仪表板中

    1. Visit ‘Plugins > Add New’
    2. 访问“插件>添加新内容”

    3. Search for ‘BBP Close old Topics’
    4. 搜索“ BBP关闭旧主题”

    5. Activate BBP Close old Topics from your Plugins page in wp-admin.
    6. 在wp-admin中从“插件”页面激活BBP关闭旧主题。

    From WordPress.org

    来自WordPress.org

      1. Download BBP Close old Topics.
      2. 下载BBP关闭旧主题。

      3. Unzip it and upload the ‘bbp-close-old-topics’ directory to your ‘/wp-content/plugins/’ directory, using your favorite method (ftp, FileManager, etc…)
      4. 解压缩它,然后使用您喜欢的方法(ftp,FileManager等)将“ bbp-close-old-topics”目录上传到您的“ / wp-content / plugins /”目录中

      5. Activate BBP Close old Topics from your Plugins page in wp-admin.
      6. 在wp-admin中从“插件”页面激活BBP关闭旧主题。

下载地址
https://downloads.wordpress.org/plugin/bbp-close-old-topics.zip
-EOF-

AI助手支持GPT4.0