[user_level]五级信任等级体系热
- bbs1org2026-09-09五级信任等级体系ID user_level版本 2.29.0插件制作者 bbs1org免费2478 行 / 155.7 KBHook / 路由 / 后台页五级信任等级体系:新访客受限、见习靠浏览解锁、正式成员需发主题与互动、社区骨干按窗口浮动考核、社区领袖手动授予;支持为主题设置最低查看等级,受限正文仅授权用户可读;等级首次变化到各档可一次性奖励积分并通知本人(同一档永不重发);个人卡片可查看等级进度与能力解锁,入口链接可由管理员开关。app/plugins/user_level/plugin.php插件预览2 张开发日志最新 10 条
个人独立维护项目。
淘帖专辑官方安装插件合集主楼 - bbs1org2026-09-09
版本 2.10.4 更新:
第一个版本 插件质量报告
插件:
user_levelHook 功能范围 循环 使用频率 文件读写 修改系统表 读写系统表 读写自己的表 app.boot 全站请求启动 回调内 5 - - app_users 写 plugin_user_level_logs, plugin_user_level_users, plugin_user_level_rewards 修正❗️ page.head 全站页面 head 否 5 - - - - reply.after_render 主题查看页/回帖列表逐条渲染 是 5 - - - 读 plugin_user_level_topic_gates 修正❗️ topic.after_render 首页/版块列表/主题查看逐条渲染 是 5 - - - 读 plugin_user_level_topic_gates 修正❗️ topic.before_render 首页/版块列表/主题查看逐条渲染 是(列表跳过) 5 - - app_users 写 plugin_user_level_users, plugin_user_level_rewards;读 plugin_user_level_topic_gates, plugin_user_level_logs 修正❗️ topic.index_data.loaded 首页/版块/用户主题列表查询后 回调内 5 - - - 读 plugin_user_level_topic_gates, plugin_user_level_users 修正❗️ topic.title_suffix 首页/版块主题列表逐条标题 是 5 - - - - topic.after_view 主题查看页完成加载 否 4 - - - 写 plugin_user_level_logs, plugin_user_level_users topic.index_tabs 首页/版块列表页标签栏(展示位置:首页Tab) 否 4 - - - - topic.replies 主题查看页回帖集合 回调内 4 - - app_users 写 plugin_user_level_users, plugin_user_level_rewards;读 plugin_user_level_topic_gates, plugin_user_level_task_claims, plugin_user_level_logs 修正❗️ user.menu_links 个人卡片/移动端我的菜单(展示位置:个人卡片) 否 4 - - - - reply.after_save 回帖保存后 否 3 - - app_topics 写 plugin_user_level_users, plugin_user_level_logs reply.before_save 回帖发布/编辑表单提交 回调内 3 - - app_topics, app_replies, app_users 写 plugin_user_level_users, plugin_user_level_rewards;读 plugin_user_level_logs 修正❗️ topic.after_save 主题保存后 否 3 - - - 写 plugin_user_level_topic_gates, plugin_user_level_logs, plugin_user_level_users topic.before_save 主题发布/编辑表单提交 回调内 3 - - app_topics, app_replies, app_users 写 plugin_user_level_users, plugin_user_level_rewards;读 plugin_user_level_topic_gates, plugin_user_level_logs 修正❗️ content.before_delete 内容删除操作 回调内 2 - - app_users 写 plugin_user_level_topic_gates, plugin_user_level_users, plugin_user_level_rewards;读 plugin_user_level_logs 修正❗️ topic.form_extra 主题发布/编辑表单 否 2 - - app_topics 读 plugin_user_level_topic_gates user_level.allow 非系统hook 回调内 1 - - app_users 写 plugin_user_level_users, plugin_user_level_rewards;读 plugin_user_level_logs 修正❗️ user_level.log 非系统hook 否 1 - - - 写 plugin_user_level_logs, plugin_user_level_users 颜色说明:黄色表示有数据读写,红色表示 Hook 在系统循环中执行,浅蓝色表示有文件写入。“列表跳过”表示回调在列表路径会提前返回,“回调内”表示操作位于回调自身或其帮助函数的循环体内。“文件批处理”表示逐个处理用户一次提交的文件,属于必要操作,不标记修正。只有操作实际处于需要优化的循环路径时,才会标记“修正❗️”。
数据字典
plugin_user_level_topic_gates字段 类型 可空 默认值 约束 topic_id uint 否 - 主键 min_level INTEGER 否 0 - body text 是 - - created_at uint 否 0 - updated_at uint 否 0 - plugin_user_level_logs字段 类型 可空 默认值 约束 id id 否 - 主键、自增 user_id uint 否 - 唯一 type VARCHAR(24) 否 - 唯一 ref_id uint 否 - 唯一 src_uid uint 否 0 唯一 day VARCHAR(10) 否 - - created_at uint 否 0 - plugin_user_level_users字段 类型 可空 默认值 约束 user_id uint 否 - 主键 visit_days uint 否 0 - read_topics uint 否 0 - reply_topics uint 否 0 - topic_count uint 否 0 - recv_likes uint 否 0 - given_likes uint 否 0 - tl1_at uint 否 0 - tl2_at uint 否 0 - tl3_at uint 否 0 - manual_lv uint 否 0 - locked_lv uint 否 0 - map_lv uint 是 - - lv_at uint 否 0 - updated_at uint 否 0 - plugin_user_level_task_claims字段 类型 可空 默认值 约束 user_id uint 否 - 主键 task_key key 否 - 主键 period VARCHAR(10) 否 '0' 主键 points INTEGER 否 0 - created_at uint 否 0 - plugin_user_level_rewards字段 类型 可空 默认值 约束 user_id uint 否 - 主键 lv INTEGER 否 - 主键 points INTEGER 否 0 - created_at uint 否 0 - 🐂🍺
- zaiwai2026-09-09
挖槽,我是前排。重大发布。
- elm2026-09-09
开启我的论坛见习人生😂
- bbs1org2026-09-09
- 92026-09-09
还是来了啊
- 92026-09-09
- bbs1org2026-09-09
看看等级
建议增加一键同步功能 获取用户以前发帖及回帖数量
- bbs1org2026-09-09
- bbs1org2026-09-09
我说怎么突然编辑不了我的回复了,原来上新规则了
- zaiwai2026-09-09
终于有等级了。
- bbs1org2026-09-09
版本 2.10.5 更新:
优化样式细节,增加对删除的控制权限 - bbs1org2026-09-09
版本 2.11.0 更新:
考核 里面加上点赞数、收到的点赞数 - bbs1org2026-09-09
版本 2.11.1 更新:
新点赞会实时计数 - elm2026-09-09
来访天数没有更新
- bbs1org2026-09-09
- elm2026-09-09
- bbs1org2026-09-09
- elm2026-09-09
- Maser2026-09-09
论坛加入信用等级,那vip有哪些特权没
- bbs1org2026-09-09
- bbs1org2026-09-09
版本 2.11.2 更新:
发过帖但从没被记录 visit 的老用户、日志被 cron 清理过后的用户,来访天数都能从核心表尽量恢复 那我的话基本上也能到个三级四级了吧?
以前的数据不算数
- Maser2026-09-10
- bbs1org2026-09-10
版本 2.11.4 更新:
活跃趋势
近 30 天 · 来访 UV 仅统计登录用户,历史受日志保留窗口限制 谁是第一个社区骨干
- bbs1org2026-09-10
- bbs1org2026-09-10
- bbs1org2026-09-10
版本 2.12.9 更新:
增加每日自动签到、签到日历、点赞偶像、点赞粉丝功能 - bbs1org2026-09-10
版本 2.13.1 更新:
优化ui细节 - bbs1org2026-09-11
版本 2.13.2 更新:
自动签到提示 - bbs1org2026-09-12
版本 2.16.0 更新:
精简功能 - bbs1org2026-09-12
版本 2.18.0 更新:
增加我的动态 - bbs1org2026-09-12
版本 2.21.1 更新:
优化我的动态功能 - bbs1org2026-09-12
升级后,必须做一次停用、启用,并进行一次全量重新统计
- code2026-09-12

后台错位了。 - bbs1org2026-09-12
- code2026-09-12
- code2026-09-12
有可能是插件冲突了。但是我更新前那个版本是没问题的。
- bbs1org2026-09-12
- code2026-09-12
- bbs1org2026-09-12
版本 2.21.2 更新:
修复字段缺少bug - bbs1org2026-09-16
版本 2.21.6 更新:
支持为主题设置最低查看等级,并在列表和主题页提示权限 - bbs1org2026-09-16
版本 2.21.8 更新:
级别不够改为err - bbs1org2026-09-17
版本 2.22.0 更新:
修正卡片模式下泄漏问题 - bbs1org2026-09-19
版本 2.23.0 更新:
入口链接可由管理员开关 - bbs1org2026-09-21
版本 2.24.0 更新:
优化性能 - bbs1org2026-09-21
版本 2.25.1 更新:
优化性能 - bbs1org2026-09-21
版本 2.25.1 更新:
增加预览 2026-09-22 10:17:44 PDOException: SQLSTATE[42883]: Undefined function: 7 ERROR: function date(integer, unknown) does not exist LINE 1: SELECT date(created_at,'unixepoch') AS day,COUNT(*) AS n FRO... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. (index.php:286)
使用pgsql报错


