# Development

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

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

**Page:** 29

---

## [Discourse Offline Indicator Hack](https://meta.discourse.org/t/discourse-offline-indicator-hack/297679)

<div class="topic-metadata">

**Author:** [@Don](https://meta.discourse.org/u/Don)\
**Replies:** 2\
**Last updated:** [May 1, 2024, 11:27am UTC](https://meta.discourse.org/t/discourse-offline-indicator-hack/297679 "2024-05-01T11:27:00Z")

</div>

Hello :wave: This is a small hack (redesign) to the official offline indicator. Site Setting: enable offline indicator I’ve override the offline indicator template to add icons to it. To add the icon, I put the follow…

---

## [Is there any spellchecker?](https://meta.discourse.org/t/is-there-any-spellchecker/233283)

<div class="topic-metadata">

**Author:** [@Juraj\_Štefánik](https://meta.discourse.org/u/Juraj_%C5%A0tef%C3%A1nik)\
**Replies:** 5\
**Last updated:** [April 27, 2024, 9:58pm UTC](https://meta.discourse.org/t/is-there-any-spellchecker/233283 "2024-04-27T21:58:27Z")

</div>

Hello, Is there a jQuery spellchecker? I know that it exists in the browser, but that is unsatisfactory thank you

---

## [Is there a plugin for topics? For example Advertising or Promotion](https://meta.discourse.org/t/is-there-a-plugin-for-topics-for-example-advertising-or-promotion/305721)

<div class="topic-metadata">

**Author:** [@ogulcan1787](https://meta.discourse.org/u/ogulcan1787)\
**Replies:** 0\
**Last updated:** [April 27, 2024, 6:59pm UTC](https://meta.discourse.org/t/is-there-a-plugin-for-topics-for-example-advertising-or-promotion/305721 "2024-04-27T18:59:25Z")

</div>

Hi everyone, I searched in the forum but I couldn’t find such a plugin. I’m talking about what appears in the picture. Can the feature we selected when creating the topic appear next to the topic in?

---

## [Using HasCustomFields in a plugin](https://meta.discourse.org/t/using-hascustomfields-in-a-plugin/176469)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 9\
**Last updated:** [April 27, 2024, 1:01am UTC](https://meta.discourse.org/t/using-hascustomfields-in-a-plugin/176469 "2024-04-27T01:01:14Z")

</div>

I have a model in a plugin. The model is Pfaffmananger::Server, the table is pfaffmanager\_servers. For Reasons, I want to have custom fields for this model (I expect there to be ways that I want to extend the server data…

---

## [How to create a custom ChatGPT based bot?](https://meta.discourse.org/t/how-to-create-a-custom-chatgpt-based-bot/305629)

<div class="topic-metadata">

**Author:** [@GiggaPoggers](https://meta.discourse.org/u/GiggaPoggers)\
**Replies:** 2\
**Last updated:** [April 26, 2024, 11:56pm UTC](https://meta.discourse.org/t/how-to-create-a-custom-chatgpt-based-bot/305629 "2024-04-26T23:56:59Z")

</div>

I’m planning on making a chatGPT3.5 based bot for a forum i use, that also has a custom prompt. How might i do this without mod/admin, and just as a community member?

---

## [Adding new columns to user lists in groups](https://meta.discourse.org/t/adding-new-columns-to-user-lists-in-groups/305598)

<div class="topic-metadata">

**Author:** [@frye\_bradley](https://meta.discourse.org/u/frye_bradley)\
**Replies:** 3\
**Last updated:** [April 26, 2024, 8:48pm UTC](https://meta.discourse.org/t/adding-new-columns-to-user-lists-in-groups/305598 "2024-04-26T20:48:14Z")

</div>

Is it possible to add additional columns to the user lists in groups? I have a plugin that I’m attempting to add functionality to, which is adding a column to the users list in groups showing whether a user is Active, S…

---

## [How to use Discourse as microwebsite in mobile app](https://meta.discourse.org/t/how-to-use-discourse-as-microwebsite-in-mobile-app/304775)

<div class="topic-metadata">

**Author:** [@Umeey\_US](https://meta.discourse.org/u/Umeey_US)\
**Replies:** 3\
**Last updated:** [April 26, 2024, 5:55pm UTC](https://meta.discourse.org/t/how-to-use-discourse-as-microwebsite-in-mobile-app/304775 "2024-04-26T17:55:48Z")

</div>

Hey everyone, I’m currently working on a proof of concept (POC) where I want to test running the Discourse micro web suite within a Flutter app. My goal is to make it feel like a native experience, and I also want the a…

---

## [Discourse::Utils.execute\_command not using path](https://meta.discourse.org/t/discourse-utils-execute-command-not-using-path/305476)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 0\
**Last updated:** [April 25, 2024, 8:43pm UTC](https://meta.discourse.org/t/discourse-utils-execute-command-not-using-path/305476 "2024-04-25T20:43:00Z")

</div>

My plugin needs ansible. I was installing it with apt-get, but that version in debian seems broken, so I tried installing it with pipx install --include-deps ansible. So far so good. Works just fine as either root or dis…

---

## [Hook on changed custom field](https://meta.discourse.org/t/hook-on-changed-custom-field/305287)

<div class="topic-metadata">

**Author:** [@RGJ](https://meta.discourse.org/u/RGJ)\
**Replies:** 0\
**Last updated:** [April 24, 2024, 4:55pm UTC](https://meta.discourse.org/t/hook-on-changed-custom-field/305287 "2024-04-24T16:55:16Z")

</div>

In a plugin I want to run some code when a specific topic custom field changes. However, it seems that add\_model\_callback does not work because the code bypasses ActiveRecord and writes to the database directly. Does an…

---

## [Changing the background of the calendar to be other than transparent](https://meta.discourse.org/t/changing-the-background-of-the-calendar-to-be-other-than-transparent/305036)

<div class="topic-metadata">

**Author:** [@jenmck](https://meta.discourse.org/u/jenmck)\
**Replies:** 1\
**Last updated:** [April 24, 2024, 4:07am UTC](https://meta.discourse.org/t/changing-the-background-of-the-calendar-to-be-other-than-transparent/305036 "2024-04-24T04:07:56Z")

</div>

This is such a great plugin! One thing that’s difficult for us is that the background of the calendar is transparent, which is causing issues with clashing theme colors. Is it possible to change the background?

---

## [PR to fix username missing from minimal leaderboard](https://meta.discourse.org/t/pr-to-fix-username-missing-from-minimal-leaderboard/305028)

<div class="topic-metadata">

**Author:** [@fokx](https://meta.discourse.org/u/fokx)\
**Replies:** 1\
**Last updated:** [April 23, 2024, 8:43pm UTC](https://meta.discourse.org/t/pr-to-fix-username-missing-from-minimal-leaderboard/305028 "2024-04-23T20:43:21Z")

</div>

I made a PR, please review. https://github.com/discourse/discourse-gamification/pull/127

---

## [Route api creation of posts too many requests](https://meta.discourse.org/t/route-api-creation-of-posts-too-many-requests/304916)

<div class="topic-metadata">

**Author:** [@edu\_moura](https://meta.discourse.org/u/edu_moura)\
**Replies:** 3\
**Last updated:** [April 23, 2024, 4:43pm UTC](https://meta.discourse.org/t/route-api-creation-of-posts-too-many-requests/304916 "2024-04-23T16:43:33Z")

</div>

We’re doing some testing with multiple users, doing topic queries, topic creations, and also adding replies to a topic. In the middle of the test, the post creation route started returning code 429, and it was no longer …

---

## [How to get the request user agent on custom plugin?](https://meta.discourse.org/t/how-to-get-the-request-user-agent-on-custom-plugin/304846)

<div class="topic-metadata">

**Author:** [@Khrisna\_Gunanasurya](https://meta.discourse.org/u/Khrisna_Gunanasurya)\
**Replies:** 1\
**Last updated:** [April 22, 2024, 4:16pm UTC](https://meta.discourse.org/t/how-to-get-the-request-user-agent-on-custom-plugin/304846 "2024-04-22T16:16:54Z")

</div>

I build a custom plugin that requires user agent, when it’s deployed, it keeps showing an empty value, how to make the plugin able to get the data from discourse? I’m using discourse v2.9.0.beta1 update: Just realized…

---

## [Listen to revoked User API Key via MessageBus?](https://meta.discourse.org/t/listen-to-revoked-user-api-key-via-messagebus/304479)

<div class="topic-metadata">

**Author:** [@Alexander](https://meta.discourse.org/u/Alexander)\
**Replies:** 1\
**Last updated:** [April 22, 2024, 4:14am UTC](https://meta.discourse.org/t/listen-to-revoked-user-api-key-via-messagebus/304479 "2024-04-22T04:14:03Z")

</div>

I am creating a mobile application using React Native powered by Discourse (Communicating via REST Api). I use the User API Keys flow to make authenticated requests and the MessageBus to listen to different events (Impl…

---

## [How do I add custom advert code?](https://meta.discourse.org/t/how-do-i-add-custom-advert-code/304810)

<div class="topic-metadata">

**Author:** [@Ahmed26](https://meta.discourse.org/u/Ahmed26)\
**Replies:** 2\
**Last updated:** [April 21, 2024, 9:41pm UTC](https://meta.discourse.org/t/how-do-i-add-custom-advert-code/304810 "2024-04-21T21:41:51Z")

</div>

How can I add my advert code to the area I marked in the picture I’m doing wrong in the css section does not stand in the appropriate place

---

## [Secondary color of theme glass effect Discourse](https://meta.discourse.org/t/secondary-color-of-theme-glass-effect-discourse/304807)

<div class="topic-metadata">

**Author:** [@Ibrahim](https://meta.discourse.org/u/Ibrahim)\
**Replies:** 5\
**Last updated:** [April 21, 2024, 8:04pm UTC](https://meta.discourse.org/t/secondary-color-of-theme-glass-effect-discourse/304807 "2024-04-21T20:04:25Z")

</div>

I want to change the secondary color of my theme to #22222280 (80% opacity) so I can have kind of a glass effect on my Discourse forum. How can I do this when the theme doesnt allow you to enter more then 6 characters in…

---

## [Understanding client\_id in the message bus](https://meta.discourse.org/t/understanding-client-id-in-the-message-bus/304545)

<div class="topic-metadata">

**Author:** [@Mudit\_Maheshwari](https://meta.discourse.org/u/Mudit_Maheshwari)\
**Replies:** 5\
**Last updated:** [April 19, 2024, 9:50pm UTC](https://meta.discourse.org/t/understanding-client-id-in-the-message-bus/304545 "2024-04-19T21:50:59Z")

</div>

Hello :wave: , I’ve try to dive into the codebase recently, to figure out the client id in /message-bus/{client-id}/poll endpoint. Could someone please provide some guidance or direct me to the relevant code or document…

---

## [I have a problem](https://meta.discourse.org/t/i-have-a-problem/304566)

<div class="topic-metadata">

**Author:** [@unique](https://meta.discourse.org/u/unique)\
**Replies:** 3\
**Last updated:** [April 19, 2024, 8:57pm UTC](https://meta.discourse.org/t/i-have-a-problem/304566 "2024-04-19T20:57:10Z")

</div>

How can the user view the post, i.e. the value of last\_read\_post\_number is changed through which interface

---

## [Using api from custom component](https://meta.discourse.org/t/using-api-from-custom-component/304641)

<div class="topic-metadata">

**Author:** [@gar1t](https://meta.discourse.org/u/gar1t)\
**Replies:** 2\
**Last updated:** [April 19, 2024, 4:58pm UTC](https://meta.discourse.org/t/using-api-from-custom-component/304641 "2024-04-19T16:58:27Z")

</div>

I’m trying to access the api from a custom component with this snipped in the html body: \<script type="text/discourse-plugin" version="0.8"\> console.log("###########", api.getCurrentUser()); \</script\> This snippet ho…

---

## [Logged In User Data](https://meta.discourse.org/t/logged-in-user-data/304594)

<div class="topic-metadata">

**Author:** [@Harshit\_Dave](https://meta.discourse.org/u/Harshit_Dave)\
**Replies:** 3\
**Last updated:** [April 19, 2024, 3:39pm UTC](https://meta.discourse.org/t/logged-in-user-data/304594 "2024-04-19T15:39:43Z")

</div>

Hello Discourse, Can anyone help me to figure it out how can I get the logged in users data either in plugin or theme-component? Thank you!

---

## [How to make the category logo left aligned?](https://meta.discourse.org/t/how-to-make-the-category-logo-left-aligned/304087)

<div class="topic-metadata">

**Author:** [@ogulcan1787](https://meta.discourse.org/u/ogulcan1787)\
**Replies:** 2\
**Last updated:** [April 19, 2024, 1:34pm UTC](https://meta.discourse.org/t/how-to-make-the-category-logo-left-aligned/304087 "2024-04-19T13:34:42Z")

</div>

Hi everyone :hugs: How can I do like that ? This is blizzard’s forum site. I looked for CSS codes there but couldn’t find them.

---

## [How can I add an image to a subcategory and sizing that image?](https://meta.discourse.org/t/how-can-i-add-an-image-to-a-subcategory-and-sizing-that-image/304621)

<div class="topic-metadata">

**Author:** [@ogulcan1787](https://meta.discourse.org/u/ogulcan1787)\
**Replies:** 1\
**Last updated:** [April 19, 2024, 1:28pm UTC](https://meta.discourse.org/t/how-can-i-add-an-image-to-a-subcategory-and-sizing-that-image/304621 "2024-04-19T13:28:55Z")

</div>

Hello, I did changed ::before CSS codes background: none and I added background-image: url (…) But when I resize it, it doesn’t work the way I want. Like width : 60px and height : 60px or max-width : 60px Where am I…

---

## [Attempt to attach Glimmer fails with error](https://meta.discourse.org/t/attempt-to-attach-glimmer-fails-with-error/304235)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**Replies:** 6\
**Last updated:** [April 19, 2024, 11:14am UTC](https://meta.discourse.org/t/attempt-to-attach-glimmer-fails-with-error/304235 "2024-04-19T11:14:28Z")

</div>

I’m working on a PR to the Poll plugin. I’m attempting to render a Glimmer Component as a widget tree leaf as I’ve done several times before, but getting this strange error I’ve not seen before: TypeError: this.parentM…

---

## [Get current user locale](https://meta.discourse.org/t/get-current-user-locale/304557)

<div class="topic-metadata">

**Author:** [@Mudit\_Maheshwari](https://meta.discourse.org/u/Mudit_Maheshwari)\
**Replies:** 0\
**Last updated:** [April 19, 2024, 2:43am UTC](https://meta.discourse.org/t/get-current-user-locale/304557 "2024-04-19T02:43:40Z")

</div>

Hello! Is there a way to get the current user locale? I see that discourse/models/user has an attribute for the locale, but it is not populated when the app starts. Wondering why is that the case. Is it possible to get …

---

## [Show different header logo based on category?](https://meta.discourse.org/t/show-different-header-logo-based-on-category/167294)

<div class="topic-metadata">

**Author:** [@pacificmeister](https://meta.discourse.org/u/pacificmeister)\
**Replies:** 5\
**Last updated:** [April 18, 2024, 10:01am UTC](https://meta.discourse.org/t/show-different-header-logo-based-on-category/167294 "2024-04-18T10:01:23Z")

</div>

Is there a way to show a different main logo in the header (top left) when browsing threads within a certain category or their sub categories? Thank you.

---

## [How to create custom theme component?](https://meta.discourse.org/t/how-to-create-custom-theme-component/304319)

<div class="topic-metadata">

**Author:** [@Harshit\_Dave](https://meta.discourse.org/u/Harshit_Dave)\
**Replies:** 1\
**Last updated:** [April 17, 2024, 3:48pm UTC](https://meta.discourse.org/t/how-to-create-custom-theme-component/304319 "2024-04-17T15:48:02Z")

</div>

Hello Discourse, I want to create a custom theme component to render HTML from third-party API. I did look at the Brand Header but I think it won’t work for me as I want to show data from API. Hence, can anyone help me…

---

## [Insert a glimmer component after first post](https://meta.discourse.org/t/insert-a-glimmer-component-after-first-post/303282)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 11\
**Last updated:** [April 16, 2024, 6:03pm UTC](https://meta.discourse.org/t/insert-a-glimmer-component-after-first-post/303282 "2024-04-16T18:03:07Z")

</div>

I’ve got a glimmer component. It’s working. But I need it to go after the first post in a topic. There’s no plugin outlet there. I did figure out how to insert some text in the innerHTML of the \<article\> tag, and that p…

---

## [Learn about Discourse client-side flow?](https://meta.discourse.org/t/learn-about-discourse-client-side-flow/304062)

<div class="topic-metadata">

**Author:** [@Harshit\_Dave](https://meta.discourse.org/u/Harshit_Dave)\
**Replies:** 1\
**Last updated:** [April 16, 2024, 1:05pm UTC](https://meta.discourse.org/t/learn-about-discourse-client-side-flow/304062 "2024-04-16T13:05:37Z")

</div>

Hello Discourse, Can anyone help me to understand the discourse client side flow? like how can I make theme, plugins. how can I fetch data?

---

## [Hide poll result from anonymous](https://meta.discourse.org/t/hide-poll-result-from-anonymous/304030)

<div class="topic-metadata">

**Author:** [@John\_Vawn](https://meta.discourse.org/u/John_Vawn)\
**Replies:** 2\
**Last updated:** [April 16, 2024, 12:34pm UTC](https://meta.discourse.org/t/hide-poll-result-from-anonymous/304030 "2024-04-16T12:34:34Z")

</div>

Hi, is there a way to hide poll result from anonymous? I’m creating a forum about exam question solving which allow user to choose an answer for question. I don’t need my members to give false answer just to see others’ …

---

## [Issue with API for indexing with Coveo](https://meta.discourse.org/t/issue-with-api-for-indexing-with-coveo/301517)

<div class="topic-metadata">

**Author:** [@pdymfarrell](https://meta.discourse.org/u/pdymfarrell)\
**Replies:** 3\
**Last updated:** [April 15, 2024, 4:58pm UTC](https://meta.discourse.org/t/issue-with-api-for-indexing-with-coveo/301517 "2024-04-15T16:58:32Z")

</div>

Hi All, I am using the API to index the Discourse content with Coveo, there is one call that returns and error. The following requests work: GET https://community.myserver.com/c/11.json?per\_page=30&page=10 /c/11.json…

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

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