# Development

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

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

**Page:** 106

---

## [Not getting custom fields on :approved\_post event](https://meta.discourse.org/t/not-getting-custom-fields-on-approved-post-event/125649)

<div class="topic-metadata">

**Author:** [@fzngagan](https://meta.discourse.org/u/fzngagan)\
**Replies:** 9\
**Last updated:** [August 16, 2019, 5:14am UTC](https://meta.discourse.org/t/not-getting-custom-fields-on-approved-post-event/125649 "2019-08-16T05:14:53Z")

</div>

I am trying to save custom fields for a post that needs review. When I approve the post, the custom fields don’t get saved. I checked the :approved\_post event and the custom fields aren’t getting set in the payload. Ho…

---

## [Missing NOT NULL and uniqueness constraints in DB](https://meta.discourse.org/t/missing-not-null-and-uniqueness-constraints-in-db/125945)

<div class="topic-metadata">

**Author:** [@Utsav](https://meta.discourse.org/u/Utsav)\
**Replies:** 1\
**Last updated:** [August 16, 2019, 5:05am UTC](https://meta.discourse.org/t/missing-not-null-and-uniqueness-constraints-in-db/125945 "2019-08-16T05:05:38Z")

</div>

Hi, Wanted to make a report about a few validations/constraints that exist in models but are missing in DB. Missing not null requirements PostDetail - key, value are required to be present in model but are nullable in …

---

## [Error in getting topic and posts(Connection Problem)](https://meta.discourse.org/t/error-in-getting-topic-and-posts-connection-problem/125773)

<div class="topic-metadata">

**Author:** [@Vishal\_Kaushik](https://meta.discourse.org/u/Vishal_Kaushik)\
**Replies:** 2\
**Last updated:** [August 14, 2019, 11:50pm UTC](https://meta.discourse.org/t/error-in-getting-topic-and-posts-connection-problem/125773 "2019-08-14T23:50:17Z")

</div>

I am getting this issue when I am trying to get a topic and its posts. What can be the reason.

---

## [TeamSpeak Usergroups Sync](https://meta.discourse.org/t/teamspeak-usergroups-sync/119738)

<div class="topic-metadata">

**Author:** [@SvenC56](https://meta.discourse.org/u/SvenC56)\
**Replies:** 1\
**Last updated:** [August 12, 2019, 5:56pm UTC](https://meta.discourse.org/t/teamspeak-usergroups-sync/119738 "2019-08-12T17:56:52Z")

</div>

Hello together I’m currently working on a synchronization service between Discourse and TeamSpeak to sync user groups from Discourse to TeamSpeak 3. This service is already working and I’m tweaking it at the moment. Fi…

---

## [Setting a user to watch first post on a category](https://meta.discourse.org/t/setting-a-user-to-watch-first-post-on-a-category/125494)

<div class="topic-metadata">

**Author:** [@csmu](https://meta.discourse.org/u/csmu)\
**Replies:** 2\
**Last updated:** [August 12, 2019, 12:58am UTC](https://meta.discourse.org/t/setting-a-user-to-watch-first-post-on-a-category/125494 "2019-08-12T00:58:49Z")

</div>

Context: I’ve discovered setting watching first post on a category pretty much sorts out the request we have from one local community group to only have replies going to the author of the topic. There are over 200 member…

---

## [CSS attribute for the new topic button?](https://meta.discourse.org/t/css-attribute-for-the-new-topic-button/125476)

<div class="topic-metadata">

**Author:** [@Jennifer\_Abrams](https://meta.discourse.org/u/Jennifer_Abrams)\
**Replies:** 1\
**Last updated:** [August 11, 2019, 9:55pm UTC](https://meta.discourse.org/t/css-attribute-for-the-new-topic-button/125476 "2019-08-11T21:55:45Z")

</div>

Last CSS question I swear. Most of my site is CSS customized but I just cant figure out the CSS code for changing the new topic button color (both hover and non-hover) Perhaps you can change it in the admin settings al…

---

## [What would it take to allow two user-selectors in one form?](https://meta.discourse.org/t/what-would-it-take-to-allow-two-user-selectors-in-one-form/113615)

<div class="topic-metadata">

**Author:** [@Dannii](https://meta.discourse.org/u/Dannii)\
**Replies:** 2\
**Last updated:** [August 10, 2019, 12:45am UTC](https://meta.discourse.org/t/what-would-it-take-to-allow-two-user-selectors-in-one-form/113615 "2019-08-10T00:45:38Z")

</div>

It seems that the user-selector component cannot be used more than once in a form. They both get given a name attribute of user-selector-renamed, but if you try to change the value of the second then it refreshes the pag…

---

## [Should I keep my theme on GitHub or not?](https://meta.discourse.org/t/should-i-keep-my-theme-on-github-or-not/125071)

<div class="topic-metadata">

**Author:** [@bifterx](https://meta.discourse.org/u/bifterx)\
**Replies:** 9\
**Last updated:** [August 9, 2019, 8:58pm UTC](https://meta.discourse.org/t/should-i-keep-my-theme-on-github-or-not/125071 "2019-08-09T20:58:45Z")

</div>

Sorry if this sounds a bit naive. We have done a fair bit of styling, simple stuff but a fair bit to our Discourse theme with custom CSS tweaks etc. Its a hosted plan, every time I make changes to the CSS in the UI it gi…

---

## [Anonymous Plugin](https://meta.discourse.org/t/anonymous-plugin/73293)

<div class="topic-metadata">

**Author:** [@Bolarinwa\_Balogun](https://meta.discourse.org/u/Bolarinwa_Balogun)\
**Replies:** 19\
**Last updated:** [August 8, 2019, 6:27pm UTC](https://meta.discourse.org/t/anonymous-plugin/73293 "2019-08-08T18:27:50Z")

</div>

Hi, I’m setting up discourse to be used as a discussion board for a school. One of the requested features was students can make a post where they appear as anonymous to other students but teacher is aware of the individ…

---

## [Adding a method \`get\_like\` to PluginStore class](https://meta.discourse.org/t/adding-a-method-get-like-to-pluginstore-class/125026)

<div class="topic-metadata">

**Author:** [@fzngagan](https://meta.discourse.org/u/fzngagan)\
**Replies:** 7\
**Last updated:** [August 8, 2019, 3:30pm UTC](https://meta.discourse.org/t/adding-a-method-get-like-to-pluginstore-class/125026 "2019-08-08T15:30:36Z")

</div>

I want to submit a PR to add a method get\_like to the PluginStore. get\_like will fetch all the records for a given plugin, whose key starts with the same word. Usecase If a plugin has two or more entities they want to…

---

## [Help creating a jump to top button](https://meta.discourse.org/t/help-creating-a-jump-to-top-button/67118)

<div class="topic-metadata">

**Author:** [@charleswalter](https://meta.discourse.org/u/charleswalter)\
**Replies:** 24\
**Last updated:** [August 8, 2019, 1:19pm UTC](https://meta.discourse.org/t/help-creating-a-jump-to-top-button/67118 "2019-08-08T13:19:58Z")

</div>

We currently have a jump to top button (anchor points to a div in the header) to make it easy to go back to the top of a category. Ideally it would also work for topics, but the first post of a topic is not necessarily t…

---

## [Where is the db connection information discourse?](https://meta.discourse.org/t/where-is-the-db-connection-information-discourse/123113)

<div class="topic-metadata">

**Author:** [@영광\_임](https://meta.discourse.org/u/%EC%98%81%EA%B4%91_%EC%9E%84)\
**Replies:** 3\
**Last updated:** [August 6, 2019, 2:25am UTC](https://meta.discourse.org/t/where-is-the-db-connection-information-discourse/123113 "2019-08-06T02:25:48Z")

</div>

I installed a discourse as a guide. connecting postgresql … I want to check the discourse table. pgAdmin4 is already installed. Where is the db connection information?

---

## [Getting 500 after adding post in a topic](https://meta.discourse.org/t/getting-500-after-adding-post-in-a-topic/124887)

<div class="topic-metadata">

**Author:** [@Vishal\_Kaushik](https://meta.discourse.org/u/Vishal_Kaushik)\
**Replies:** 2\
**Last updated:** [August 5, 2019, 12:59pm UTC](https://meta.discourse.org/t/getting-500-after-adding-post-in-a-topic/124887 "2019-08-05T12:59:44Z")

</div>

I am getting 500 error after adding a post in topic with the following response. I have made some changes in the userController suspicious method. Is that the reason. I am getting the following error : Its really urg…

---

## [Unable to Install Discourse for development](https://meta.discourse.org/t/unable-to-install-discourse-for-development/124651)

<div class="topic-metadata">

**Author:** [@ExpertTeam\_India](https://meta.discourse.org/u/ExpertTeam_India)\
**Replies:** 7\
**Last updated:** [August 2, 2019, 7:35pm UTC](https://meta.discourse.org/t/unable-to-install-discourse-for-development/124651 "2019-08-02T19:35:26Z")

</div>

Hello, I am trying to install Discourse but unable to install. Install stop with following line: Fetching libv8 7.3.492.27.1 Installing libv8 7.3.492.27.1 with native extensions Please help me. Thanks

---

## [Stripe Plugins Integration](https://meta.discourse.org/t/stripe-plugins-integration/124694)

<div class="topic-metadata">

**Author:** [@vaibhavclecotech](https://meta.discourse.org/u/vaibhavclecotech)\
**Replies:** 1\
**Last updated:** [August 2, 2019, 7:36am UTC](https://meta.discourse.org/t/stripe-plugins-integration/124694 "2019-08-02T07:36:04Z")

</div>

Hi everyone, I want to integrate stripe on my project. Is there any tutorials for stripe integrations? Thanks in advance :slight\_smile:

---

## [Discourse User Created Response Not as expected](https://meta.discourse.org/t/discourse-user-created-response-not-as-expected/124599)

<div class="topic-metadata">

**Author:** [@Vishal\_Kaushik](https://meta.discourse.org/u/Vishal_Kaushik)\
**Replies:** 5\
**Last updated:** [August 2, 2019, 6:42am UTC](https://meta.discourse.org/t/discourse-user-created-response-not-as-expected/124599 "2019-08-02T06:42:27Z")

</div>

Discourse returning You’re almost done! We sent an activation mail to abc@gmail.com. Please follow the instructions in the mail to activate your account. If it doesn’t arrive, check your spam folder. as message even …

---

## [Why aren't there more foreign keys in the Discourse database?](https://meta.discourse.org/t/why-arent-there-more-foreign-keys-in-the-discourse-database/111359)

<div class="topic-metadata">

**Author:** [@intijk](https://meta.discourse.org/u/intijk)\
**Replies:** 3\
**Last updated:** [August 2, 2019, 2:22am UTC](https://meta.discourse.org/t/why-arent-there-more-foreign-keys-in-the-discourse-database/111359 "2019-08-02T02:22:42Z")

</div>

I saw discourse db table schema only has several foreign keys, is there any reason to not use the foreign keys in most tables?

---

## [Plugins and theme components rarely support tag-pages](https://meta.discourse.org/t/plugins-and-theme-components-rarely-support-tag-pages/123900)

<div class="topic-metadata">

**Author:** [@Andy02](https://meta.discourse.org/u/Andy02)\
**Replies:** 3\
**Last updated:** [August 1, 2019, 1:09am UTC](https://meta.discourse.org/t/plugins-and-theme-components-rarely-support-tag-pages/123900 "2019-08-01T01:09:50Z")

</div>

Tag pages are great, but using them seems to require dropping plugins and theme components as most are built to work on categories. This could be an issue for individual developers to solve, but as discourse appears to …

---

## [Replacing email/notification.html via custom Plugin - tips?](https://meta.discourse.org/t/replacing-email-notification-html-via-custom-plugin-tips/87529)

<div class="topic-metadata">

**Author:** [@Maisy](https://meta.discourse.org/u/Maisy)\
**Replies:** 6\
**Last updated:** [July 31, 2019, 2:00pm UTC](https://meta.discourse.org/t/replacing-email-notification-html-via-custom-plugin-tips/87529 "2019-07-31T14:00:09Z")

</div>

I’ve reached a bit of an impasse and I’m looking for a spot of help. As part of our switchover to Discourse, we want to change the design of the default email templates and obviously, as only the copy can be changed via…

---

## [Changing/removing API rate limit with category creation](https://meta.discourse.org/t/changing-removing-api-rate-limit-with-category-creation/78611)

<div class="topic-metadata">

**Author:** [@lukespragg](https://meta.discourse.org/u/lukespragg)\
**Replies:** 16\
**Last updated:** [July 31, 2019, 4:31am UTC](https://meta.discourse.org/t/changing-removing-api-rate-limit-with-category-creation/78611 "2019-07-31T04:31:29Z")

</div>

I’ve been running into an issue with creating categories via the API. It seems there is a limit, but that limit doesn’t seem to be customizable nor does it seem to have a setting to disable it anywhere. The error I get …

---

## [How to distinguish new topic and reply](https://meta.discourse.org/t/how-to-distinguish-new-topic-and-reply/124278)

<div class="topic-metadata">

**Author:** [@livc](https://meta.discourse.org/u/livc)\
**Replies:** 1\
**Last updated:** [July 29, 2019, 1:42pm UTC](https://meta.discourse.org/t/how-to-distinguish-new-topic-and-reply/124278 "2019-07-29T13:42:01Z")

</div>

Hi, I want to add a checkbox in the reply area when replying but not in creating a new topic, but I found the html id both are reply-control and reply-area. So how can I add in replying but not affect creating a topic. …

---

## [Displaying Discourse Variables on Other Pages](https://meta.discourse.org/t/displaying-discourse-variables-on-other-pages/124116)

<div class="topic-metadata">

**Author:** [@Gnisha](https://meta.discourse.org/u/Gnisha)\
**Replies:** 4\
**Last updated:** [July 29, 2019, 8:27am UTC](https://meta.discourse.org/t/displaying-discourse-variables-on-other-pages/124116 "2019-07-29T08:27:49Z")

</div>

Hello. I am wanting to display some site statistics from the /about page on the front page in combination with another plugin. For example, I’ve added Members: {{number model.stats.user\_count}} to the .hbs file of a pl…

---

## [Dev Environment: Missing port leads to broken images](https://meta.discourse.org/t/dev-environment-missing-port-leads-to-broken-images/107388)

<div class="topic-metadata">

**Author:** [@kleinfreund](https://meta.discourse.org/u/kleinfreund)\
**Replies:** 8\
**Last updated:** [July 28, 2019, 10:46pm UTC](https://meta.discourse.org/t/dev-environment-missing-port-leads-to-broken-images/107388 "2019-07-28T22:46:42Z")

</div>

I configured a logo in the site settings, but the logo’s URL is missing the default port, i.e. the logo URL looks like this http://localhost/uploads/… rather than http://localhost:3000/uploads/…. I’m starting the develo…

---

## [Tool for Tossing out Notifications via Discord](https://meta.discourse.org/t/tool-for-tossing-out-notifications-via-discord/83520)

<div class="topic-metadata">

**Author:** [@Cyclops](https://meta.discourse.org/u/Cyclops)\
**Replies:** 4\
**Last updated:** [July 28, 2019, 2:15pm UTC](https://meta.discourse.org/t/tool-for-tossing-out-notifications-via-discord/83520 "2019-07-28T14:15:26Z")

</div>

Alright, so this has probably been done before and this is done in a very hacked sort of way, and if I’m posting this in the wrong place, please let me know. I’ve coded a tool in python which receives webhook data from …

---

## [I need to remove a topic list column in my forum](https://meta.discourse.org/t/i-need-to-remove-a-topic-list-column-in-my-forum/124109)

<div class="topic-metadata">

**Author:** [@PaulinaMX](https://meta.discourse.org/u/PaulinaMX)\
**Replies:** 6\
**Last updated:** [July 28, 2019, 2:45am UTC](https://meta.discourse.org/t/i-need-to-remove-a-topic-list-column-in-my-forum/124109 "2019-07-28T02:45:37Z")

</div>

¡Hello! I have been trying to make my own theme, based on other themes that I have looked in this forum, everything is going as I want, just something I want to remove and I don’t know how to do it. This is what I am u…

---

## [How do I add data attributes to a script using the HTML builder](https://meta.discourse.org/t/how-do-i-add-data-attributes-to-a-script-using-the-html-builder/124026)

<div class="topic-metadata">

**Author:** [@pebble](https://meta.discourse.org/u/pebble)\
**Replies:** 2\
**Last updated:** [July 26, 2019, 8:51pm UTC](https://meta.discourse.org/t/how-do-i-add-data-attributes-to-a-script-using-the-html-builder/124026 "2019-07-26T20:51:01Z")

</div>

I’m new to ember. is the h function that is used in some pages to build HTML part of the ember project? I haven’t been able to find documentation on it. Searching “ember h javascript” doesn’t do the trick The specific …

---

## [Is it possible to submit a forked version for managed hosting?](https://meta.discourse.org/t/is-it-possible-to-submit-a-forked-version-for-managed-hosting/124030)

<div class="topic-metadata">

**Author:** [@pebble](https://meta.discourse.org/u/pebble)\
**Replies:** 6\
**Last updated:** [July 26, 2019, 8:49pm UTC](https://meta.discourse.org/t/is-it-possible-to-submit-a-forked-version-for-managed-hosting/124030 "2019-07-26T20:49:48Z")

</div>

Most of the context is in the title. We are in the process of making some changes to the SSO login. The result is that a user can login without a redirecting away from the discourse site. This is achieved by opening an…

---

## [Posts = postsToRender Which one do you call .html.erb?](https://meta.discourse.org/t/posts-poststorender-which-one-do-you-call-html-erb/124056)

<div class="topic-metadata">

**Author:** [@영광\_임](https://meta.discourse.org/u/%EC%98%81%EA%B4%91_%EC%9E%84)\
**Replies:** 2\
**Last updated:** [July 26, 2019, 2:25pm UTC](https://meta.discourse.org/t/posts-poststorender-which-one-do-you-call-html-erb/124056 "2019-07-26T14:25:54Z")

</div>

posts = postsToRender Which one do you call .html.erb? posts = postsToRender Which .html should I modify to edit? {{conditional-loading-spinner condition=model.postStream.loadingAbove}} {{plugi…

---

## [Plugin development-- Event fired if email address is changed?](https://meta.discourse.org/t/plugin-development-event-fired-if-email-address-is-changed/123899)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 5\
**Last updated:** [July 25, 2019, 7:19pm UTC](https://meta.discourse.org/t/plugin-development-event-fired-if-email-address-is-changed/123899 "2019-07-25T19:19:02Z")

</div>

I’m working on a plugin that will add users to a group if their email address matches a whitelist. I have it working for new users with: DiscourseEvent.on(:user\_created) do |user| GroupDomain.add\_to\_group\_if\_in\_w…

---

## [I want to install a plugin for development, what should I do?](https://meta.discourse.org/t/i-want-to-install-a-plugin-for-development-what-should-i-do/123692)

<div class="topic-metadata">

**Author:** [@영광\_임](https://meta.discourse.org/u/%EC%98%81%EA%B4%91_%EC%9E%84)\
**Replies:** 17\
**Last updated:** [July 24, 2019, 3:24am UTC](https://meta.discourse.org/t/i-want-to-install-a-plugin-for-development-what-should-i-do/123692 "2019-07-24T03:24:16Z")

</div>

I want to install a plugin What should I do? cd /var/discourse nano containers/app.yml I do not have a file named app.yml. This guide does not help me. Is there no other way? I Install Discourse for Development u…

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

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