简体   繁体   English

Drupal 6-内容配置文件和用户管理

[英]Drupal 6 - Content profile and user management

I have developed a system using Drupal 6. I have implemented user registration with content profile. 我已经使用Drupal 6开发了一个系统。我已经使用内容配置文件实现了用户注册。 Which means there is a functionality called company registration. 这意味着有一种称为公司注册的功能。 It is creating a content profile with companies and a user account also after click register. 单击注册后,它还将使用公司和用户帐户创建内容配置文件。

Once the profile and user account created both will be in pending status and I have implemented a functionality where the site admin can approve (using rules.) Once approved the content profile is accessible via front end. 创建配置文件和用户帐户后,两者都将处于待处理状态,并且我已经实现了网站管理员可以批准(使用规则)的功能。批准后,可以通过前端访问内容配置文件。

But though the users status change rule is written (rule to change the pending user role to active member) the user is unable to login. 但是,尽管写入了用户状态更改规则(将挂起的用户角色更改为活动成员的规则),但用户无法登录。 Currently after approving the content profile the admin again need to go to the user account and activate it. 当前,在批准内容配置文件后,管理员再次需要进入用户帐户并激活它。

Can anybody help me to get this resolved please? 有人可以帮我解决这个问题吗?

My advice would be to use Triggers with this, so that when a content profile is approved, the linked user profile will also be approved. 我的建议是与此一起使用触发器,以便在批准内容概要文件时,也将批准链接的用户概要文件。 You should be able to write an "Advanced" trigger for this. 您应该能够为此编写一个“高级”触发器。

https://drupal.org/documentation/modules/trigger https://drupal.org/documentation/modules/trigger

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM