发布首次和回归用户的通知

为了鼓励对首次发帖或许久未发帖的用户展现善意,我们创建了一项新功能,以特别关注这些新用户或回归用户。

这些横幅对其他用户可见,但对发帖者本人不可见……默认情况下,仅对活跃度达到 信任等级 2 的社区成员可见。

它们的外观如下:

如何配置此功能?

管理员可以在站点设置中调整这些选项:

  • new user notice tl 控制谁能看到新用户通知,默认为 TL2。
  • returning user notice tl 控制谁能看到回归用户通知,默认为 TL2。
  • returning users days 控制用户被视为回归用户的时间阈值,默认为 120 天。
  • old post notice days 控制何时移除背景色并淡化通知,默认为 14 天。

如果您想修改这些通知的文本,可以在 管理 > 外观 > 站点文本 中进行设置(搜索 post.notice)。

如何禁用此功能?

有两种选项:

  • 对非工作人员和非 TL4 用户禁用:将 new user notice tl 和/或 returning user notice tl 提升至信任等级 4。TL4 仅通过手动授予,因此只有您的工作人员和最高信任等级的用户才能看到这些通知。

  • 全局禁用横幅:在 管理 > 外观 > 主题 中添加 CSS 以全局禁用这些横幅。

以下 CSS 将隐藏这两种类型的通知:

.post-notice {
  display: none;
}

或者,您也可以单独隐藏特定类型的通知:

.post-notice.new-user {
  display: none;
}

.post-notice.returning-user {
  display: none;
}

.post-notice.old {
  display: none;
}
61 个赞

These notices are awesome, thank you!

6 个赞

This is a great feature, but it’d be even better if we could not have these notices show up on certain topics. We have an introduce yourself topic and the first time poster notice adds a lot of noise.

4 个赞

You can hide them using the topic id :wink:

[data-topic-id="1234"] .post-notice {
  display: none;
}
21 个赞

How about hiding on topics with specific tag?

2 个赞

I don’t think that’s possible right now.

@maja, do you think you can do your :sparkles: and add one class per tag in the topic view (everywhere we show the category-* class if that’s easy enough)?

10 个赞

This is :sparkles:fantastic!:sparkles: After this feature was implemented, it sure did encourage our members to start welcoming new users! This helps our new users be encouraged to keep chatting! I’ve probably seen no new users not being welcomed, which is great! Great job Team Discourse!

13 个赞

Some amazing results as well. Here’s a returning user from 2013 :exploding_head:

Also definitely interesting when someone’s returning post is a PM as well.

10 个赞

Via css, it’s easy to hide the notice. If we use @awesomerobot guide in the first post and add the class .private_message, it should work.

I didn’t try it, but there’s no reason not to

.private_message .post-notice {
  display: none;
}
3 个赞

Just a heads up: some languages (e.g. romanian) doesn’t have a generic pronoun (like their), therefore you’re stuck with using a translation of either he or she.

Maybe this functionality need to be disabled by default on non-english forums?

Probably better to look at a different line than to disable a feature entirely.

3 个赞

Some would argue that English doesn’t either. The other solution is to use something like “he or she”.

3 个赞

We don’t capture gender to determine that. Talking to a Romanian colleague though, they insisted there were ways around this.

I think at this point most people making that argument in regard to English are doing so in bad faith.

This is a problem that has been discussed a bit more in other topics, including Gender and translations — Is it correct to say that Slavic languages fall into similar issues as other languages discussed where gender is often built-in to the language?

6 个赞

I’m on your side. I’m not convinced that it’s bad faith, though.

Admittedly, I am an Old White Guy, but I’m pretty far ahead of lots of Old White Guys on such issues. It wasn’t that long ago that I assiduously he/shed and/or (s)hed my way through a bunch of academic writing and the singular they wasn’t in the stuff I was reading a mere ten years ago, even by feminists who wouldn’t capitalize their names.

While those other Old White Guys are wrong, I’m not convinced that it’s bad faith. Oh, but you said most. So you’re right. :wink:

8 个赞

Oh absolutely, I didn’t mean to imply that you weren’t. I was trying to express that it’s a solved issue not really worth discussing with English, but there are a bunch of complexities with other languages where nouns and verb tenses carry gender so swapping in a single word isn’t always possible.

8 个赞

In many languages, gender isn’t so tightly linked to sex as it is in English. In French, for example, if you refer to a man as “une personne,” you use the feminine gender as long as “personne” is the focus. To return to referring to him as “il,” you have to use some masculine noun. It is not the person’s sex that determines, but the word’s gender. As Saki puts in the mouth of one of his characters, “French is a most dreadfully unsexing language!”

7 个赞

Indeed, slavic languagages have that (and many other problems) as well.
Also, In Czech we have 7 declension types which makes software translations (with variables in particular) challenging, to say the least.

Romans with their five declensions had it much easier:

(sorry for off-topic)

10 个赞

There is no generic pronoun in Romanian and I believe no other Romanic languages have it either. :frowning:

The good part is that the messages can be somewhat rephrased to not include the gender:

E prima oara cand %{user} a postat. Bine a venit!

* It’s first time %{user} has posted. Welcome!

A trecut ceva timp de cand %{user} a fost activ - ultimul mesaj trimis a fost pe %{date}.

* It’s been a while since %{user} was active - last message was sent on %{date}.

11 个赞

I would agree if the notice is also posted if the same user who just posted a PM then also post in the public forum. Is this the case?