# Development

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

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

**Page:** 49

---

## [Are the AI models trained on English?](https://meta.discourse.org/t/are-the-ai-models-trained-on-english/275743)

<div class="topic-metadata">

**Author:** [@hiddenseal](https://meta.discourse.org/u/hiddenseal)\
**Replies:** 2\
**Last updated:** [April 29, 2023, 5:01am UTC](https://meta.discourse.org/t/are-the-ai-models-trained-on-english/275743 "2023-04-29T05:01:12Z")

</div>

Am I right to assume that the model was trained & tested on English language data only?

---

## [Adding image within the banner?](https://meta.discourse.org/t/adding-image-within-the-banner/270600)

<div class="topic-metadata">

**Author:** [@Michele\_Butturini](https://meta.discourse.org/u/Michele_Butturini)\
**Replies:** 1\
**Last updated:** [April 28, 2023, 12:15pm UTC](https://meta.discourse.org/t/adding-image-within-the-banner/270600 "2023-04-28T12:15:38Z")

</div>

This is a great feature! Do you know if/how it is possible to add an image within the banner? something like this:

---

## [Reply using API](https://meta.discourse.org/t/reply-using-api/263148)

<div class="topic-metadata">

**Author:** [@jjerry-k](https://meta.discourse.org/u/jjerry-k)\
**Replies:** 1\
**Last updated:** [April 28, 2023, 9:08am UTC](https://meta.discourse.org/t/reply-using-api/263148 "2023-04-28T09:08:34Z")

</div>

Hi, I’m Jerry. I use API to post external content. There are too many topics… So, I want to use replies on a topic. First, post a topic with the title using date. Second, create replies about external content. In A…

---

## [Can I access theme settings in the Body/Head template?](https://meta.discourse.org/t/can-i-access-theme-settings-in-the-body-head-template/263096)

<div class="topic-metadata">

**Author:** [@Magnetidog](https://meta.discourse.org/u/Magnetidog)\
**Replies:** 2\
**Last updated:** [April 27, 2023, 4:55pm UTC](https://meta.discourse.org/t/can-i-access-theme-settings-in-the-body-head-template/263096 "2023-04-27T16:55:11Z")

</div>

I tried to search for this, but I cannot find a clear answer. I am not able to use a theme’s settings to add conditionals in the “Body” or “Head” tab of Discourse. I need to show a banner in there only if a theme setting…

---

## [Hiding Calendar/Agenda from navigation](https://meta.discourse.org/t/hiding-calendar-agenda-from-navigation/272268)

<div class="topic-metadata">

**Author:** [@thaidb](https://meta.discourse.org/u/thaidb)\
**Replies:** 2\
**Last updated:** [April 27, 2023, 1:43pm UTC](https://meta.discourse.org/t/hiding-calendar-agenda-from-navigation/272268 "2023-04-27T13:43:36Z")

</div>

hELLO, How can i hide this navigation thank you!

---

## [Why no view count on mobile](https://meta.discourse.org/t/why-no-view-count-on-mobile/263003)

<div class="topic-metadata">

**Author:** [@Diyorki](https://meta.discourse.org/u/Diyorki)\
**Replies:** 2\
**Last updated:** [April 26, 2023, 9:52pm UTC](https://meta.discourse.org/t/why-no-view-count-on-mobile/263003 "2023-04-26T21:52:16Z")

</div>

Hi friends After adding a topic to the site from mobile, I can’t see how many people have read the opened topic, When I am on mobile, I check show the site as desktop from chrome, but there is no feature how many people …

---

## [Reprise: maintaining an up-to-date dev environment](https://meta.discourse.org/t/reprise-maintaining-an-up-to-date-dev-environment/262544)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 3\
**Last updated:** [April 24, 2023, 6:14pm UTC](https://meta.discourse.org/t/reprise-maintaining-an-up-to-date-dev-environment/262544 "2023-04-24T18:14:55Z")

</div>

But now Discourse wants 3.2.1 and asdf seems not to know about 3.2.1. How are you managing that? asdf list all ruby|grep 3.2.1 returns nothing. Since your job includes benchmarking ruby versions that makes lots of …

---

## [Dynamically update available user field values during a profile fill in](https://meta.discourse.org/t/dynamically-update-available-user-field-values-during-a-profile-fill-in/261944)

<div class="topic-metadata">

**Author:** [@philipp96](https://meta.discourse.org/u/philipp96)\
**Replies:** 4\
**Last updated:** [April 22, 2023, 1:37pm UTC](https://meta.discourse.org/t/dynamically-update-available-user-field-values-during-a-profile-fill-in/261944 "2023-04-22T13:37:32Z")

</div>

Thank you for the prompt responses @JammyDodger and @Canapin , I have a specific question: I would like to update values in a custom field through a text field, which, for example, indicates the place of residence and i…

---

## [Get Posts created by User in a particular category and tags](https://meta.discourse.org/t/get-posts-created-by-user-in-a-particular-category-and-tags/262349)

<div class="topic-metadata">

**Author:** [@Noone](https://meta.discourse.org/u/Noone)\
**Replies:** 2\
**Last updated:** [April 20, 2023, 12:24pm UTC](https://meta.discourse.org/t/get-posts-created-by-user-in-a-particular-category-and-tags/262349 "2023-04-20T12:24:26Z")

</div>

How to get posts of users ina particular category and with specific tags currently, there seem to be https://meta.discourse.org/topics/created-by/jomaxro.json which is giving all posts created by user and https://meta.di…

---

## [How can I have a gif be the embed thumbnail on a topic/post](https://meta.discourse.org/t/how-can-i-have-a-gif-be-the-embed-thumbnail-on-a-topic-post/262321)

<div class="topic-metadata">

**Author:** [@N3DSDude](https://meta.discourse.org/u/N3DSDude)\
**Replies:** 9\
**Last updated:** [April 20, 2023, 11:18am UTC](https://meta.discourse.org/t/how-can-i-have-a-gif-be-the-embed-thumbnail-on-a-topic-post/262321 "2023-04-20T11:18:50Z")

</div>

I was wondering how this can be done, I’ve seen it on other Discourse communities, was wondering how I can also do this on my local Discourse instance. I basically want it so the GIF will automatically play.

---

## [Discourse a a comment system with React Native and Meteor](https://meta.discourse.org/t/discourse-a-a-comment-system-with-react-native-and-meteor/59501)

<div class="topic-metadata">

**Author:** [@ibox](https://meta.discourse.org/u/ibox)\
**Replies:** 4\
**Last updated:** [April 20, 2023, 3:01am UTC](https://meta.discourse.org/t/discourse-a-a-comment-system-with-react-native-and-meteor/59501 "2023-04-20T03:01:59Z")

</div>

Hi all, I’m very interested in Discourse and had really good experience with it on other forums (like Meteor for example). Thus, as I’m creating an social app with React Native (Front End) and Meteor (Back End), I woul…

---

## [How could I create/edit, save and display custom dropdown fields at the Post/Reply level](https://meta.discourse.org/t/how-could-i-create-edit-save-and-display-custom-dropdown-fields-at-the-post-reply-level/262278)

<div class="topic-metadata">

**Author:** [@SeanOSullivan](https://meta.discourse.org/u/SeanOSullivan)\
**Replies:** 2\
**Last updated:** [April 19, 2023, 4:20pm UTC](https://meta.discourse.org/t/how-could-i-create-edit-save-and-display-custom-dropdown-fields-at-the-post-reply-level/262278 "2023-04-19T16:20:24Z")

</div>

Hi all .. can anyone advise of a (good?) way to customise the add/edit-reply behaviour .. I am familiar with custom fields and with using plugins, but I don’t see a way to tweak post/reply-specific behaviour. We are bu…

---

## [Can you serialize a controller?](https://meta.discourse.org/t/can-you-serialize-a-controller/262156)

<div class="topic-metadata">

**Author:** [@mqmenchaca](https://meta.discourse.org/u/mqmenchaca)\
**Replies:** 5\
**Last updated:** [April 19, 2023, 2:56pm UTC](https://meta.discourse.org/t/can-you-serialize-a-controller/262156 "2023-04-19T14:56:42Z")

</div>

Hi Discourse community. I didn’t find a similar topic so I thought I’d start one. I’m using a plugin to extend Discourse functionality for my organization’s purposes. One of these is rendering a JSON from email/unsubscr…

---

## ["wrong number of arguments" on Upgrade to new version](https://meta.discourse.org/t/wrong-number-of-arguments-on-upgrade-to-new-version/262083)

<div class="topic-metadata">

**Author:** [@paresy](https://meta.discourse.org/u/paresy)\
**Replies:** 1\
**Last updated:** [April 18, 2023, 1:53pm UTC](https://meta.discourse.org/t/wrong-number-of-arguments-on-upgrade-to-new-version/262083 "2023-04-18T13:53:19Z")

</div>

I upgraded to 3.1.0.beta4 and now one of my plugins is not working anymore and i have a hard time figuring out how to upgrade this part of the code: after\_initialize do User.register\_custom\_field\_type('myfield', :jso…

---

## [Add class to full page search result items?](https://meta.discourse.org/t/add-class-to-full-page-search-result-items/254924)

<div class="topic-metadata">

**Author:** [@asc](https://meta.discourse.org/u/asc)\
**Replies:** 2\
**Last updated:** [April 18, 2023, 10:40am UTC](https://meta.discourse.org/t/add-class-to-full-page-search-result-items/254924 "2023-04-18T10:40:59Z")

</div>

I’m trying to add a class for the category of a post in the results returned by full-page-search. I’ve tried modifyClass to both controller/full-page-search and component/search-result-entry, including using the modifyC…

---

## [modifyClass failed with a warning](https://meta.discourse.org/t/modifyclass-failed-with-a-warning/239535)

<div class="topic-metadata">

**Author:** [@Alienazk](https://meta.discourse.org/u/Alienazk)\
**Replies:** 5\
**Last updated:** [April 18, 2023, 10:40am UTC](https://meta.discourse.org/t/modifyclass-failed-with-a-warning/239535 "2023-04-18T10:40:06Z")

</div>

Hello！ I want to modify controller with plugin api, but it failed with a warning like: \[THEME xxx\] “controller:full-page-search” was already cached in the container. Changes won’t be applied. my code: function modify…

---

## [Override function in /app/assets/javascripts/discourse/app/lib/](https://meta.discourse.org/t/override-function-in-app-assets-javascripts-discourse-app-lib/261985)

<div class="topic-metadata">

**Author:** [@RGJ](https://meta.discourse.org/u/RGJ)\
**Replies:** 0\
**Last updated:** [April 17, 2023, 6:20pm UTC](https://meta.discourse.org/t/override-function-in-app-assets-javascripts-discourse-app-lib/261985 "2023-04-17T18:20:15Z")

</div>

I need to override a function in a file in /app/assets/javascripts/discourse/app/lib/ in a plugin or theme component. It’s a controlled environment so it does not matter if it’s a bit of a hack. How can I approach this b…

---

## [Using actions from another component on search page](https://meta.discourse.org/t/using-actions-from-another-component-on-search-page/251895)

<div class="topic-metadata">

**Author:** [@misham](https://meta.discourse.org/u/misham)\
**Replies:** 1\
**Last updated:** [April 17, 2023, 2:15pm UTC](https://meta.discourse.org/t/using-actions-from-another-component-on-search-page/251895 "2023-04-17T14:15:19Z")

</div>

Hi! Is it possible to trigger category change action on search page. My case: I have a list of categories at the top and when I click on them the results at the bottom should change according to the category. I made a…

---

## [Is there a CSS way to modify specific items in dark mode?](https://meta.discourse.org/t/is-there-a-css-way-to-modify-specific-items-in-dark-mode/278613)

<div class="topic-metadata">

**Author:** [@satonotdead](https://meta.discourse.org/u/satonotdead)\
**Replies:** 1\
**Last updated:** [April 17, 2023, 1:28pm UTC](https://meta.discourse.org/t/is-there-a-css-way-to-modify-specific-items-in-dark-mode/278613 "2023-04-17T13:28:52Z")

</div>

There is a way for use dark selector within CSS to modify specific items on dark mode? Secondary color looks weird in our palette and a simple fix could be use a selector but I don’t see that Discourse uses something li…

---

## [Updating custom fields using API](https://meta.discourse.org/t/updating-custom-fields-using-api/153337)

<div class="topic-metadata">

**Author:** [@hjalali](https://meta.discourse.org/u/hjalali)\
**Replies:** 6\
**Last updated:** [April 17, 2023, 11:08am UTC](https://meta.discourse.org/t/updating-custom-fields-using-api/153337 "2023-04-17T11:08:31Z")

</div>

I have been reviewing the API documentation and can not seem to find how I can edit user information other than email and avatar. For example firstname, lastname, and more importantly custom fields. Can someone pleas…

---

## [Show Profile Headline in the Posts](https://meta.discourse.org/t/show-profile-headline-in-the-posts/257917)

<div class="topic-metadata">

**Author:** [@Kushalghosh9899](https://meta.discourse.org/u/Kushalghosh9899)\
**Replies:** 20\
**Last updated:** [April 17, 2023, 10:29am UTC](https://meta.discourse.org/t/show-profile-headline-in-the-posts/257917 "2023-04-17T10:29:16Z")

</div>

I want to add Profile Headline field below the full name, tried finding the way but there isn’t a way Apart from this there is bug/ problem as in I had enable\_name to true in the post and hide the usernames from the …

---

## [Add icon to register button](https://meta.discourse.org/t/add-icon-to-register-button/261802)

<div class="topic-metadata">

**Author:** [@EchoBilisim](https://meta.discourse.org/u/EchoBilisim)\
**Replies:** 2\
**Last updated:** [April 16, 2023, 7:10pm UTC](https://meta.discourse.org/t/add-icon-to-register-button/261802 "2023-04-16T19:10:38Z")

</div>

Hello, I am using discourse, there is an icon on the login button, there is no icon on the register button, I want to add an icon to it, I wonder how to do it? Thank you very much in advance

---

## [Failing to change avatar using Discourse API](https://meta.discourse.org/t/failing-to-change-avatar-using-discourse-api/261828)

<div class="topic-metadata">

**Author:** [@EGreg](https://meta.discourse.org/u/EGreg)\
**Replies:** 6\
**Last updated:** [April 16, 2023, 4:55pm UTC](https://meta.discourse.org/t/failing-to-change-avatar-using-discourse-api/261828 "2023-04-16T16:55:38Z")

</div>

I have an API key that has “Global” access, for “All Users”. I do this: $updateAvatarUrl = sprintf("%s/u/%s/preferences/avatar/pick.json", $this-\>apiHost, $username); $headers = array( "Api-Key: ".$this-\>apiKey, …

---

## [Is there a way to detect dark mode usage?](https://meta.discourse.org/t/is-there-a-way-to-detect-dark-mode-usage/261821)

<div class="topic-metadata">

**Author:** [@ti0](https://meta.discourse.org/u/ti0)\
**Replies:** 3\
**Last updated:** [April 16, 2023, 12:24pm UTC](https://meta.discourse.org/t/is-there-a-way-to-detect-dark-mode-usage/261821 "2023-04-16T12:24:29Z")

</div>

Is there a way in a plugin / theme component to detect if the current theme is using dark mode? Alternately, is there a way to get the active theme ID? Or should we create different theme components for light themes an…

---

## [How to change the user-note icon?](https://meta.discourse.org/t/how-to-change-the-user-note-icon/261771)

<div class="topic-metadata">

**Author:** [@danielabc](https://meta.discourse.org/u/danielabc)\
**Replies:** 2\
**Last updated:** [April 15, 2023, 8:14am UTC](https://meta.discourse.org/t/how-to-change-the-user-note-icon/261771 "2023-04-15T08:14:18Z")

</div>

how do i change the note icon?

---

## [User JS Object \`groups\` array not populated for several users](https://meta.discourse.org/t/user-js-object-groups-array-not-populated-for-several-users/261520)

<div class="topic-metadata">

**Author:** [@smileBeda](https://meta.discourse.org/u/smileBeda)\
**Replies:** 6\
**Last updated:** [April 13, 2023, 6:27am UTC](https://meta.discourse.org/t/user-js-object-groups-array-not-populated-for-several-users/261520 "2023-04-13T06:27:36Z")

</div>

I am using the Discourse JS User Object to check upon the current user’s groups they are “in”. For some users, the groups array in the User’s JS Object returns a proper array of objects, each describing a group this use…

---

## [Add additional fields in category list REST API](https://meta.discourse.org/t/add-additional-fields-in-category-list-rest-api/260911)

<div class="topic-metadata">

**Author:** [@vivekAtcs](https://meta.discourse.org/u/vivekAtcs)\
**Replies:** 3\
**Last updated:** [April 12, 2023, 9:19pm UTC](https://meta.discourse.org/t/add-additional-fields-in-category-list-rest-api/260911 "2023-04-12T21:19:03Z")

</div>

We need two additional data from Category API ../categories.json user - who created the category created\_at - when it was created Although in data explorer plugin I can fetch the above additional fields from category…

---

## [Theme components and Largest Contentful Paint (LCP)](https://meta.discourse.org/t/theme-components-and-largest-contentful-paint-lcp/258680)

<div class="topic-metadata">

**Author:** [@piffy](https://meta.discourse.org/u/piffy)\
**Replies:** 12\
**Last updated:** [April 12, 2023, 4:54pm UTC](https://meta.discourse.org/t/theme-components-and-largest-contentful-paint-lcp/258680 "2023-04-12T16:54:25Z")

</div>

I’m looking to improve the web vitals for my site, specifically LCP. I have been having issues where the time is ~2.7s (should be under 2.5s). From Optimize Largest Contentful Paint | Articles | web.dev : Specifica…

---

## [Need a second pair of eyes (sidebar indentation)](https://meta.discourse.org/t/need-a-second-pair-of-eyes-sidebar-indentation/261298)

<div class="topic-metadata">

**Author:** [@sterretje](https://meta.discourse.org/u/sterretje)\
**Replies:** 1\
**Last updated:** [April 11, 2023, 9:04am UTC](https://meta.discourse.org/t/need-a-second-pair-of-eyes-sidebar-indentation/261298 "2023-04-11T09:04:48Z")

</div>

Hello As an excercise I’m trying to indent the rows under e.g. Community, Categories, Tags and so on. I created a component for it and it works. What I would like to know is if This is the correct approach? This has …

---

## [Add a custom font to my theme via the assets repository](https://meta.discourse.org/t/add-a-custom-font-to-my-theme-via-the-assets-repository/260784)

<div class="topic-metadata">

**Author:** [@Joart](https://meta.discourse.org/u/Joart)\
**Replies:** 7\
**Last updated:** [April 11, 2023, 8:09am UTC](https://meta.discourse.org/t/add-a-custom-font-to-my-theme-via-the-assets-repository/260784 "2023-04-11T08:09:19Z")

</div>

Hello, I am trying to add a custom font to my theme but it doesn’t work… I certainly did something wrong but I can’t find where. I am developing my own theme that I installed via github. In the assets repository, I up…

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

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