fof/prevent-necrobumping 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fof/prevent-necrobumping

最新稳定版本:2.0.0-beta.1

Composer 安装命令:

composer require fof/prevent-necrobumping

包简介

Warn before necrobumping old discussions

关键字:

README 文档

README

License Latest Stable Version OpenCollective Donate

A Flarum extension. Warn before necrobumping old discussions.

Necrobump (verb):

To revive a long dormant forum thread by adding a new post, thus bringing it to the top of the forum list. Often a tactic of trolls attempting to control a forum.

https://www.urbandictionary.com/define.php?term=necrobump

screenshot screenshot admin

Installation

composer require fof/prevent-necrobumping:"*"

Updating

composer update fof/prevent-necrobumping

Configuration

Basic Settings

Configure the extension in the admin panel under Extensions → Prevent Necrobumping:

  • Days Until Discussion Considered Inactive: Set the number of days after which a discussion is considered inactive (default: 30)
  • Show "Start New Discussion" Prompt: Display a suggestion to start a new discussion when users attempt to reply to inactive discussions

Tag-Specific Thresholds

If you have the flarum/tags extension installed, you can configure different inactivity thresholds for specific tags. When a discussion has multiple tags with different thresholds, the shortest period applies.

Customizing Translations

You can customize the alert messages and prompts shown to users when they attempt to reply to inactive discussions. The extension provides the following translation keys:

Forum Translations

fof-prevent-necrobumping:
  forum:
    composer:
      inactive_discussion_alert:
        title: The last reply to this discussion was {time}.
        description: Consider whether your reply adds new value or if the topic has already been resolved.
        cta: Consider starting a fresh discussion if you have a new question or perspective.
        cta_button: => core.ref.start_a_discussion
        confirmation: I understand this discussion is inactive, but my reply is relevant.
      error: This discussion is too old to reply to.

Admin Translations

fof-prevent-necrobumping:
  admin:
    settings:
      general_heading: General Settings
      days_label: Days Until Discussion Considered Inactive
      days_help: Mark discussions as inactive after this many days since the last post. Set to <code>0</code> to disable by default.
      show_discussion_cta_label: Show "Start New Discussion" Prompt
      show_discussion_cta_help: Display a suggestion to start a new discussion when users attempt to reply to inactive discussions.
      tags_title: Tag-Specific Settings
      tags_help: Override the global inactivity threshold for specific tags. Leave empty to use the default. When multiple tags have different values, the shortest period applies.
      tags_placeholder: Default

Managing Translations

You can customize these translations in two ways:

  1. Using FoF Linguist (Recommended)

    Install the FoF Linguist extension to manage translations directly from your admin panel:

    composer require fof/linguist

    Then navigate to Admin → Extensions → Linguist to edit the translation keys listed above.

  2. Using Language Packs

    If you're using a language pack, you can submit translation updates to the language pack repository. For example:

Links

OpenCollective GitHub

An extension by FriendsOfFlarum, commissioned by webdeveloper.com.

统计信息

  • 总下载量: 29.51k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 3
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 3
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-01-03