clake / user-extended
为OctoberCMS RainLab.User插件添加角色、好友和实用函数
dev-master
2019-05-08 05:04 UTC
This package is not auto-updated.
Last update: 2024-09-29 02:33:00 UTC
README
项目状态
- 此项目已被Joshua Webb接管并维护
当前版本为v2.2.00
2.2.00版本新增功能
* Avatar picker on update page. {% partial 'account::update' %}
* Closing, Reopening, Suspending, Deleting accounts. (Currently not accessible in the frontend by default)
* Reset Roles and Groups back to default from the Role Manager
* Usernames are now unique, and nicknames have been added
* Friend states now use a bin 2^n storage pattern. This may change to use a DB table in the future.
* Route restrictions and access tracking
* Added more field types including, but not limited to: number, color, date, email, password, file, url
* Now possible to add, change, remove timezones from the application
* You can now override the relation between two users.
* The addition of the [Beta] Module Manager. Currently changing settings for a module has no effect.
* Improved error/success feedback system for Backend and Frontend validation
请查看后端模块管理器以查看详细变更日志
概述
User Extended提供用于与用户进行复杂交互的简单组件和用户实用函数。
User Extended目前提供好友列表、角色管理和用户实用函数。
依赖项
安装
安装此插件并运行
php artisan october:up
用法
- 只需将所需组件添加到页面,即可正常运行
- 您可以创建模块来与User Extended和其他UE模块交互
- 使用以下命令:
php artisan create:uemodule author.pluginname
为您的插件生成模块类。
贡献者
功能列表
- 后端角色/组管理
- 使用组、角色、用户和IP地址进行高级页面限制。
- 可以使用模块注入用户代码或为您的插件开发用户API
- 好友列表。您可以发送好友请求、阻止/删除/接受好友
- 可用于您自己的插件的用户实用函数
- 用户资料和资料评论系统
- 用户搜索。通过姓名、电子邮件或用户名搜索用户
- 时区支持!使用'|timezonify' twig过滤器。
- 使用'|relative' twig过滤器获取文本相对时间戳(5秒前,2个月前)
- Timezonable trait,可以添加到模型中以自动转换时间
- 用户字段。现在您可以轻松添加电话号码、地址、邮编、邀请号等字段。
有关更多信息,请参阅帮助目录
计划中的功能
路线图
详细信息
User Extended并不是一个社交网络插件。我们提供更多复杂用户功能的功能,这些功能在社交网络之外也有用例。
专注于在线游戏、论坛、博客、新闻等网站都可以从User Extended中受益。
事件列表
- [禁用] clake.ue.preregistration(post &$data) : 停止。$data包含注册表单数据。返回false将取消注册。
- [禁用] clake.ue.postregistration(UserExtended &$user)。$user包含在保存用户对象并注销用户以完成注册之前的最终权限对象。
- clake.ue.login(User $user)。$user包含认证后的用户对象。
- clake.ue.logout(User $user)。$user包含注销后的用户对象。
- clake.ue.settings.create(UserSettingsManager &$instance)。在用户设置实例对象创建后
- clake.ue.settings.update(UserSettingsManager &$instance)。在用户设置实例对象创建后