# 如何简化对个人的私信

**URL:** <https://meta.discourse.org/t/how-to-simplify-dms-to-individuals/145600>\
**Category:** UX\
**Created:** [2020年三月25日 20:43 UTC](https://meta.discourse.org/t/how-to-simplify-dms-to-individuals/145600 "2020-03-25T20:43:02Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![jord8on](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jord8on/32/166809_2.png) [@jord8on](https://meta.discourse.org/u/jord8on)\
**Post date:** [2020年三月25日 20:43 UTC](https://meta.discourse.org/t/how-to-simplify-dms-to-individuals/145600/1 "2020-03-25T20:43:03Z")

</div>

我喜欢讨论中使用的基本工具也能用于私信，这非常有助于群组消息。但在我与新用户互动的过程中，我认为这种私信/私聊（Direct Message 或 Private Message）体验可能会让新用户感到困惑。

是否可以通过一些简单的 CSS 调整，让一对一私信的界面看起来更像消息线程，而非讨论线程？例如，在通过私信与单个用户交流时，显示你在讨论中会看到的所有统计信息就显得不太合理。

例如：

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/4/240b476c4e8ce94ec0b54d18ec060fc679a523b8.jpeg)

---

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [2020年三月25日 21:23 UTC](https://meta.discourse.org/t/how-to-simplify-dms-to-individuals/145600/2 "2020-03-25T21:23:57Z")

</div>

试试这个：

```css
.archetype-private_message .topic-map {
    display: none;
}

```

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [2020年三月25日 21:31 UTC](https://meta.discourse.org/t/how-to-simplify-dms-to-individuals/145600/3 "2020-03-25T21:31:39Z")

</div>

我个人觉得查看次数非常有用，可以知道消息是否已被阅读。它主要适用于一对一消息，因为它无法告诉你具体是谁查看了消息。

如果你移除了添加/移除按钮，你将如何邀请其他人加入讨论，从而从两名参与者扩展到更多人？

> [@jord8on](#):
>
> （私信或私人消息）

我们实际上并不使用“私人消息”这个术语。使用“个人消息”是可以的，但它并不暗示隐私性。

---

<div class="post-metadata">

**Author:** ![jordan.vidrine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jordan.vidrine/32/515563_2.png) [@jordan.vidrine](https://meta.discourse.org/u/jordan.vidrine)\
**Post date:** [2020年三月25日 21:32 UTC](https://meta.discourse.org/t/how-to-simplify-dms-to-individuals/145600/4 "2020-03-25T21:32:38Z")

</div>

我认为保留这一点很重要，因为在许多情况下，私信是在一组用户之间传播的，而不是仅限于一对一。

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [2020年三月25日 21:33 UTC](https://meta.discourse.org/t/how-to-simplify-dms-to-individuals/145600/5 "2020-03-25T21:33:26Z")

</div>

我认为原帖请求的关键在于，仅在“与个人发消息”时才进行这些更改。

据我所知，目前没有 CSS 选择器可以区分参与方的数量。

---

<div class="post-metadata">

**Author:** ![jord8on](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jord8on/32/166809_2.png) [@jord8on](https://meta.discourse.org/u/jord8on)\
**Post date:** [2020年三月25日 21:45 UTC](https://meta.discourse.org/t/how-to-simplify-dms-to-individuals/145600/6 "2020-03-25T21:45:56Z")

</div>

非常感谢 @jordan.vidrine 和 @Stephen 提出的所有观点（一如既往地棒 ツ）

关于希望能看到对方是否已读这一点，确实很有道理。我其实喜欢尽可能多地获取/拥有/查看数据，但当时主要担心的是这里的用户体验。我发送了几条私信，对方要么还没看到，要么还没回复。不过我们才刚刚开始（也有几个人已经回复了私信）。

我发现大多数社交平台上的私信体验，都类似于短信对话：你发一条消息，对方回复。你只能看到自己的名称/头像、对方的名称/头像以及你们之间的消息。群聊也是如此。非常简洁。

我想，如果我想实现那样的体验，可能需要创建一个主题或类似的东西来达成这种类型的用户体验？

正如大多数非 UX 专家参与的 UX 讨论一样，他们提出的需求往往并非他们真正想要的，或者可能并不是最佳解决方案。我仍在斟酌是否要移除这个“主题地图”……但我很高兴 @Canapin 提供了一个可行的解决方案，如果我想移除这个数据框以简化用户体验的话……

> [@Canapin](#):
>
> 试试这个：
> 
> ```plaintext
> .archetype-private_message .topic-map {
> display: none;
> }
> 
> ```

---

<div class="post-metadata">

**Author:** ![jordan.vidrine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jordan.vidrine/32/515563_2.png) [@jordan.vidrine](https://meta.discourse.org/u/jordan.vidrine)\
**Post date:** [2020年三月25日 22:05 UTC](https://meta.discourse.org/t/how-to-simplify-dms-to-individuals/145600/7 "2020-03-25T22:05:03Z")

</div>

让我先说明一下，这并不是最简洁的答案……：smile:

我不太确定您具体需要针对哪个组件或主题进行修改。

这涉及重写用于向用户显示私信（PMS）的 Discourse 模板/组件。关于如何复用 Discourse 模板/组件，可参考 [https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648。如果您尚未查看，建议浏览该页面，或许能为您提供更明确的方向。](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648%E3%80%82%E5%A6%82%E6%9E%9C%E6%82%A8%E5%B0%9A%E6%9C%AA%E6%9F%A5%E7%9C%8B%EF%BC%8C%E5%BB%BA%E8%AE%AE%E6%B5%8F%E8%A7%88%E8%AF%A5%E9%A1%B5%E9%9D%A2%EF%BC%8C%E6%88%96%E8%AE%B8%E8%83%BD%E4%B8%BA%E6%82%A8%E6%8F%90%E4%BE%9B%E6%9B%B4%E6%98%8E%E7%A1%AE%E7%9A%84%E6%96%B9%E5%90%91%E3%80%82)

---

<div class="post-metadata">

**Author:** ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)\
**Post date:** [2020年四月13日 07:38 UTC](https://meta.discourse.org/t/how-to-simplify-dms-to-individuals/145600/8 "2020-04-13T07:38:54Z")

</div>

我完全同意，这对 Discourse 的新用户来说是一个重大问题，确实需要解决。我在平台上的头几周也为此挣扎，现在看到我的用户也在为此困扰。

就在刚才尝试解决这个问题时，我发现这个主题组件很有帮助，但它只是一个部分解决方案，因为它无法区分发给个人的私信和发给群组的私信，也不影响电子邮件：

> [@Change color of personal messages](https://meta.discourse.org/t/change-color-of-personal-messages/108816):
>
> For some time I borrowed @ChrisBeach’s CSS snippet, so I converted it into a theme component, find the result here: What it does It changes the appearance of the page when a personal message is being read: the head banner color (with a gradient), the font color, the background color, the title color, by adding some text after reply. All these changes are optional and can be toggled with their on/off setting. The main «personal messages» color can also be changed with a setting. To tweak t…

如果能解决这一问题就太好了。

---

<div class="post-metadata">

**Author:** ![jord8on](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jord8on/32/166809_2.png) [@jord8on](https://meta.discourse.org/u/jord8on)\
**Post date:** [2020年四月13日 16:03 UTC](https://meta.discourse.org/t/how-to-simplify-dms-to-individuals/145600/9 "2020-04-13T16:03:50Z")

</div>

嘿，Nathan！谢谢你的回复。我认为那个插件能解决我最初的问题，足以满足我的需求。我唯一觉得遗憾的是，它是一个主题（THEME）而不是主题组件（THEME COMPONENT）。有没有办法将这些调整作为组件应用到我的现有默认主题中？

---

<div class="post-metadata">

**Author:** ![Rhidian](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rhidian/32/176630_2.png) [@Rhidian](https://meta.discourse.org/u/Rhidian)\
**Post date:** [2020年四月13日 16:14 UTC](https://meta.discourse.org/t/how-to-simplify-dms-to-individuals/145600/10 "2020-04-13T16:14:31Z")

</div>

> [@jord8on](#):
>
> 有没有办法将这些调整作为组件应用到我的现有默认主题中？

@nathank earlier kindly 向我展示了这一点。

你可以使用主题底部的“转换”按钮将主题转换为主题组件（反之亦然）。

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/6/b6e4a9c85531b2c8d3fc3040fca75b1d40a8d62c.jpeg)

---

<div class="post-metadata">

**Author:** ![jord8on](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jord8on/32/166809_2.png) [@jord8on](https://meta.discourse.org/u/jord8on)\
**Post date:** [2020年四月13日 16:20 UTC](https://meta.discourse.org/t/how-to-simplify-dms-to-individuals/145600/11 "2020-04-13T16:20:25Z")

</div>

🙌

太感谢了！你让我今天心情大好！我从来不知道这个功能，但现在用起来太开心了！

现在我得回想一下之前想用的其他主题了，当时因为觉得它们不是组件，所以以为无法使用！

---

<div class="post-metadata">

**Author:** ![jord8on](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jord8on/32/166809_2.png) [@jord8on](https://meta.discourse.org/u/jord8on)\
**Post date:** [2020年四月14日 18:23 UTC](https://meta.discourse.org/t/how-to-simplify-dms-to-individuals/145600/12 "2020-04-14T18:23:33Z")

</div>

@Rhidian 提供了另一个绝妙的解决方案，通过让私信（DM）看起来更像聊天气泡消息来改变其外观和样式，您可以在这里看到：

> [@Personal Message Bubbles](https://meta.discourse.org/t/personal-message-bubbles/147994):
>
> exclamation The functionality of this Theme Component was [added to Discourse core from version 2.8.0 onwards](https://meta.discourse.org/t/2-8-0-beta4-security-release-new-pm-style-and-more/197878). You won’t have much joy if you continue to use it after upgrading beyond that version! I’ve created a theme component to change the style of the personal message posts to bubbles to help distinguish them from topics. Settings: Set the background color of the bubble to your theme’s primary, secondary or tertiary colors, or a selection of other common colors. Select different color…

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2020年五月14日 18:23 UTC](https://meta.discourse.org/t/how-to-simplify-dms-to-individuals/145600/13 "2020-05-14T18:23:34Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
