# Using AI to create Hide content bbcode wrapper

**URL:** https://meta.discourse.org/t/using-ai-to-create-hide-content-bbcode-wrapper/321078
**Category:** Development
**Created:** [August 11, 2024, 1:33am UTC](https://meta.discourse.org/t/using-ai-to-create-hide-content-bbcode-wrapper/321078 "2024-08-11T01:33:25Z")
**Posts on this page:** 1
**Showing post:** 4

<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: [August 11, 2024, 1:48am UTC](https://meta.discourse.org/t/using-ai-to-create-hide-content-bbcode-wrapper/321078/4 "2024-08-11T01:48:44Z")

</div>

Here is the topic where a fellow created a component but when I tried it it wasn’t working and tried a pm to DeV. But might have moved on.

> [@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):
>
> 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/using-ai-to-create-hide-content-bbcode-wrapper/321078)._
