# 角色扮演游戏部分帖子的完全隐藏

**URL:** https://meta.discourse.org/t/full-hide-of-partial-posts-for-role-playing-game/305045
**Category:** Support
**Created:** [2024年四月2日 10:19 UTC](https://meta.discourse.org/t/full-hide-of-partial-posts-for-role-playing-game/305045 "2024-04-02T10:19:54Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [2024年五月19日 08:12 UTC](https://meta.discourse.org/t/full-hide-of-partial-posts-for-role-playing-game/305045/12 "2024-05-19T08:12:22Z")

</div>

我发现了这个，但遇到了一些问题。可能需要更新？

如果您使用 Discourse，签名可能是一个方便的搭配。

> [@Display different content within a topic based on user's groups membership?](https://meta.discourse.org/t/display-different-content-within-a-topic-based-on-users-groups-membership/227075/6?u=heliosurge):
>
> Finally got around to knocking this together as, [https://github.com/Umbrella-CAST/discourse-umbrella-groupswitchdisplay](https://github.com/Umbrella-CAST/discourse-umbrella-groupswitchdisplay) Super simple, just removes the targeted DIV from the DOM based on is the current user in a group name “foobar” or not in the group via “!foobar”. That lets me have a simple toggle display of content like the below image. Of course, if the component is disabled, then all of the content shows (since sans component the DOM doesn’t get trimmed down.) But this is good enough for w…

---

_[View the full topic](https://meta.discourse.org/t/full-hide-of-partial-posts-for-role-playing-game/305045)._
