默认情况下,joomla 3.0会在电子邮件中发送激活码,是否可以通过链接进行配置,而不是复制并粘贴此代码?
答案 0 :(得分:0)
该链接应该由电子邮件客户端点击。如果没有,链接可能会缺少前导'http://'。
您可以编辑语言文件语言/ en-GB / en-GB.com_users.ini
COM_USERS_EMAIL_REGISTERED_WITH_ACTIVATION_BODY="Hello %s,\n\nThank you for registering at %s. Your account is created and must be activated before you can use it.\nTo activate the account click on the following link or copy-paste it in your browser:\nhttp://%s \n\nAfter activation you may login to %s using the following username and password:\n\nUsername: %s\nPassword: %s"
COM_USERS_EMAIL_REGISTERED_WITH_ACTIVATION_BODY_NOPW="Hello %s,\n\nThank you for registering at %s. Your account is created and must be activated before you can use it.\nTo activate the account click on the following link or copy-paste it in your browser:\nhttp://%s \n\nAfter activation you may login to %s using the following username and the password you entered during registration:\n\nUsername: %s"
或 - 更好 - 将这些行放入覆盖文件(language / override / en-GB.override.ini)。
答案 1 :(得分:0)
Nibra是正确的,但要避免创建可能格式错误的语言文件。我强烈建议使用自1.6发行版以来可用的内置语言覆盖。
选择Extensions>>Language Manager>>Overrides
,然后点击新建按钮。
在该屏幕中,您可以搜索要更改的文本“感谢您注册”或语言标记,如:
COM_USERS_EMAIL_REGISTERED_WITH_ACTIVATION_BODY
COM_USERS_EMAIL_REGISTERED_WITH_ACTIVATION_BODY_NOPW
关于语言覆盖机制的最好的事情是,当3.1或任何更高版本发布时,您可以安全地升级,而不必担心您所做的更改被任何更新覆盖。