# Development

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

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

**Page:** 76

---

## [How can I schedule a job to run daily at exactly the specific time?](https://meta.discourse.org/t/how-can-i-schedule-a-job-to-run-daily-at-exactly-the-specific-time/194375)

<div class="topic-metadata">

**Author:** [@hyd504](https://meta.discourse.org/u/hyd504)\
**Replies:** 3\
**Last updated:** [June 20, 2021, 9:55am UTC](https://meta.discourse.org/t/how-can-i-schedule-a-job-to-run-daily-at-exactly-the-specific-time/194375 "2021-06-20T09:55:39Z")

</div>

I have seen examples of how we can create jobs that run every specified interval such as: after\_initialize do module ::Jobs class PluginTestJob \< ::Jobs::Scheduled every 30.seconds de…

---

## [Embedding Discourse Comments \*without\* Javascript](https://meta.discourse.org/t/embedding-discourse-comments-without-javascript/194294)

<div class="topic-metadata">

**Author:** [@deeplow](https://meta.discourse.org/u/deeplow)\
**Replies:** 3\
**Last updated:** [June 18, 2021, 3:30pm UTC](https://meta.discourse.org/t/embedding-discourse-comments-without-javascript/194294 "2021-06-18T15:30:59Z")

</div>

There is this great post on how to Embed Discourse comments on another website via Javascript. However, there are communities where website visitors may not be running javascript. And if not for that, I would argue from …

---

## [How to reply to Topic reply?](https://meta.discourse.org/t/how-to-reply-to-topic-reply/194297)

<div class="topic-metadata">

**Author:** [@Thottempudi](https://meta.discourse.org/u/Thottempudi)\
**Replies:** 4\
**Last updated:** [June 18, 2021, 3:24pm UTC](https://meta.discourse.org/t/how-to-reply-to-topic-reply/194297 "2021-06-18T15:24:26Z")

</div>

One topic having multiple replies, login user need to reply to topic reply. (ie. reply user) any method is available in discourse api ?

---

## [View user\_custom\_fields to admin](https://meta.discourse.org/t/view-user-custom-fields-to-admin/194180)

<div class="topic-metadata">

**Author:** [@daniyal](https://meta.discourse.org/u/daniyal)\
**Replies:** 1\
**Last updated:** [June 18, 2021, 11:13am UTC](https://meta.discourse.org/t/view-user-custom-fields-to-admin/194180 "2021-06-18T11:13:21Z")

</div>

Is there a way to view and edit user custom fields in user profile for admin? Right now it shows user\_fields fields but not the model user\_custom\_fields fields. Thanks

---

## [How is the Discourse folder structure organized?](https://meta.discourse.org/t/how-is-the-discourse-folder-structure-organized/194182)

<div class="topic-metadata">

**Author:** [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)\
**Replies:** 2\
**Last updated:** [June 17, 2021, 12:28pm UTC](https://meta.discourse.org/t/how-is-the-discourse-folder-structure-organized/194182 "2021-06-17T12:28:35Z")

</div>

I’m trying to get a high-level view of where everything goes in the Discourse folder structure, but I haven’t been able to figure out a few things like the difference between app/ and jsapp/. This is my current understa…

---

## [Bundler cannot continue due installation error of mini\_racer 0.4.0](https://meta.discourse.org/t/bundler-cannot-continue-due-installation-error-of-mini-racer-0-4-0/194140)

<div class="topic-metadata">

**Author:** [@akshay\_choudhary](https://meta.discourse.org/u/akshay_choudhary)\
**Replies:** 1\
**Last updated:** [June 17, 2021, 1:57am UTC](https://meta.discourse.org/t/bundler-cannot-continue-due-installation-error-of-mini-racer-0-4-0/194140 "2021-06-17T01:57:23Z")

</div>

I was trying ‘Bundle install’ to set up discourse from Beginners Guide to Install Discourse on Ubuntu for Development. But I’m stuck at the below-mentioned error. Gem::Ext::BuildError: ERROR: Failed to build gem native …

---

## [What Ember.js version does Discourse use?](https://meta.discourse.org/t/what-ember-js-version-does-discourse-use/194074)

<div class="topic-metadata">

**Author:** [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)\
**Replies:** 1\
**Last updated:** [June 16, 2021, 5:40pm UTC](https://meta.discourse.org/t/what-ember-js-version-does-discourse-use/194074 "2021-06-16T17:40:59Z")

</div>

I’ve started going through the plugin guide, which links to the Ember 2.13 docs. Ember is currently up to version 3.26, so I’m a bit confused. In /app/assets/javascripts/discourse/package.json I see this: "ember": { …

---

## [Test failure on HEIC image detection](https://meta.discourse.org/t/test-failure-on-heic-image-detection/193585)

<div class="topic-metadata">

**Author:** [@riking](https://meta.discourse.org/u/riking)\
**Replies:** 1\
**Last updated:** [June 11, 2021, 10:13pm UTC](https://meta.discourse.org/t/test-failure-on-heic-image-detection/193585 "2021-06-11T22:13:41Z")

</div>

It seems like my local ImageMagick doesn’t know how to decode HEIC, and this is throwing an error in the test for ImageMagick recognizing that it’s actually a JPEG. $ identify spec/fixtures/images/should\_be\_jpeg.heic i…

---

## [Streaming backups with minio-client?](https://meta.discourse.org/t/streaming-backups-with-minio-client/192924)

<div class="topic-metadata">

**Author:** [@mcdanlj](https://meta.discourse.org/u/mcdanlj)\
**Replies:** 0\
**Last updated:** [June 6, 2021, 10:21pm UTC](https://meta.discourse.org/t/streaming-backups-with-minio-client/192924 "2021-06-06T22:21:24Z")

</div>

I don’t like the most frequent backup schedule of only once per day. That seems like potentially a lot of people’s careful writing to throw away in case of disaster. However, I don’t want to set up a cluster with HA; tha…

---

## [How to tell if page is loading in theme component / widget?](https://meta.discourse.org/t/how-to-tell-if-page-is-loading-in-theme-component-widget/190190)

<div class="topic-metadata">

**Author:** [@Zach\_Swinehart](https://meta.discourse.org/u/Zach_Swinehart)\
**Replies:** 10\
**Last updated:** [June 4, 2021, 9:24pm UTC](https://meta.discourse.org/t/how-to-tell-if-page-is-loading-in-theme-component-widget/190190 "2021-06-04T21:24:43Z")

</div>

I feel like I’m probably missing something obvious here, but I can’t figure it out. I have a theme component that loads up some widgets, and I’m using the following code to re-render them after the user navigates to a ne…

---

## [How to replace text in the composer?](https://meta.discourse.org/t/how-to-replace-text-in-the-composer/159526)

<div class="topic-metadata">

**Author:** [@Newuser](https://meta.discourse.org/u/Newuser)\
**Replies:** 5\
**Last updated:** [June 3, 2021, 4:51pm UTC](https://meta.discourse.org/t/how-to-replace-text-in-the-composer/159526 "2021-06-03T16:51:02Z")

</div>

Hi all, I have a very simple question, but I can’t find the answer anywhere. I want to create custom BBcode without a closing tag, how do I do that? Thanks to this topic I already figured out how to replace \[something…

---

## [How is Sidekiq started?](https://meta.discourse.org/t/how-is-sidekiq-started/192053)

<div class="topic-metadata">

**Author:** [@supercobra](https://meta.discourse.org/u/supercobra)\
**Replies:** 2\
**Last updated:** [June 3, 2021, 2:05am UTC](https://meta.discourse.org/t/how-is-sidekiq-started/192053 "2021-06-03T02:05:35Z")

</div>

Can someone indicate how sidekiq is starting when we run rails server? I looked everywhere in the code and can’t figure it out.

---

## [Add an additional param to user-chooser component to include staged users in the results](https://meta.discourse.org/t/add-an-additional-param-to-user-chooser-component-to-include-staged-users-in-the-results/186934)

<div class="topic-metadata">

**Author:** [@fzngagan](https://meta.discourse.org/u/fzngagan)\
**Replies:** 4\
**Last updated:** [June 1, 2021, 4:44pm UTC](https://meta.discourse.org/t/add-an-additional-param-to-user-chooser-component-to-include-staged-users-in-the-results/186934 "2021-06-01T16:44:53Z")

</div>

One of our clients needs a feature which involved being able to select a user via a dropdown which should include staged users. I’ve checked the codebase and the component uses userSearch library method to make the API …

---

## [User details via Discourse APIs](https://meta.discourse.org/t/user-details-via-discourse-apis/192134)

<div class="topic-metadata">

**Author:** [@ashutoshkverma12](https://meta.discourse.org/u/ashutoshkverma12)\
**Replies:** 5\
**Last updated:** [May 31, 2021, 12:56pm UTC](https://meta.discourse.org/t/user-details-via-discourse-apis/192134 "2021-05-31T12:56:55Z")

</div>

Please let me know why I do not see email id in response when I use the User APIs to get user by username or get user by user\_id operation. Also, is there any method to get user details by using email\_id in the response …

---

## [How to reload a widget html after a state update](https://meta.discourse.org/t/how-to-reload-a-widget-html-after-a-state-update/191897)

<div class="topic-metadata">

**Author:** [@Sachin\_Kumar\_J](https://meta.discourse.org/u/Sachin_Kumar_J)\
**Replies:** 0\
**Last updated:** [May 28, 2021, 7:51am UTC](https://meta.discourse.org/t/how-to-reload-a-widget-html-after-a-state-update/191897 "2021-05-28T07:51:40Z")

</div>

How to reload the html of a widget when the state gets changed in the below code initially the state is none and after the page gets loaded it gets changed to new state but the html only gets changed when I click on it h…

---

## [How to get the category name inside post view page](https://meta.discourse.org/t/how-to-get-the-category-name-inside-post-view-page/191886)

<div class="topic-metadata">

**Author:** [@sachin\_kumar](https://meta.discourse.org/u/sachin_kumar)\
**Replies:** 0\
**Last updated:** [May 28, 2021, 5:07am UTC](https://meta.discourse.org/t/how-to-get-the-category-name-inside-post-view-page/191886 "2021-05-28T05:07:58Z")

</div>

Hello I’m trying to build a category bar inside article view page and to have active class for the category I need to know the category name for the selected topic in the browser url i can only see /t/topic-desc/topic-id…

---

## [Updating the top menu immediately without showing spinner loading for whole page](https://meta.discourse.org/t/updating-the-top-menu-immediately-without-showing-spinner-loading-for-whole-page/191773)

<div class="topic-metadata">

**Author:** [@Sachin\_Kumar\_J](https://meta.discourse.org/u/Sachin_Kumar_J)\
**Replies:** 2\
**Last updated:** [May 27, 2021, 11:26am UTC](https://meta.discourse.org/t/updating-the-top-menu-immediately-without-showing-spinner-loading-for-whole-page/191773 "2021-05-27T11:26:44Z")

</div>

Is it possible to update the top menu links without showing spinner loading for whole page like for example if we press on category button on top menu it is showing a spinner for the whole page and after that it loads th…

---

## [How do I find all onAppEvents? Is there any event for color scheme switching?](https://meta.discourse.org/t/how-do-i-find-all-onappevents-is-there-any-event-for-color-scheme-switching/191509)

<div class="topic-metadata">

**Author:** [@Alex\_P](https://meta.discourse.org/u/Alex_P)\
**Replies:** 2\
**Last updated:** [May 25, 2021, 2:29pm UTC](https://meta.discourse.org/t/how-do-i-find-all-onappevents-is-there-any-event-for-color-scheme-switching/191509 "2021-05-25T14:29:49Z")

</div>

In the JS API there is onAppEvent allowing to listen for an event. But how can I find the list of these events? I tried searching for onAppEvent and .trigger(, but have not found much. Right now I am looking for an even…

---

## [Display top menu in post display page](https://meta.discourse.org/t/display-top-menu-in-post-display-page/191548)

<div class="topic-metadata">

**Author:** [@Sachin\_Kumar\_J](https://meta.discourse.org/u/Sachin_Kumar_J)\
**Replies:** 0\
**Last updated:** [May 25, 2021, 7:33am UTC](https://meta.discourse.org/t/display-top-menu-in-post-display-page/191548 "2021-05-25T07:33:51Z")

</div>

Hello Is there a way to add top menu bar in post viewing page \<script type="text/x-handlebars" data-template-name="/connectors/topic-above-posts/foobartyyy"\> \<div class="list-controls"\> \<div class="container"\> …

---

## [Use color scheme color if dark scheme, otherwise use my color in theme](https://meta.discourse.org/t/use-color-scheme-color-if-dark-scheme-otherwise-use-my-color-in-theme/191365)

<div class="topic-metadata">

**Author:** [@Alex\_P](https://meta.discourse.org/u/Alex_P)\
**Replies:** 2\
**Last updated:** [May 25, 2021, 5:21am UTC](https://meta.discourse.org/t/use-color-scheme-color-if-dark-scheme-otherwise-use-my-color-in-theme/191365 "2021-05-25T05:21:47Z")

</div>

I want to do something like this .some-link { @if var(--scheme-type) == 'dark' { color: var(--primary); } @else { color: #3b5998; } but of course it is not possible because there is no if in CSS and SCSS is…

---

## [How can I use shortUrls inside my plugins initializers?](https://meta.discourse.org/t/how-can-i-use-shorturls-inside-my-plugins-initializers/191522)

<div class="topic-metadata">

**Author:** [@danilogit](https://meta.discourse.org/u/danilogit)\
**Replies:** 0\
**Last updated:** [May 24, 2021, 11:07pm UTC](https://meta.discourse.org/t/how-can-i-use-shorturls-inside-my-plugins-initializers/191522 "2021-05-24T23:07:55Z")

</div>

I am trying to write a plugin and use the upload://3211.mp4 shortURL format with it. Is that possible? Basically I am trying to reuse a uploaded file inside my tag \<source src="upload://3211.mp4 "/\>

---

## [How to re-execute scripts in theme components](https://meta.discourse.org/t/how-to-re-execute-scripts-in-theme-components/191394)

<div class="topic-metadata">

**Author:** [@Marvelxy](https://meta.discourse.org/u/Marvelxy)\
**Replies:** 5\
**Last updated:** [May 24, 2021, 10:17pm UTC](https://meta.discourse.org/t/how-to-re-execute-scripts-in-theme-components/191394 "2021-05-24T22:17:48Z")

</div>

Scripts in theme components execute only once; how do I re-execute them when there is a route change(not full page refresh)? For example, I want the scripts in a component to execute even after navigating between tags.

---

## [User preference on theme components](https://meta.discourse.org/t/user-preference-on-theme-components/191268)

<div class="topic-metadata">

**Author:** [@Rhidian](https://meta.discourse.org/u/Rhidian)\
**Replies:** 1\
**Last updated:** [May 22, 2021, 6:57pm UTC](https://meta.discourse.org/t/user-preference-on-theme-components/191268 "2021-05-22T18:57:13Z")

</div>

I have had this suggestion raised on GitHub in relation to one of my theme components. Hi. (I am just a user of a Discourse forum, not an admin). Would it be possible to add an option (a checkbox) in the in the User \>…

---

## [Using ERD to Create Entity-Relationship Diagrams for Discourse](https://meta.discourse.org/t/using-erd-to-create-entity-relationship-diagrams-for-discourse/161086)

<div class="topic-metadata">

**Author:** [@neounix](https://meta.discourse.org/u/neounix)\
**Replies:** 2\
**Last updated:** [May 21, 2021, 7:56pm UTC](https://meta.discourse.org/t/using-erd-to-create-entity-relationship-diagrams-for-discourse/161086 "2021-05-21T19:56:35Z")

</div>

Hey, Today I was playing around with ERD and installed it in my Discourse dev setup on the mac and ran it. Was a bit buggy and had to reload it a few times, but was able to get it going, but needs work. Obvious…

---

## [How to get category info from composer?](https://meta.discourse.org/t/how-to-get-category-info-from-composer/190760)

<div class="topic-metadata">

**Author:** [@Heddson](https://meta.discourse.org/u/Heddson)\
**Replies:** 4\
**Last updated:** [May 19, 2021, 6:31am UTC](https://meta.discourse.org/t/how-to-get-category-info-from-composer/190760 "2021-05-19T06:31:00Z")

</div>

Is it possible to run some code (from a theme component) when a category is selected in the composer? I’m interested in getting what category is selected both when the composer just been opened and when the category drop…

---

## [A component for Conditional UI elements?](https://meta.discourse.org/t/a-component-for-conditional-ui-elements/110255)

<div class="topic-metadata">

**Author:** [@swamidass](https://meta.discourse.org/u/swamidass)\
**Replies:** 5\
**Last updated:** [May 19, 2021, 1:52am UTC](https://meta.discourse.org/t/a-component-for-conditional-ui-elements/110255 "2021-05-19T01:52:10Z")

</div>

Is there a theme component to add buttons, css, or links based on conditions? I want to add a button were users can request memebership if they don’t have it yet in certain categories.

---

## [Add custom menu panel to the correct location (same as hamburger menu panel)](https://meta.discourse.org/t/add-custom-menu-panel-to-the-correct-location-same-as-hamburger-menu-panel/119364)

<div class="topic-metadata">

**Author:** [@kleinfreund](https://meta.discourse.org/u/kleinfreund)\
**Replies:** 8\
**Last updated:** [May 18, 2021, 11:30am UTC](https://meta.discourse.org/t/add-custom-menu-panel-to-the-correct-location-same-as-hamburger-menu-panel/119364 "2021-05-18T11:30:22Z")

</div>

In Reuse Discourse Hamburger Functionality - #5 by awesomerobot, a way to add a new menu item to the header-icons location (i.e. where Discourse hamburger menu is located) is described. In essence, a call to api.decorat…

---

## [.gitignore changes in Discourse core](https://meta.discourse.org/t/gitignore-changes-in-discourse-core/189916)

<div class="topic-metadata">

**Author:** [@cvx](https://meta.discourse.org/u/cvx)\
**Replies:** 1\
**Last updated:** [May 15, 2021, 11:57pm UTC](https://meta.discourse.org/t/gitignore-changes-in-discourse-core/189916 "2021-05-15T23:57:58Z")

</div>

Heads up for all Discourse devs out there – .gitignore file in the discourse repository went on a diet. :green\_apple: If you find that some untracked files that were ignored before don’t be alarmed! There are two possib…

---

## [Interaction among theme component, theme javascript, and "previews"](https://meta.discourse.org/t/interaction-among-theme-component-theme-javascript-and-previews/190303)

<div class="topic-metadata">

**Author:** [@craigconstantine](https://meta.discourse.org/u/craigconstantine)\
**Replies:** 4\
**Last updated:** [May 14, 2021, 4:37pm UTC](https://meta.discourse.org/t/interaction-among-theme-component-theme-javascript-and-previews/190303 "2021-05-14T16:37:19Z")

</div>

j/s I have some custom j/s in my theme. (It’s my solution to, Interactive SVG using \<object\>? - #9 by craigconstantine ) Eventually, I’ll move the j/s to a Git repo, and install it as a proper Theme component. For now, I…

---

## [Password hash algorithm](https://meta.discourse.org/t/password-hash-algorithm/128608)

<div class="topic-metadata">

**Author:** [@csmu](https://meta.discourse.org/u/csmu)\
**Replies:** 9\
**Last updated:** [May 14, 2021, 8:26am UTC](https://meta.discourse.org/t/password-hash-algorithm/128608 "2021-05-14T08:26:31Z")

</div>

I’m looking to be able to use the stored password hashes from discourse in a htpassword file for another app. What password hashing algorithm does discourse use?

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

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