Completely Edit Welcome Message

Upon a new member registering for Discourse, they are sent a message by the system (or whatever account you specify) introducing them to the community. Upon some investigation, it seems I can’t edit the entire message, only certain parts!

This part seems to be included by default!

We believe in civilized community behavior at all times.

Enjoy your stay!

(If you need to communicate with staff members as a new user, just reply to this message.)

Any chance this can change? I don’t know about everyone else, but I would like my main site’s welcome message to be fully adaptable to the individual website!

Upon looking at the Main Discourse Repo, the config /locales/server.en.yml file seems to be where the default message is being hard coded. Any chance this could change?

You should be able to change this in your admin area.

1 个赞

That’s soo strange… I do not see that at all!

Oh wait… my link refers to system_messages.usage_tips.text_body_template which is what is included when a user is sent a message upon sign on.

What you’re referring to is system_messages.welcome_user.text_body_template.

Checking the discourse repo here, it seems the welcome_user action is defined when a user activates his account (so I’m a little confused since my setup doesn’t have any such variable in Customize > Text Content Section

The only editable text content listed for me are the following:

你好,看来欢迎信息中还有一些硬编码的部分。我建议将其设置为完全可编辑。如有误解,欢迎随时指正!

您能否发布一段无法自定义的文本示例?Discourse 中所有可见文本都应支持本地化——如果存在不支持的情况,我们将尽快修复。

2 个赞

没问题!这是无法自定义的部分——它未包含在“system_messages.usage_tips.text_body_template”中

那不是 usage_tips 消息

2 个赞

所以这些合并成一条消息了?

啊,没错,你说得对——它们是合并在一起的。system_messages.welcome_user.text_body_template 中包含了 usage_tips 变量。而 usage_tips 变量是由 system_messages.usage_tips.text_body_template 生成的。

4 个赞

明白了。也许把这些模板合并到一条消息里,编辑起来会更方便?我去编辑我的 welcome_user 模板。:slight_smile:

不过,该文本在其他区域也会用到,因此如果这样做,它就会变成硬编码并在多条消息中重复……之所以是现在的样子,是有原因的。

4 个赞

你好,我完全信任那个答案。Discourse 非常出色。

那么,剩下的问题是,对于像我这样的普通管理员来说,了解这些消息中的某些内容在用户参与社区的过程中何时何地被使用的最佳方法是什么?

我发现使用管理员界面进行搜索效果不错,但这可能取决于熟悉程度、运气和搜索技巧的结合。

也许你可以通过扫描或搜索 locale yml 文件来帮助解决熟悉程度的问题?

https://github.com/discourse/discourse/tree/master/config/locales

你好,感谢分享链接。我会尽可能查看这些内容。如果能在软件中适时提供“提示”,帮助揭示各种消息的使用场景,那就太棒了。不过,考虑到这可能需要投入大量时间和精力,而收益相对有限,我理解这或许并非优先事项。

此主题在 31 小时后自动关闭。不再允许新回复。