# Development

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

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

**Page:** 89

---

## [How to create a custom button?](https://meta.discourse.org/t/how-to-create-a-custom-button/157717)

<div class="topic-metadata">

**Author:** [@AntiMetaman](https://meta.discourse.org/u/AntiMetaman)\
**Replies:** 5\
**Last updated:** [July 18, 2020, 12:36pm UTC](https://meta.discourse.org/t/how-to-create-a-custom-button/157717 "2020-07-18T12:36:01Z")

</div>

Hi, I’m new to Discourse. I’ve installed it already and am playing around with it. There is one feature I’d really like and maybe this is already possible which is why I’d like to ask. I want to create a category in my…

---

## [\`/srv/status\` returns OK even if database is broken](https://meta.discourse.org/t/srv-status-returns-ok-even-if-database-is-broken/158075)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 6\
**Last updated:** [July 18, 2020, 2:27am UTC](https://meta.discourse.org/t/srv-status-returns-ok-even-if-database-is-broken/158075 "2020-07-18T02:27:41Z")

</div>

I had an upgrade on a 2-container install go sideways this morning. Bootstrapping a new container migrated the database into a broken state (perhaps it wouldn’t have if I’d used SKIP\_POST\_DEPLOYMENT\_MIGRATIONS=1, but tha…

---

## [Add button to top menu](https://meta.discourse.org/t/add-button-to-top-menu/78366)

<div class="topic-metadata">

**Author:** [@PatrickH](https://meta.discourse.org/u/PatrickH)\
**Replies:** 18\
**Last updated:** [July 17, 2020, 3:03pm UTC](https://meta.discourse.org/t/add-button-to-top-menu/78366 "2020-07-17T15:03:42Z")

</div>

I want to add a button (with a different color) to the top menu, and if possible align right How can i do this ?

---

## [Discourse Core Documentation](https://meta.discourse.org/t/discourse-core-documentation/157871)

<div class="topic-metadata">

**Author:** [@RickyC0626](https://meta.discourse.org/u/RickyC0626)\
**Replies:** 0\
**Last updated:** [July 15, 2020, 9:15pm UTC](https://meta.discourse.org/t/discourse-core-documentation/157871 "2020-07-15T21:15:47Z")

</div>

Ruby JavaScript TBA: If anyone can find the JS docs, and they exist, that would be great

---

## [How to create categories from plugin](https://meta.discourse.org/t/how-to-create-categories-from-plugin/52443)

<div class="topic-metadata">

**Author:** [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Replies:** 1\
**Last updated:** [July 15, 2020, 11:16am UTC](https://meta.discourse.org/t/how-to-create-categories-from-plugin/52443 "2020-07-15T11:16:49Z")

</div>

I am developing new community-hub plugin for discourse where any registered users can create categories for their group / community. So the plugin should create categories itself in some criteria. Can anyone help me to …

---

## [Getting the target user for notification webhook events](https://meta.discourse.org/t/getting-the-target-user-for-notification-webhook-events/129052)

<div class="topic-metadata">

**Author:** [@phallguy](https://meta.discourse.org/u/phallguy)\
**Replies:** 12\
**Last updated:** [July 14, 2020, 8:49am UTC](https://meta.discourse.org/t/getting-the-target-user-for-notification-webhook-events/129052 "2020-07-14T08:49:59Z")

</div>

I see that webhooks now support notifications which is fantastic. Something we really need. However the payload is missing one critical piece of information - the user the notification is for. In this example payload we …

---

## [Get the number of likes a user has via API?](https://meta.discourse.org/t/get-the-number-of-likes-a-user-has-via-api/157590)

<div class="topic-metadata">

**Author:** [@RiversideRocks](https://meta.discourse.org/u/RiversideRocks)\
**Replies:** 2\
**Last updated:** [July 13, 2020, 1:40pm UTC](https://meta.discourse.org/t/get-the-number-of-likes-a-user-has-via-api/157590 "2020-07-13T13:40:53Z")

</div>

Hello, I’ve been messing around with the discourse API. I use the “JSON API” (https://meta.discourse.org/u/riversiderocks.json). Is there a way to get the total number of likes a user has from this file? I look but I ca…

---

## [Discourse categories list doesn't render when opened in webview](https://meta.discourse.org/t/discourse-categories-list-doesnt-render-when-opened-in-webview/157517)

<div class="topic-metadata">

**Author:** [@Shah\_Wajahat](https://meta.discourse.org/u/Shah_Wajahat)\
**Replies:** 1\
**Last updated:** [July 13, 2020, 12:40am UTC](https://meta.discourse.org/t/discourse-categories-list-doesnt-render-when-opened-in-webview/157517 "2020-07-13T00:40:27Z")

</div>

In a React Native Webview, When we create a topic and try selecting the categories by scrolling through the dropdown half of the category list is not rendered. Not sure how to fix this thing. Thanks

---

## [Status Update Plugin?](https://meta.discourse.org/t/status-update-plugin/157215)

<div class="topic-metadata">

**Author:** [@Ariel\_Bissett](https://meta.discourse.org/u/Ariel_Bissett)\
**Replies:** 4\
**Last updated:** [July 11, 2020, 4:44am UTC](https://meta.discourse.org/t/status-update-plugin/157215 "2020-07-11T04:44:42Z")

</div>

Does anyone know of a plugin (or a clever work around!) for having “status updates” for users? Our community is using our discourse set up to share their reading during a week long period and I’d love to have a tab on th…

---

## [Discourse / Wordpress integrations](https://meta.discourse.org/t/discourse-wordpress-integrations/157285)

<div class="topic-metadata">

**Author:** [@agf1997](https://meta.discourse.org/u/agf1997)\
**Replies:** 1\
**Last updated:** [July 10, 2020, 5:39pm UTC](https://meta.discourse.org/t/discourse-wordpress-integrations/157285 "2020-07-10T17:39:28Z")

</div>

I’m obviously familiar with the wp-discourse plugin but I’m looking to do even more integration. Specifically, I’m interested in having the discourse hamburger and user menu show up on my wordpress site to provide a mor…

---

## [Add Tag to The topic](https://meta.discourse.org/t/add-tag-to-the-topic/157345)

<div class="topic-metadata">

**Author:** [@Minhaj](https://meta.discourse.org/u/Minhaj)\
**Replies:** 1\
**Last updated:** [July 10, 2020, 11:08am UTC](https://meta.discourse.org/t/add-tag-to-the-topic/157345 "2020-07-10T11:08:11Z")

</div>

I want to query tag\_groups and assign on of the tags from it to the topic which I am creating using the Discourse API. I am unable to find it in API docs, can someone point me out.

---

## [How can I customized my own site](https://meta.discourse.org/t/how-can-i-customized-my-own-site/157004)

<div class="topic-metadata">

**Author:** [@gaozp](https://meta.discourse.org/u/gaozp)\
**Replies:** 5\
**Last updated:** [July 9, 2020, 10:04am UTC](https://meta.discourse.org/t/how-can-i-customized-my-own-site/157004 "2020-07-09T10:04:34Z")

</div>

I use an VPS that build my discourse there , and used docker . I was wonder : how can I edit the source code in my own computer ,and then push this change to the remote machine . From my opinion : docker save \*\*\* scp…

---

## [Patching Discourse's search](https://meta.discourse.org/t/patching-discourses-search/157156)

<div class="topic-metadata">

**Author:** [@snoopdouglas](https://meta.discourse.org/u/snoopdouglas)\
**Replies:** 6\
**Last updated:** [July 9, 2020, 8:53am UTC](https://meta.discourse.org/t/patching-discourses-search/157156 "2020-07-09T08:53:21Z")

</div>

I’m writing a plugin which stores some extra data against each user (similar to discourse-user-notes, but not staff-only), and would like to be able to search against this. Presumably this involves patching something in…

---

## [Setting the api key via console](https://meta.discourse.org/t/setting-the-api-key-via-console/107472)

<div class="topic-metadata">

**Author:** [@csmu](https://meta.discourse.org/u/csmu)\
**Replies:** 11\
**Last updated:** [July 8, 2020, 12:24pm UTC](https://meta.discourse.org/t/setting-the-api-key-via-console/107472 "2020-07-08T12:24:28Z")

</div>

Is there a way to set the main api key via the console?

---

## [Ember CLI - How do I use it in discourse?](https://meta.discourse.org/t/ember-cli-how-do-i-use-it-in-discourse/72426)

<div class="topic-metadata">

**Author:** [@drew0101](https://meta.discourse.org/u/drew0101)\
**Replies:** 7\
**Last updated:** [July 7, 2020, 1:28pm UTC](https://meta.discourse.org/t/ember-cli-how-do-i-use-it-in-discourse/72426 "2020-07-07T13:28:24Z")

</div>

Hello, I am about to start hacking away at discourse, but I am confused how ember is used. Running commands such as ‘ember version’ or ‘ember g ’ give the error ‘ember: No such file or directory’. Do I need to install t…

---

## [How to make custom setting type](https://meta.discourse.org/t/how-to-make-custom-setting-type/156592)

<div class="topic-metadata">

**Author:** [@Nikolay](https://meta.discourse.org/u/Nikolay)\
**Replies:** 2\
**Last updated:** [July 6, 2020, 12:59pm UTC](https://meta.discourse.org/t/how-to-make-custom-setting-type/156592 "2020-07-06T12:59:09Z")

</div>

Hello all. I am making plugin. In settings file “settings.yml” i can add settings. There is field: “type”, it can be for example “list”, and then “list\_type” can be “secret”. In output you get setting like “sso\_provi…

---

## [Theme component order of precedence](https://meta.discourse.org/t/theme-component-order-of-precedence/156615)

<div class="topic-metadata">

**Author:** [@guildai](https://meta.discourse.org/u/guildai)\
**Replies:** 5\
**Last updated:** [July 6, 2020, 12:53pm UTC](https://meta.discourse.org/t/theme-component-order-of-precedence/156615 "2020-07-06T12:53:09Z")

</div>

I notice that theme components appear to execute in order of installation. E.g. if I install A and then B, A scripts are included in generated pages before B. Is this something I can rely on? Is there a view somewhere t…

---

## [How to skip "Create New Account" window when using custom ManagedAuthenticator + OmniAuth strategy?](https://meta.discourse.org/t/how-to-skip-create-new-account-window-when-using-custom-managedauthenticator-omniauth-strategy/155579)

<div class="topic-metadata">

**Author:** [@Hooksmith](https://meta.discourse.org/u/Hooksmith)\
**Replies:** 4\
**Last updated:** [July 6, 2020, 11:09am UTC](https://meta.discourse.org/t/how-to-skip-create-new-account-window-when-using-custom-managedauthenticator-omniauth-strategy/155579 "2020-07-06T11:09:42Z")

</div>

I’ve implemented a custom OmniAuth strategy + an authenticator that extends Discourse’s Auth::ManagedAuthenticator. However, when testing this in my development environment, I eventually end up on this screen, rather th…

---

## [Setting environment variables for test and development](https://meta.discourse.org/t/setting-environment-variables-for-test-and-development/138709)

<div class="topic-metadata">

**Author:** [@jamesmarkcook](https://meta.discourse.org/u/jamesmarkcook)\
**Replies:** 5\
**Last updated:** [July 6, 2020, 11:07am UTC](https://meta.discourse.org/t/setting-environment-variables-for-test-and-development/138709 "2020-07-06T11:07:20Z")

</div>

I’m thinking of adding the dotenv gem (GitHub - bkeepers/dotenv: A Ruby gem to load environment variables from \`.env\`. · GitHub) to my plugin for testing and development purposes. This is so that I can easily set my envi…

---

## [What are appropriate uses of PluginStore?](https://meta.discourse.org/t/what-are-appropriate-uses-of-pluginstore/154346)

<div class="topic-metadata">

**Author:** [@mcdanlj](https://meta.discourse.org/u/mcdanlj)\
**Replies:** 12\
**Last updated:** [July 6, 2020, 2:25am UTC](https://meta.discourse.org/t/what-are-appropriate-uses-of-pluginstore/154346 "2020-07-06T02:25:51Z")

</div>

It looks like PluginStore would be the easiest way for me to implement remembering Slack thread IDs for threaded responses — but I notice that the only use of it in all of discourse-chat-integration is orphaned; nothing …

---

## [Can parameters be injected from the template to a widget action?](https://meta.discourse.org/t/can-parameters-be-injected-from-the-template-to-a-widget-action/155275)

<div class="topic-metadata">

**Author:** [@oca](https://meta.discourse.org/u/oca)\
**Replies:** 2\
**Last updated:** [July 5, 2020, 7:49am UTC](https://meta.discourse.org/t/can-parameters-be-injected-from-the-template-to-a-widget-action/155275 "2020-07-05T07:49:44Z")

</div>

Continuing the discussion from Developer’s guide to Discourse Themes: Dear all, I was wondering if parameters could be injected from the template to an action and I couldn’t find a positive nor a negative answer in @Jo…

---

## [Help me understand: the post cooking process](https://meta.discourse.org/t/help-me-understand-the-post-cooking-process/153206)

<div class="topic-metadata">

**Author:** [@spirobel](https://meta.discourse.org/u/spirobel)\
**Replies:** 2\
**Last updated:** [July 3, 2020, 3:18pm UTC](https://meta.discourse.org/t/help-me-understand-the-post-cooking-process/153206 "2020-07-03T15:18:12Z")

</div>

Hi, I would be very glad if someone could help me understand how the post cooking process works. Especially I am interested in this part: why does post processing happen after the post got cooked already? Maybe we ca…

---

## [Loading js libraries via register\_asset](https://meta.discourse.org/t/loading-js-libraries-via-register-asset/156003)

<div class="topic-metadata">

**Author:** [@fzngagan](https://meta.discourse.org/u/fzngagan)\
**Replies:** 8\
**Last updated:** [July 2, 2020, 5:10pm UTC](https://meta.discourse.org/t/loading-js-libraries-via-register-asset/156003 "2020-07-02T17:10:20Z")

</div>

I noticed that the js files added using register\_asset via plugins are passed as a string to eval function. The problem with eval is, it doesn’t add the object to the global scope as discussed here. https://stackoverflo…

---

## [Travis builds failing posts.cached\_version does not exist](https://meta.discourse.org/t/travis-builds-failing-posts-cached-version-does-not-exist/150081)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 8\
**Last updated:** [July 2, 2020, 4:46am UTC](https://meta.discourse.org/t/travis-builds-failing-posts-cached-version-does-not-exist/150081 "2020-07-02T04:46:04Z")

</div>

I’ve got 3 plugins that I’m doing proper travis builds for that all started failing yesterday. They are all failing like this, and I don’t see how this problem could be caused by the plugins: 020-05-01 00:29:58.212 UTC …

---

## [Install Discourse on eclipse che - possible?](https://meta.discourse.org/t/install-discourse-on-eclipse-che-possible/151946)

<div class="topic-metadata">

**Author:** [@sysdl132](https://meta.discourse.org/u/sysdl132)\
**Replies:** 5\
**Last updated:** [July 1, 2020, 12:06pm UTC](https://meta.discourse.org/t/install-discourse-on-eclipse-che-possible/151946 "2020-07-01T12:06:39Z")

</div>

Recently I see my gitpod workspace is expired and deleted.So can I install it on eclipse che? link:https://che.openshift.io/

---

## [How to retrieve group owners? (Rails code question)](https://meta.discourse.org/t/how-to-retrieve-group-owners-rails-code-question/153610)

<div class="topic-metadata">

**Author:** [@JQ331](https://meta.discourse.org/u/JQ331)\
**Replies:** 13\
**Last updated:** [June 30, 2020, 4:52pm UTC](https://meta.discourse.org/t/how-to-retrieve-group-owners-rails-code-question/153610 "2020-06-30T16:52:43Z")

</div>

I think this question gets into the weeds of Rails, but here goes: I’m trying to figure out how to display the owner or owners of each group on the group index page (equivalent to this page). My starting point is the g…

---

## [Use topic-presence component in topic list](https://meta.discourse.org/t/use-topic-presence-component-in-topic-list/156254)

<div class="topic-metadata">

**Author:** [@Varhall](https://meta.discourse.org/u/Varhall)\
**Replies:** 0\
**Last updated:** [June 29, 2020, 2:56pm UTC](https://meta.discourse.org/t/use-topic-presence-component-in-topic-list/156254 "2020-06-29T14:56:31Z")

</div>

Hey. In my template for the list of topics, I want to show when someone is write a messge in real time. In the topic, it looks like this: I found in the template a variable that displays this block {{topic-presence-d…

---

## [How to override a method in post-cooked.js.es6 in a plugin?](https://meta.discourse.org/t/how-to-override-a-method-in-post-cooked-js-es6-in-a-plugin/120613)

<div class="topic-metadata">

**Author:** [@sachinsiby](https://meta.discourse.org/u/sachinsiby)\
**Replies:** 4\
**Last updated:** [June 28, 2020, 7:57am UTC](https://meta.discourse.org/t/how-to-override-a-method-in-post-cooked-js-es6-in-a-plugin/120613 "2020-06-28T07:57:32Z")

</div>

Hi, I’d like to customize the reply/embedded-post. This requires a modification to the \_computeCooked method in post-cooked via a plugin; essentially when this.attrs.embeddedPost is true, render something else. I notic…

---

## [Avatar URL endpoint](https://meta.discourse.org/t/avatar-url-endpoint/125995)

<div class="topic-metadata">

**Author:** [@nisevi](https://meta.discourse.org/u/nisevi)\
**Replies:** 5\
**Last updated:** [June 28, 2020, 3:59am UTC](https://meta.discourse.org/t/avatar-url-endpoint/125995 "2020-06-28T03:59:14Z")

</div>

Is there an endpoint to get the user’s avatar URL?

---

## [Manually triggering webhooks](https://meta.discourse.org/t/manually-triggering-webhooks/156097)

<div class="topic-metadata">

**Author:** [@Parker1090](https://meta.discourse.org/u/Parker1090)\
**Replies:** 5\
**Last updated:** [June 27, 2020, 3:56pm UTC](https://meta.discourse.org/t/manually-triggering-webhooks/156097 "2020-06-27T15:56:43Z")

</div>

I did find a post on this but didn’t want to revive a 3-year-old thread. I can’t even class myself as a novice when it comes to Ruby because I just haven’t used it. But basically, I have around 30 topics in a specific c…

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

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