# Development

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

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

**Page:** 13

---

## [Get all users who have watching as notification type](https://meta.discourse.org/t/get-all-users-who-have-watching-as-notification-type/294671)

<div class="topic-metadata">

**Author:** [@omppatil](https://meta.discourse.org/u/omppatil)\
**Replies:** 2\
**Last updated:** [April 23, 2025, 6:24am UTC](https://meta.discourse.org/t/get-all-users-who-have-watching-as-notification-type/294671 "2025-04-23T06:24:35Z")

</div>

Hi!, How do we get all the users who have “watching” as notification type in ruby?

---

## [Can I make a theme available to specific user groups only?](https://meta.discourse.org/t/can-i-make-a-theme-available-to-specific-user-groups-only/362653)

<div class="topic-metadata">

**Author:** [@SubStrider](https://meta.discourse.org/u/SubStrider)\
**Replies:** 9\
**Last updated:** [April 21, 2025, 6:43pm UTC](https://meta.discourse.org/t/can-i-make-a-theme-available-to-specific-user-groups-only/362653 "2025-04-21T18:43:19Z")

</div>

Is it possible to make a theme available to only specific user groups? Basically I would want to have “premium themes” for paid users. Similarly in a theme like Horizon, it is possible to have color schemes available to…

---

## [Dependent dropdowns on signup form](https://meta.discourse.org/t/dependent-dropdowns-on-signup-form/362820)

<div class="topic-metadata">

**Author:** [@Maarahva\_Platvorm](https://meta.discourse.org/u/Maarahva_Platvorm)\
**Replies:** 0\
**Last updated:** [April 21, 2025, 3:31pm UTC](https://meta.discourse.org/t/dependent-dropdowns-on-signup-form/362820 "2025-04-21T15:31:40Z")

</div>

Hi. I’ve been able to create a code with the help of GROK and ChatGPT, that I inserted into components JS tab, after I created some custom user fields in the signup menu. I have managed to get the functionality of the …

---

## [/posts create and update consistency](https://meta.discourse.org/t/posts-create-and-update-consistency/362783)

<div class="topic-metadata">

**Author:** [@angus](https://meta.discourse.org/u/angus)\
**Replies:** 0\
**Last updated:** [April 21, 2025, 9:07am UTC](https://meta.discourse.org/t/posts-create-and-update-consistency/362783 "2025-04-21T09:07:31Z")

</div>

The WP Discourse plugin currently uses a single request to create posts when publishing posts to Discourse and (potentially) two requests when updating posts. The first request on update is to PostController#update, for…

---

## [Accessing Database while discourse not running](https://meta.discourse.org/t/accessing-database-while-discourse-not-running/362626)

<div class="topic-metadata">

**Author:** [@Alexander\_Wright](https://meta.discourse.org/u/Alexander_Wright)\
**Replies:** 0\
**Last updated:** [April 19, 2025, 4:33pm UTC](https://meta.discourse.org/t/accessing-database-while-discourse-not-running/362626 "2025-04-19T16:33:21Z")

</div>

Danger!! This may well break your installation, but it may get you out of a hole. Use these instructions with great care. If you can’t get the discourse container to run with ./launcher rebuild app for any reason and n…

---

## [How are you using AI/LLMs to create themes/components/plugins?](https://meta.discourse.org/t/how-are-you-using-ai-llms-to-create-themes-components-plugins/362401)

<div class="topic-metadata">

**Author:** [@jimkleiber](https://meta.discourse.org/u/jimkleiber)\
**Replies:** 3\
**Last updated:** [April 18, 2025, 4:05pm UTC](https://meta.discourse.org/t/how-are-you-using-ai-llms-to-create-themes-components-plugins/362401 "2025-04-18T16:05:30Z")

</div>

When ChatGPT and LLMs were first getting popular, I tried to create Discourse theme components and plugins using AI and found them severely lacking, but I haven’t tried since. Have you been using AI to write code to mod…

---

## [GJS component fails with "undefined helper" error when shown via modal service (Discourse 3.5.0](https://meta.discourse.org/t/gjs-component-fails-with-undefined-helper-error-when-shown-via-modal-service-discourse-3-5-0/362272)

<div class="topic-metadata">

**Author:** [@SubStrider](https://meta.discourse.org/u/SubStrider)\
**Replies:** 5\
**Last updated:** [April 18, 2025, 4:15am UTC](https://meta.discourse.org/t/gjs-component-fails-with-undefined-helper-error-when-shown-via-modal-service-discourse-3-5-0/362272 "2025-04-18T04:15:20Z")

</div>

encountering a persistent rendering error when trying to display a Glimmer component (.gjs) as a modal using this.modal.show(). The modal is triggered from another GJS component added to the post menu via the post-menu-b…

---

## [How to create a custom activity tab in user profile?](https://meta.discourse.org/t/how-to-create-a-custom-activity-tab-in-user-profile/361047)

<div class="topic-metadata">

**Author:** [@SubStrider](https://meta.discourse.org/u/SubStrider)\
**Replies:** 8\
**Last updated:** [April 17, 2025, 7:33am UTC](https://meta.discourse.org/t/how-to-create-a-custom-activity-tab-in-user-profile/361047 "2025-04-17T07:33:06Z")

</div>

I was dabbling with plugin development and while I have been able to make the plugin settings appear on the admin settings page, I am not quite sure how to make the UI elements to appear on the discourse UI. If someone …

---

## [Regularly fetching database info for user fields without logout](https://meta.discourse.org/t/regularly-fetching-database-info-for-user-fields-without-logout/362097)

<div class="topic-metadata">

**Author:** [@Dre\_M](https://meta.discourse.org/u/Dre_M)\
**Replies:** 1\
**Last updated:** [April 16, 2025, 2:00pm UTC](https://meta.discourse.org/t/regularly-fetching-database-info-for-user-fields-without-logout/362097 "2025-04-16T14:00:52Z")

</div>

Hi! We’ve successfully brought membership and other account information from our database into the “custom fields” using rest API, but right now it’s requiring each user to log out and then log back in (using our SSO) b…

---

## [Customizing the /about page with user bios](https://meta.discourse.org/t/customizing-the-about-page-with-user-bios/362093)

<div class="topic-metadata">

**Author:** [@aas](https://meta.discourse.org/u/aas)\
**Replies:** 1\
**Last updated:** [April 16, 2025, 1:39pm UTC](https://meta.discourse.org/t/customizing-the-about-page-with-user-bios/362093 "2025-04-16T13:39:01Z")

</div>

The default /about page for a Discourse site that displays info for moderators and admins only displays each user’s username, name, and title. How do I customize the about page so that it also displays the contents of ea…

---

## [Getting Uncaught SyntaxError: JSON.parse: unterminated string error on a fresh dev install](https://meta.discourse.org/t/getting-uncaught-syntaxerror-json-parse-unterminated-string-error-on-a-fresh-dev-install/361840)

<div class="topic-metadata">

**Author:** [@SubStrider](https://meta.discourse.org/u/SubStrider)\
**Replies:** 0\
**Last updated:** [April 15, 2025, 4:42am UTC](https://meta.discourse.org/t/getting-uncaught-syntaxerror-json-parse-unterminated-string-error-on-a-fresh-dev-install/361840 "2025-04-15T04:42:54Z")

</div>

Getting the following JS console error on a fresh dev install created using these steps - Developing Discourse using a Dev Container Is it something to be ignored and won’t interfere with active plugin development or do…

---

## [Upcoming topic-list changes - how to prepare themes and plugins](https://meta.discourse.org/t/upcoming-topic-list-changes-how-to-prepare-themes-and-plugins/343404)

<div class="topic-metadata">

**Author:** [@david](https://meta.discourse.org/u/david)\
**Replies:** 35\
**Last updated:** [April 14, 2025, 3:08pm UTC](https://meta.discourse.org/t/upcoming-topic-list-changes-how-to-prepare-themes-and-plugins/343404 "2025-04-14T15:08:07Z")

</div>

As part of our ongoing quest to standardise the rendering systems across Discourse’s codebase, we’re replacing the implementation of the topic-list. Previously, this used a ‘raw handlebars’ (.hbr) approach, and could be…

---

## [Moving to JS native class syntax in themes and plugins](https://meta.discourse.org/t/moving-to-js-native-class-syntax-in-themes-and-plugins/356588)

<div class="topic-metadata">

**Author:** [@david](https://meta.discourse.org/u/david)\
**Replies:** 1\
**Last updated:** [April 13, 2025, 6:37pm UTC](https://meta.discourse.org/t/moving-to-js-native-class-syntax-in-themes-and-plugins/356588 "2025-04-13T18:37:58Z")

</div>

Over the last few years, we’ve been moving away from Ember’s legacy .extend({ ... }) syntax and towards native-class syntax like class extends Foo {...}. While the legacy syntax is technically still supported, modern JS…

---

## [Prettier complains that @discourseComputed cannot be used to decorate literal properties](https://meta.discourse.org/t/prettier-complains-that-discoursecomputed-cannot-be-used-to-decorate-literal-properties/271141)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 3\
**Last updated:** [April 13, 2025, 6:36pm UTC](https://meta.discourse.org/t/prettier-complains-that-discoursecomputed-cannot-be-used-to-decorate-literal-properties/271141 "2025-04-13T18:36:53Z")

</div>

I don’t understand why prettier is unhappy with the following code. Error is SyntaxError: Decorators cannot be used to decorate object literal properties. (9:3) I have the same construction in other places that look, …

---

## [Add plugin outlet below the login buttons](https://meta.discourse.org/t/add-plugin-outlet-below-the-login-buttons/361647)

<div class="topic-metadata">

**Author:** [@Lumi](https://meta.discourse.org/u/Lumi)\
**Replies:** 1\
**Last updated:** [April 13, 2025, 3:02pm UTC](https://meta.discourse.org/t/add-plugin-outlet-below-the-login-buttons/361647 "2025-04-13T15:02:01Z")

</div>

I would need a plugin outlet below the login buttons in the login-required splash screen. My use case is adding a custom footer to the splash with links to tos and privacy policy.

---

## [Is it possible to develop the style of the discourse poll function as shown in the picture?](https://meta.discourse.org/t/is-it-possible-to-develop-the-style-of-the-discourse-poll-function-as-shown-in-the-picture/361642)

<div class="topic-metadata">

**Author:** [@daviddd](https://meta.discourse.org/u/daviddd)\
**Replies:** 1\
**Last updated:** [April 13, 2025, 2:55pm UTC](https://meta.discourse.org/t/is-it-possible-to-develop-the-style-of-the-discourse-poll-function-as-shown-in-the-picture/361642 "2025-04-13T14:55:43Z")

</div>

The default style of the poll function is not convenient enough, can I change the style of the poll function to an image style?

---

## [Built a new frontend in Next.js using Discourse API. Feedback?](https://meta.discourse.org/t/built-a-new-frontend-in-next-js-using-discourse-api-feedback/360779)

<div class="topic-metadata">

**Author:** [@ncaming215](https://meta.discourse.org/u/ncaming215)\
**Replies:** 2\
**Last updated:** [April 8, 2025, 2:13pm UTC](https://meta.discourse.org/t/built-a-new-frontend-in-next-js-using-discourse-api-feedback/360779 "2025-04-08T14:13:08Z")

</div>

Hi all, Not sure where else to place this, but eager to get some quick feedback. I wanted to know if Discourse could replicate a feed-style social media site. And while there are lots of questions to be answered (i.e. w…

---

## [App Install Banner Doesn't Display](https://meta.discourse.org/t/app-install-banner-doesnt-display/360543)

<div class="topic-metadata">

**Author:** [@bitmage](https://meta.discourse.org/u/bitmage)\
**Replies:** 8\
**Last updated:** [April 7, 2025, 10:46pm UTC](https://meta.discourse.org/t/app-install-banner-doesnt-display/360543 "2025-04-07T22:46:01Z")

</div>

The app install banner isn’t displaying for my site. I somewhat worked around this by documenting the process that people need to go through: But this is non intuitive and challenging for my audience. Is there anyth…

---

## [Best way to upload Images to a plugin/theme?](https://meta.discourse.org/t/best-way-to-upload-images-to-a-plugin-theme/360581)

<div class="topic-metadata">

**Author:** [@bitmage](https://meta.discourse.org/u/bitmage)\
**Replies:** 3\
**Last updated:** [April 6, 2025, 9:48pm UTC](https://meta.discourse.org/t/best-way-to-upload-images-to-a-plugin-theme/360581 "2025-04-06T21:48:21Z")

</div>

I would like to upload image icons as a part of my theme or plugin (I use both). I will then be referring to them from a glimmer component in the plugin. I need to be able to get the string URL of the image location, b…

---

## [User-card-post-names: userModel.custom\_fields not working after reply/edit](https://meta.discourse.org/t/user-card-post-names-usermodel-custom-fields-not-working-after-reply-edit/360541)

<div class="topic-metadata">

**Author:** [@LeoDavidson](https://meta.discourse.org/u/LeoDavidson)\
**Replies:** 0\
**Last updated:** [April 5, 2025, 4:00pm UTC](https://meta.discourse.org/t/user-card-post-names-usermodel-custom-fields-not-working-after-reply-edit/360541 "2025-04-05T16:00:15Z")

</div>

I think this may be a bug in Discourse, but am not sure. Maybe I am doing something wrong. I have a plugin which adds information to the user-card-post-names connector. Handlebars: Javascript: That in turn calls th…

---

## [Can we use \`.gjs\` for route templates?](https://meta.discourse.org/t/can-we-use-gjs-for-route-templates/357046)

<div class="topic-metadata">

**Author:** [@bitmage](https://meta.discourse.org/u/bitmage)\
**Replies:** 13\
**Last updated:** [April 5, 2025, 3:57pm UTC](https://meta.discourse.org/t/can-we-use-gjs-for-route-templates/357046 "2025-04-05T15:57:21Z")

</div>

Are glimmer components currently supported in routes? Current Discourse documentation shows handlebar templates. The Ember edition “polaris” is supposed to add support for glimmer templates in routes. Seems like Polari…

---

## [Inserting external items into the moderation queue](https://meta.discourse.org/t/inserting-external-items-into-the-moderation-queue/360495)

<div class="topic-metadata">

**Author:** [@uckelman](https://meta.discourse.org/u/uckelman)\
**Replies:** 0\
**Last updated:** [April 4, 2025, 10:47pm UTC](https://meta.discourse.org/t/inserting-external-items-into-the-moderation-queue/360495 "2025-04-04T22:47:12Z")

</div>

I have an external site for which I’m using my Discourse forum to handle SSO. That site has some user-editable parts, and everyone logged in will be logged in using their account from the forum. I’d like to be able to fl…

---

## [Autocomplete still using Raw Templates](https://meta.discourse.org/t/autocomplete-still-using-raw-templates/348904)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**Replies:** 3\
**Last updated:** [April 4, 2025, 1:39pm UTC](https://meta.discourse.org/t/autocomplete-still-using-raw-templates/348904 "2025-04-04T13:39:27Z")

</div>

e.g. Had the impression Raw Templates were going away. Will their use here be curtailed too? What is the plan for this control scheme, and is there an example of a state-of-the-art modern version that I can look a…

---

## [Put something below the sidebar](https://meta.discourse.org/t/put-something-below-the-sidebar/360335)

<div class="topic-metadata">

**Author:** [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)\
**Replies:** 1\
**Last updated:** [April 4, 2025, 4:13am UTC](https://meta.discourse.org/t/put-something-below-the-sidebar/360335 "2025-04-04T04:13:37Z")

</div>

I’m wondering if there is a way to place something (another section) below the left sidebar (but cannot be in the left sidebar). Does the outlet below-footer do this? If that isn’t possible, is placing a right sidebar p…

---

## [Moving element in JS in an initializer?](https://meta.discourse.org/t/moving-element-in-js-in-an-initializer/360330)

<div class="topic-metadata">

**Author:** [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)\
**Replies:** 2\
**Last updated:** [April 4, 2025, 2:52am UTC](https://meta.discourse.org/t/moving-element-in-js-in-an-initializer/360330 "2025-04-04T02:52:40Z")

</div>

I have this piece of code: In javascripts/discourse/initializers: import { apiInitializer } from "discourse/lib/api"; import CustomHeaderTopicButton from "../components/custom-header-topic-button"; export default apiI…

---

## [API is not returning post Name value](https://meta.discourse.org/t/api-is-not-returning-post-name-value/360327)

<div class="topic-metadata">

**Author:** [@Jeremy\_D](https://meta.discourse.org/u/Jeremy_D)\
**Replies:** 4\
**Last updated:** [April 4, 2025, 2:15am UTC](https://meta.discourse.org/t/api-is-not-returning-post-name-value/360327 "2025-04-04T02:15:59Z")

</div>

I’m trying to fetch post details via the api, but it appears the response has null on the name field for all posts I query. Example trimmed response: { "id": 15, "name": null, "username": "Jeremy", "ava…

---

## [Is it possible to modify the category dropdown selector?](https://meta.discourse.org/t/is-it-possible-to-modify-the-category-dropdown-selector/360012)

<div class="topic-metadata">

**Author:** [@jordan-violet](https://meta.discourse.org/u/jordan-violet)\
**Replies:** 0\
**Last updated:** [April 2, 2025, 12:48pm UTC](https://meta.discourse.org/t/is-it-possible-to-modify-the-category-dropdown-selector/360012 "2025-04-02T12:48:56Z")

</div>

I have a tag page where I want the category dropdown to show a very specific, guaranteed list of categories to filter on. Is it possible to do this using a theme component?

---

## [Upcoming post menu changes - How to prepare themes and plugins](https://meta.discourse.org/t/upcoming-post-menu-changes-how-to-prepare-themes-and-plugins/341014)

<div class="topic-metadata">

**Author:** [@saquetim](https://meta.discourse.org/u/saquetim)\
**Replies:** 12\
**Last updated:** [April 1, 2025, 3:05pm UTC](https://meta.discourse.org/t/upcoming-post-menu-changes-how-to-prepare-themes-and-plugins/341014 "2025-04-01T15:05:50Z")

</div>

As part of our continuous effort to improve the Discourse codebase, we’re removing uses of the legacy “widget” rendering system, and replacing them with Glimmer components. Recently, we modernized the post menu, and is…

---

## [Composer, font-family and CSS](https://meta.discourse.org/t/composer-font-family-and-css/359788)

<div class="topic-metadata">

**Author:** [@Jagster](https://meta.discourse.org/u/Jagster)\
**Replies:** 4\
**Last updated:** [April 1, 2025, 9:55am UTC](https://meta.discourse.org/t/composer-font-family-and-css/359788 "2025-04-01T09:55:01Z")

</div>

Jatkoa ketjulle Test our new composer on Meta!: Sorry real devs — this is totally 101-level question, but we don’t have such category :man\_facepalming: :joy: I have this: .d-editor-container .d-editor-textarea-wrapper…

---

## [How to Add a View Counter in a Custom Discourse Theme?](https://meta.discourse.org/t/how-to-add-a-view-counter-in-a-custom-discourse-theme/359658)

<div class="topic-metadata">

**Author:** [@Kajan](https://meta.discourse.org/u/Kajan)\
**Replies:** 2\
**Last updated:** [March 31, 2025, 11:17pm UTC](https://meta.discourse.org/t/how-to-add-a-view-counter-in-a-custom-discourse-theme/359658 "2025-03-31T23:17:16Z")

</div>

I am using a custom Discourse theme and want to display the number of views for each topic. The default Discourse setup includes this feature, but it is not visible in my theme. I checked the template files and found a …

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

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