2024.10.31 更新
1.卸载Reply 2 See 回复可见
composer remove nosun/reply-to-see
2.安装 BBCode Hide Content 隐藏内容
composer require datlechin/flarum-bbcode-hide-content:"*"
使用方法:后面的记得改为[/***]
[LOGIN]登录可见内容[LOGIN]
[LIKE]点赞后可见内容[LIKE]
[REPLY]回复后可见内容[REPLY]
3.Nodeloc Leaderboard 排行榜 (发帖失败,但实际是发帖了的)
composer require nodeloc/flarum-ext-leaderboard:"*"
会附加安装Localize Date Lib ,先启动他,设置 PRC
users表要加两个字段 monthly_comment_count ,monthly_discussion_count
ALTER TABLE users
ADD monthly_comment_count INT NOT NULL DEFAULT 0,
ADD monthly_discussion_count INT NOT NULL DEFAULT 0;
4.lottery 抽奖插件:
composer require nodeloc/lottery:"*"
NOTICE:
php flarum nodeloc:lottery:refresh
You must run php flarum schedule:run to draw the lottery.
SQL加个字段:
ALTER TABLE users ADD lottery_count INT DEFAULT 0;
定时任务:(每分钟执行一次)
cd /www/wwwroot/sx.sd/ && php flarum schedule:run