当用户在基于 Drupal 的站点上请求新密码后,如何向用户显示消息?
我主要使用 WordPress 网站,对 Drupal 的使用经验很少。我的网站中只有大约 1/100 使用它,所以我通常不需要担心它。
然而,现在我需要在用户在基于 Drupal 的站点上请求新密码后添加警报。该警报旨在告诉用户他们需要检查电子邮件以获取新密码。它甚至不需要是弹出窗口,消息只需要在那里即可。
我一直在网站的文件和后端以及谷歌上漫无目的地徘徊,但我找不到任何解决方案。一个解决方案会很棒,但如果有人能指出我自己解决问题的正确方向,我将不胜感激。请帮忙!
编辑: 我已经检查了触发器页面,但没有任何可以提供帮助的内容。我还读到了一个名为“password_trigger”的模块,它会发送电子邮件警报。该网站已设置为发送电子邮件,但未使用此模块。帮助?
I work primarily with WordPress sites, and I have minimal experience with Drupal. Only about 1/100 of my sites use it, so I usually don't need to worry about it.
Right now, however, I need to add an alert after a user requests a new password on a Drupal based site. The alert is to tell the user that they need to check their email for the new password. It doesn't even need to be a popup, the message just has to be there.
I've been wandering aimlessly through the site's files and backend and all across google but I can't find any solutions to this. A solution would be great but I'd appreciate it if anyone could even point me in the right direction to figure it out myself. Please help!
Edit:
I have checked the triggers page and there is nothing there that can help. I also read about a module called password_trigger which sends an email alert. The site is set up to send an email already, but it's not using this module. Help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果没有显示,请仔细检查
位于您的 page.tpl.php 主题文件中。
If that is not showing, double check that
<?php print $messages; ?>
is in your page.tpl.php theme file.您确定默认情况下不会发生这种情况吗?
我刚刚访问了我的 Drupal 7 站点之一并执行了以下操作:
Drupal 显示一条消息:
您没有遇到过这种情况吗? (如果没有,您使用的是哪个版本的 Drupal?)
我不清楚您问题的电子邮件部分。当请求新密码时,Drupal 是否会向用户发送电子邮件?
Are you sure this won't happen by default?
I just went to one of my Drupal 7 sites and did this:
Drupal displayed a message that said
Does that not happen for you? (If not, which version of Drupal are you using?)
I'm not clear about the email part of your question. Is Drupal sending out an email to the user when a new password is requested?