heimrichhannot / contao-member_plus
为contao成员提供增强功能的集合。
2.4.0
2024-04-25 14:59 UTC
Requires
- php: ^7.1 || ^8.0
- contao-community-alliance/composer-plugin: ~2.4 || ~3.0
- contao/core-bundle: ^4.4
- heimrichhannot/contao-fieldpalette: ^1.4.5
- heimrichhannot/contao-tagsinput: ^2.1
Suggests
- heimrichhannot/contao-formhybrid: Needed for better login & registration experience, like registration & login with one module or better activation response (check README.md).
- dev-master
- 2.4.0
- 2.3.0
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.36
- 2.0.35
- 2.0.33
- 2.0.32
- 2.0.31
- 2.0.30
- 2.0.29
- 2.0.28
- 2.0.27
- 2.0.26
- 2.0.25
- 2.0.24
- 2.0.23
- 2.0.22
- 2.0.21
- 2.0.20
- 2.0.19
- 2.0.18
- 2.0.17
- 2.0.16
- 2.0.15
- 2.0.14
- 2.0.13
- 2.0.12
- 2.0.11
- 2.0.10
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.0.29
- 1.0.17
- 1.0.16
- 1.0.15
- 1.0.14
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
This package is auto-updated.
Last update: 2024-08-25 15:46:21 UTC
README
此包已被弃用且不再积极维护。请使用https://github.com/heimrichhannot/contao-member-bundle。
Member Plus
为contao成员提供增强功能的集合。
特性
- 额外字段(标题,别名,学术头衔,职位,地址文本,图片)
- 对成员的tl_content支持,以便添加额外的成员内容
- memberlist内容元素,带有跳转到详情页(在自定义页面显示成员阅读模块,article_reader - 仅在文章中显示阅读器!,文章或外部页面)
- memberreader模块
激活后登录
- 为注册模块添加了reg_activate_login复选框,启用账户激活后的自动登录
一个模块完成注册和登录(需要heimrichhannot/contao-formhybrid
)
- 域名白名单
- 可选:在登录表单中显示允许的域名,或隐藏它们但仍对其进行检查
- 可选:在前端隐藏允许的域名列表,但仍对其进行检查
- 可选:用户登录后永久重定向到跳转到页面
更好的激活(需要heimrichhannot/contao-formhybrid
)
- 注册将在数据库中留下已使用的激活密钥,并在其前添加"ACTIVATED:"前缀
- 告诉用户他的令牌已被使用
- 告诉用户令牌无效
- 现在可以覆盖"activateAccount" Hook中的"accountActivatedMessage"
- 激活或激活错误后始终重定向到当前页面(url中不含令牌参数)或reg_jumpTo页面,然后显示消息
字段
钩子
modifyDCRegistrationPlusForm(需要heimrichhannot/contao-formhybrid
)
修改formhybrid数据容器数组。
// config.php
$GLOBALS['TL_HOOKS']['modifyDCRegistrationPlusForm'][] = array('MyClass', 'modifyDCRegistrationPlusFormHook');
// MyClass.php
public function modifyDCRegistrationPlusFormHook(&$arrDca, \Model $objModule)
{
// manipulate the datacontainer and add fields, change labels and more
$arrDca['fields']['firstname']['eval']['placeholder'] = &$GLOBALS['TL_LANG']['tl_member']['myCustomFirstnamePlaceholder'];
}