heimrichhannot/contao-member_plus

为contao成员提供增强功能的集合。

2.4.0 2024-04-25 14:59 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'];
}