# BBCode Login Code not working on discourse

**URL:** <https://meta.discourse.org/t/bbcode-login-code-not-working-on-discourse/363147>\
**Category:** Support\
**Tags:** bbcode\
**Created:** [April 23, 2025, 12:45pm UTC](https://meta.discourse.org/t/bbcode-login-code-not-working-on-discourse/363147 "2025-04-23T12:45:06Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Bhanu\_Agarwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bhanu_agarwal/32/488267_2.png) [@Bhanu\_Agarwal](https://meta.discourse.org/u/Bhanu_Agarwal)\
**Post date:** [April 23, 2025, 12:45pm UTC](https://meta.discourse.org/t/bbcode-login-code-not-working-on-discourse/363147/1 "2025-04-23T12:45:06Z")

</div>

Hi everyone,

I have been reading up about BBCode and how the following code can help me to hide certain content from the unregistered users.

[LOGIN]content to hide[/LOGIN]

I have installed & enabled BBCode plugin on my discourse instance, However, when I am creating any new post and trying to use these syntax, they aren’t working as expected.

To show an example, please refer to the following screenshots. Both screenshots (one from logged in profile and another from anonymous profile)

**View from the logged-in profile**

 ![Screenshot 2025-04-23 at 6.09.43 PM](https://global.discourse-cdn.com/meta/original/4X/c/f/1/cf164fcb9d6cfde598bec0c3c3b0a7c42e330077.jpeg)

**View from the anonymous profile**

 ![Screenshot 2025-04-23 at 6.11.18 PM](https://global.discourse-cdn.com/meta/original/4X/0/1/1/011fb2c3797ed4dee77e47db5682a0f460d9fea3.jpeg)

How to resolve this error? Has anyone ever faced this issue and can help me out, it would be really appreciated.

---

_[View the full topic](https://meta.discourse.org/t/bbcode-login-code-not-working-on-discourse/363147)._
