# Development

**URL:** https://meta.discourse.org/c/dev/7.md?page=41

[Latest](https://meta.discourse.org/latest.md) · [Categories](https://meta.discourse.org/categories.md) · [Tags](https://meta.discourse.org/tags.md)

**Page:** 42

---

## [Boxes with Subcategories into Bulleted List](https://meta.discourse.org/t/boxes-with-subcategories-into-bulleted-list/160141)

<div class="topic-metadata">

**Author:** [@MichelleBarnett](https://meta.discourse.org/u/MichelleBarnett)\
**Replies:** 1\
**Last updated:** [February 20, 2023, 12:48pm UTC](https://meta.discourse.org/t/boxes-with-subcategories-into-bulleted-list/160141 "2023-02-20T12:48:38Z")

</div>

Hello, I currently have the setting “Boxes with Subcategories” turned on, but I have a lot of subcategories, causing it to look a little crowded. (see image) Is there a way I can make the subcategories into a bullet…

---

## [How do I make changes using api.modifyClass?](https://meta.discourse.org/t/how-do-i-make-changes-using-api-modifyclass/276205)

<div class="topic-metadata">

**Author:** [@noel](https://meta.discourse.org/u/noel)\
**Replies:** 2\
**Last updated:** [September 9, 2023, 5:54am UTC](https://meta.discourse.org/t/how-do-i-make-changes-using-api-modifyclass/276205 "2023-09-09T05:54:46Z")

</div>

I’m trying to do something like this and have my dev environment, but i’m not familiar how to go about this? Do i use this to create a new plugin for my site? or is it embedded into one of the files?

---

## [Installing multiple copies of a theme that uses a data-template to modify user cards/profiles breaks both](https://meta.discourse.org/t/installing-multiple-copies-of-a-theme-that-uses-a-data-template-to-modify-user-cards-profiles-breaks-both/278098)

<div class="topic-metadata">

**Author:** [@Firepup650](https://meta.discourse.org/u/Firepup650)\
**Replies:** 17\
**Last updated:** [September 9, 2023, 2:08am UTC](https://meta.discourse.org/t/installing-multiple-copies-of-a-theme-that-uses-a-data-template-to-modify-user-cards-profiles-breaks-both/278098 "2023-09-09T02:08:51Z")

</div>

I was working on setting up my fork of the Custom Profile Link Component, and I needed two for different site links. However, currently, only users who have a username set for both sites show up. How can I ensure that bo…

---

## [Unique color scheme for a category](https://meta.discourse.org/t/unique-color-scheme-for-a-category/278084)

<div class="topic-metadata">

**Author:** [@Rhababo](https://meta.discourse.org/u/Rhababo)\
**Replies:** 2\
**Last updated:** [September 7, 2023, 11:04pm UTC](https://meta.discourse.org/t/unique-color-scheme-for-a-category/278084 "2023-09-07T23:04:10Z")

</div>

Greetings. I am porting an older forum onto discourse and the original site had a unique theme (including unique header logo) for one of their categories. My current solution is a theme-component that looks something l…

---

## [Support old-fashion telnet terminal access](https://meta.discourse.org/t/support-old-fashion-telnet-terminal-access/278185)

<div class="topic-metadata">

**Author:** [@fbpbdmin](https://meta.discourse.org/u/fbpbdmin)\
**Replies:** 8\
**Last updated:** [September 7, 2023, 5:16pm UTC](https://meta.discourse.org/t/support-old-fashion-telnet-terminal-access/278185 "2023-09-07T17:16:32Z")

</div>

the old fashion BBS, access in terminal telnet… how to make it accessible via terminal telnet ? wonder if someone has ideas on this :grinning: guess need to stand up a traditional BBS server, which could access disou…

---

## [Best practices for using Licensed code?](https://meta.discourse.org/t/best-practices-for-using-licensed-code/276227)

<div class="topic-metadata">

**Author:** [@denvergeeks](https://meta.discourse.org/u/denvergeeks)\
**Replies:** 10\
**Last updated:** [September 7, 2023, 4:27pm UTC](https://meta.discourse.org/t/best-practices-for-using-licensed-code/276227 "2023-09-07T16:27:58Z")

</div>

OK then that brings up a question that I have… I see 8 contributors to this repository… https://github.com/wyzelabs/discourse-wyze-theme I’ve “rolled my own” Theme Component stealing from this. I did it for my own lea…

---

## ['/admin/users/{id}/log\_out.json' is not working](https://meta.discourse.org/t/admin-users-id-log-out-json-is-not-working/221185)

<div class="topic-metadata">

**Author:** [@bymong](https://meta.discourse.org/u/bymong)\
**Replies:** 15\
**Last updated:** [September 6, 2023, 1:08pm UTC](https://meta.discourse.org/t/admin-users-id-log-out-json-is-not-working/221185 "2023-09-06T13:08:39Z")

</div>

I trying to make a sample code for LogOut My site dns is ‘aaa.com’, and User ID is ‘1’. I made url and send request like this. -post AAA Sorry Page Also, I send header with api-key, api-Username. But I recived res…

---

## [How to use the "Update a user" API to update the "flair\_group\_id" field?](https://meta.discourse.org/t/how-to-use-the-update-a-user-api-to-update-the-flair-group-id-field/277833)

<div class="topic-metadata">

**Author:** [@corot2a](https://meta.discourse.org/u/corot2a)\
**Replies:** 1\
**Last updated:** [September 5, 2023, 2:14pm UTC](https://meta.discourse.org/t/how-to-use-the-update-a-user-api-to-update-the-flair-group-id-field/277833 "2023-09-05T14:14:42Z")

</div>

The request body is like this: { "flair\_group\_id": "42" } The response shows “success” as "ok,But I found it didn’t take effect. Is there a solution?

---

## [Selected Quote Background Color](https://meta.discourse.org/t/selected-quote-background-color/277487)

<div class="topic-metadata">

**Author:** [@Aizada\_M](https://meta.discourse.org/u/Aizada_M)\
**Replies:** 12\
**Last updated:** [September 4, 2023, 4:25pm UTC](https://meta.discourse.org/t/selected-quote-background-color/277487 "2023-09-04T16:25:28Z")

</div>

Hallo! Please tell me an example of CSS code for setting the background color in the selected part of the text in the quote. Вот иллюстрация: On my site, the highlighted part of the quote doesn’t have a backgrou…

---

## [403 Error on Message Bus](https://meta.discourse.org/t/403-error-on-message-bus/277637)

<div class="topic-metadata">

**Author:** [@yusufipek](https://meta.discourse.org/u/yusufipek)\
**Replies:** 1\
**Last updated:** [September 3, 2023, 3:08pm UTC](https://meta.discourse.org/t/403-error-on-message-bus/277637 "2023-09-03T15:08:32Z")

</div>

Hello! I am trying to use Discourse under WAF and I am getting 403 on only message bus post requests. I understand this isn’t a Discourse specific problem but I have tried many things in the last day and I can’t understa…

---

## [No Community Name in /site.json](https://meta.discourse.org/t/no-community-name-in-site-json/277557)

<div class="topic-metadata">

**Author:** [@everwall](https://meta.discourse.org/u/everwall)\
**Replies:** 3\
**Last updated:** [September 3, 2023, 9:38am UTC](https://meta.discourse.org/t/no-community-name-in-site-json/277557 "2023-09-03T09:38:44Z")

</div>

I’m not sure if this is a bug, or by design, but inside /site.json, there is no “community\_name” variable or similar so that our app can get the name of the community. For context, we’re adding support for Discourse to …

---

## ["user\_fields" isn't set for non-staff on other users' profiles](https://meta.discourse.org/t/user-fields-isnt-set-for-non-staff-on-other-users-profiles/277592)

<div class="topic-metadata">

**Author:** [@Firepup650](https://meta.discourse.org/u/Firepup650)\
**Replies:** 0\
**Last updated:** [September 2, 2023, 11:27pm UTC](https://meta.discourse.org/t/user-fields-isnt-set-for-non-staff-on-other-users-profiles/277592 "2023-09-02T23:27:24Z")

</div>

Continuing the discussion from Using modifyClass for objects which are initialized early in boot: It appears that this doesn’t work for non-staff users because user\_fields isn’t set for these users. Is there an easy wor…

---

## [How do you get a singular message from the chat?](https://meta.discourse.org/t/how-do-you-get-a-singular-message-from-the-chat/277506)

<div class="topic-metadata">

**Author:** [@Firepup650](https://meta.discourse.org/u/Firepup650)\
**Replies:** 3\
**Last updated:** [September 2, 2023, 3:14pm UTC](https://meta.discourse.org/t/how-do-you-get-a-singular-message-from-the-chat/277506 "2023-09-02T15:14:24Z")

</div>

One of our forum members is building a chat-based statistics bot, and we’ve gotten almost everything working so far, except for reading the content of the message in which it was mentioned. Is there any way for us to pul…

---

## [BBcode color tags in a theme](https://meta.discourse.org/t/bbcode-color-tags-in-a-theme/211902)

<div class="topic-metadata">

**Author:** [@Sören\_Geier](https://meta.discourse.org/u/S%C3%B6ren_Geier)\
**Replies:** 12\
**Last updated:** [September 1, 2023, 5:18pm UTC](https://meta.discourse.org/t/bbcode-color-tags-in-a-theme/211902 "2023-09-01T17:18:04Z")

</div>

Continuing the discussion from Discourse BBCode color Can this be offered as a theme component? This would allow customers on managed instances to install it. I also feel like there should be a more intuitive way of sel…

---

## [How hard would it be for non programmers to be able to use the Discourse AI - AI bot to help them create plugins and/or themes](https://meta.discourse.org/t/how-hard-would-it-be-for-non-programmers-to-be-able-to-use-the-discourse-ai-ai-bot-to-help-them-create-plugins-and-or-themes/277345)

<div class="topic-metadata">

**Author:** [@EricGT](https://meta.discourse.org/u/EricGT)\
**Replies:** 10\
**Last updated:** [September 1, 2023, 4:54pm UTC](https://meta.discourse.org/t/how-hard-would-it-be-for-non-programmers-to-be-able-to-use-the-discourse-ai-ai-bot-to-help-them-create-plugins-and-or-themes/277345 "2023-09-01T16:54:56Z")

</div>

NOTE: If this starts a side discussion then it really needs to be moved to a new topic. I am giving you the details because it will help you understand ONE of my needs and to give more information that could also help o…

---

## [Highlight OP in a discussion](https://meta.discourse.org/t/highlight-op-in-a-discussion/277455)

<div class="topic-metadata">

**Author:** [@iamntz](https://meta.discourse.org/u/iamntz)\
**Replies:** 6\
**Last updated:** [September 5, 2023, 7:52am UTC](https://meta.discourse.org/t/highlight-op-in-a-discussion/277455 "2023-09-05T07:52:08Z")

</div>

One thing that Reddit does nicely (and I think FB too) is that they highlight the topic owner in discussions. You can achieve the same thing with a little CSS added in your theme: .topic-post.topic-owner .topic-meta-da…

---

## [Update user avatar\_template via API](https://meta.discourse.org/t/update-user-avatar-template-via-api/277324)

<div class="topic-metadata">

**Author:** [@Pello\_Mugica\_Lopez](https://meta.discourse.org/u/Pello_Mugica_Lopez)\
**Replies:** 2\
**Last updated:** [August 31, 2023, 7:00pm UTC](https://meta.discourse.org/t/update-user-avatar-template-via-api/277324 "2023-08-31T19:00:14Z")

</div>

Hello!!! I want to update the avatar of the forum from the website that manage the user, this image is in a S3 bucket. I’m trying that endpoint but when I do the tests via postman is not working anything, any clue why …

---

## [Automate sending chat messages when topics bumped](https://meta.discourse.org/t/automate-sending-chat-messages-when-topics-bumped/277297)

<div class="topic-metadata">

**Author:** [@aidanheerdegen](https://meta.discourse.org/u/aidanheerdegen)\
**Replies:** 0\
**Last updated:** [August 31, 2023, 6:08am UTC](https://meta.discourse.org/t/automate-sending-chat-messages-when-topics-bumped/277297 "2023-08-31T06:08:18Z")

</div>

We running a hybrid workshop and are using our discourse forum to support this. Every speaker has their own topic, where questions can be asked and answered, later if need be. Our strategy is to use a chat channel as t…

---

## [How to send Discourse Webhooks using a Discord Webhook?](https://meta.discourse.org/t/how-to-send-discourse-webhooks-using-a-discord-webhook/277208)

<div class="topic-metadata">

**Author:** [@Glow](https://meta.discourse.org/u/Glow)\
**Replies:** 4\
**Last updated:** [August 31, 2023, 5:07am UTC](https://meta.discourse.org/t/how-to-send-discourse-webhooks-using-a-discord-webhook/277208 "2023-08-31T05:07:55Z")

</div>

Like the title says, I am trying to add a webhook to log events, and even make a suggestions system, but I am running into an issue where it doesn’t send the information to my Discord Webhook. Please help!

---

## [TextDecoder is not defined when register asset to vendor\_pretty\_text](https://meta.discourse.org/t/textdecoder-is-not-defined-when-register-asset-to-vendor-pretty-text/277153)

<div class="topic-metadata">

**Author:** [@hawm](https://meta.discourse.org/u/hawm)\
**Replies:** 0\
**Last updated:** [August 30, 2023, 9:33am UTC](https://meta.discourse.org/t/textdecoder-is-not-defined-when-register-asset-to-vendor-pretty-text/277153 "2023-08-30T09:33:53Z")

</div>

I am registered a UMD module to :vendored\_pretty\_text, but got MiniRacer errors on the server side. Since it working fine on the client side, so I’m asking here not the module reop issues. register\_asset "vendor/javas…

---

## [API fails on secondsite, worked on primary/default site](https://meta.discourse.org/t/api-fails-on-secondsite-worked-on-primary-default-site/276937)

<div class="topic-metadata">

**Author:** [@MikeNolan](https://meta.discourse.org/u/MikeNolan)\
**Replies:** 5\
**Last updated:** [August 30, 2023, 1:04am UTC](https://meta.discourse.org/t/api-fails-on-secondsite-worked-on-primary-default-site/276937 "2023-08-30T01:04:24Z")

</div>

I’m splitting a site into two separate sites using the multi-site method and it’s Bang Your Head against the API time–again. Now what I’m trying to do is inactive the users from list 1 (the default site) on list 2 (the …

---

## [Access Denied. You were logout 'Refresh'](https://meta.discourse.org/t/access-denied-you-were-logout-refresh/277023)

<div class="topic-metadata">

**Author:** [@Farhan](https://meta.discourse.org/u/Farhan)\
**Replies:** 0\
**Last updated:** [August 29, 2023, 11:22am UTC](https://meta.discourse.org/t/access-denied-you-were-logout-refresh/277023 "2023-08-29T11:22:48Z")

</div>

We are using discourse in react-native-web-view with some of the APIs to login, create user and notification to show in app redirect to discourse when user opens it. There is a behavior that has been puzzling us: User …

---

## [How to limit some of markdown features for first post?](https://meta.discourse.org/t/how-to-limit-some-of-markdown-features-for-first-post/276939)

<div class="topic-metadata">

**Author:** [@hawm](https://meta.discourse.org/u/hawm)\
**Replies:** 3\
**Last updated:** [August 29, 2023, 1:09am UTC](https://meta.discourse.org/t/how-to-limit-some-of-markdown-features-for-first-post/276939 "2023-08-29T01:09:21Z")

</div>

I want to limit some markdown features for the topic’s first post, which is from my plugin. It could easily be implemented on the client side by accessing the topicFirstPost attribute of the composer model. However, on …

---

## [Requiring external gems](https://meta.discourse.org/t/requiring-external-gems/53280)

<div class="topic-metadata">

**Author:** [@kgish](https://meta.discourse.org/u/kgish)\
**Replies:** 9\
**Last updated:** [August 28, 2023, 3:04pm UTC](https://meta.discourse.org/t/requiring-external-gems/53280 "2023-08-28T15:04:24Z")

</div>

For a plugin that I am writing, I would like to use some external gem files that are not present in the default discourse gemfile. What is the standard way of doing this without being able to modify the discourse gemfil…

---

## [Category list\_type = how to get category ID?](https://meta.discourse.org/t/category-list-type-how-to-get-category-id/276836)

<div class="topic-metadata">

**Author:** [@Lilly](https://meta.discourse.org/u/Lilly)\
**Replies:** 1\
**Last updated:** [August 27, 2023, 7:30pm UTC](https://meta.discourse.org/t/category-list-type-how-to-get-category-id/276836 "2023-08-27T19:30:32Z")

</div>

Ok code gurus I’m breaking code and I can’t figure this out. I have a list setting in a theme component with a list\_type: category. How can I get both a category name and ID from this setting? I can get the name an…

---

## [Adding CSS to the editor preview](https://meta.discourse.org/t/adding-css-to-the-editor-preview/276756)

<div class="topic-metadata">

**Author:** [@FroggyC](https://meta.discourse.org/u/FroggyC)\
**Replies:** 4\
**Last updated:** [August 27, 2023, 6:48pm UTC](https://meta.discourse.org/t/adding-css-to-the-editor-preview/276756 "2023-08-27T18:48:34Z")

</div>

Continuing the discussion from Ordered lists with non-number markers: Quotes from other thread for context. What I’m asking in this thread is: is there any way to add custom CSS that is also applied to the editor pr…

---

## [Modifying the history view](https://meta.discourse.org/t/modifying-the-history-view/276779)

<div class="topic-metadata">

**Author:** [@Heddson](https://meta.discourse.org/u/Heddson)\
**Replies:** 2\
**Last updated:** [August 26, 2023, 7:20pm UTC](https://meta.discourse.org/t/modifying-the-history-view/276779 "2023-08-26T19:20:15Z")

</div>

Is it possible to modify the history view with a theme component? I’m interested in changing the rendered output. I was thinking about something like api.decorateCookedElement() where you can modify the cooked posts (bu…

---

## [Add button in header for logged in users](https://meta.discourse.org/t/add-button-in-header-for-logged-in-users/276704)

<div class="topic-metadata">

**Author:** [@Sami\_Syed](https://meta.discourse.org/u/Sami_Syed)\
**Replies:** 4\
**Last updated:** [August 26, 2023, 6:07pm UTC](https://meta.discourse.org/t/add-button-in-header-for-logged-in-users/276704 "2023-08-26T18:07:38Z")

</div>

How can I add a button to the header for logged-in users only. I would need to add custom text and link for this button.

---

## [What are the optional integer values for the "permissions.everyone" field in the "Creates a category" API?](https://meta.discourse.org/t/what-are-the-optional-integer-values-for-the-permissions-everyone-field-in-the-creates-a-category-api/276761)

<div class="topic-metadata">

**Author:** [@mikeguo](https://meta.discourse.org/u/mikeguo)\
**Replies:** 1\
**Last updated:** [August 26, 2023, 12:33pm UTC](https://meta.discourse.org/t/what-are-the-optional-integer-values-for-the-permissions-everyone-field-in-the-creates-a-category-api/276761 "2023-08-26T12:33:06Z")

</div>

And what do each of these values signify? Is there comprehensive documentation available?

---

## [How to implement custom tag ordering](https://meta.discourse.org/t/how-to-implement-custom-tag-ordering/276297)

<div class="topic-metadata">

**Author:** [@creekorful](https://meta.discourse.org/u/creekorful)\
**Replies:** 1\
**Last updated:** [August 26, 2023, 10:07am UTC](https://meta.discourse.org/t/how-to-implement-custom-tag-ordering/276297 "2023-08-26T10:07:55Z")

</div>

Hello there. I am trying to perform a custom ordering of topic tags by their tag group name value. I have been looking at theme components and I think that’s the way to go but I would like some opinion on this as well …

[Previous page](https://meta.discourse.org/c/dev/7.md?page=40)

[Next page](https://meta.discourse.org/c/dev/7.md?page=42)
