the-turk/flarum-stickiest

将帖子、超级粘性或标签粘性讨论固定在列表顶部。

安装次数: 10,530

依赖项: 0

建议者: 0

安全: 0

星标: 2

关注者: 1

分支: 21

公开问题: 3

类型:flarum-extension


README

MIT license Latest Stable Version Total Downloads

将帖子、超级粘性或标签粘性讨论固定在列表顶部。

屏幕截图

Stickiest Modal

安装

composer require the-turk/flarum-stickiest:^3.0.0

如果在激活 3.0.x 时看到类似 General error: 1824 Failed to open the referenced table 'tags' ... 的错误,请检查 tags 表的引擎是否为 InnoDB。如果不是,尝试将其切换到 InnoDB,然后再次运行并尝试激活。

-- 确保你有数据库备份。

DELETE FROM `migrations` WHERE `migration` = '2021_07_04_000003_set_default_settings' AND `extension` = 'the-turk-stickiest';
php flarum migrate:reset --extension the-turk-stickiest
DROP TABLE `discussion_sticky_tag`;
php flarum migrate

更新

composer update the-turk/flarum-stickiest
php flarum cache:clear

如果您是从 2.0.x 升级,请不要忘记运行迁移。

composer require the-turk/flarum-stickiest:^3.0.0
php flarum migrate
php flarum cache:clear

如果在运行迁移时出现“外键”错误,请参阅“安装”部分说明。

使用方法

您可能第一次使用时会觉得这个比较复杂,但我敢打赌您会习惯它的。

启用扩展并设置权限,如果您喜欢,可以选择一个徽章来表示超级粘性讨论。就像使用 flarum/sticky 扩展一样点击“粘性”按钮,并阅读模态框内的描述。

链接