# Development

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

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

**Page:** 117

---

## [Get all posts from topic](https://meta.discourse.org/t/get-all-posts-from-topic/71056)

<div class="topic-metadata">

**Author:** [@Mathieu](https://meta.discourse.org/u/Mathieu)\
**Replies:** 1\
**Last updated:** [September 19, 2018, 6:54pm UTC](https://meta.discourse.org/t/get-all-posts-from-topic/71056 "2018-09-19T18:54:10Z")

</div>

Hello there, I saw this post which says that if I want to get all posts from a single topic, I need to: Get the topic to get all posts ID ; Make a second request to get all posts with the ?posts\_id\[\] param. I really …

---

## [Auth plugin interface in 2.1.0](https://meta.discourse.org/t/auth-plugin-interface-in-2-1-0/97223)

<div class="topic-metadata">

**Author:** [@VojtechMyslivec](https://meta.discourse.org/u/VojtechMyslivec)\
**Replies:** 6\
**Last updated:** [September 19, 2018, 8:30am UTC](https://meta.discourse.org/t/auth-plugin-interface-in-2-1-0/97223 "2018-09-19T08:30:54Z")

</div>

Hello, I use discourse-mojeid authentication plugin based on OpenIdAuthenticator. This plugin is not compatible with Discourse 2.1.0 and I want to fix this. I found a commit, which changes the interface (constructor?) …

---

## [Issues with uploading the same image](https://meta.discourse.org/t/issues-with-uploading-the-same-image/96073)

<div class="topic-metadata">

**Author:** [@Edwin\_Mhoy\_Silva](https://meta.discourse.org/u/Edwin_Mhoy_Silva)\
**Replies:** 1\
**Last updated:** [September 18, 2018, 9:08am UTC](https://meta.discourse.org/t/issues-with-uploading-the-same-image/96073 "2018-09-18T09:08:11Z")

</div>

I have this ajax post method unction imageUpload(myType, myData, createType) { currentUsername = currentUser.username; var formData = new FormData(); formData.append('username', currentUsername)…

---

## [Offset scroll To post](https://meta.discourse.org/t/offset-scroll-to-post/97425)

<div class="topic-metadata">

**Author:** [@will\_io](https://meta.discourse.org/u/will_io)\
**Replies:** 0\
**Last updated:** [September 18, 2018, 3:59am UTC](https://meta.discourse.org/t/offset-scroll-to-post/97425 "2018-09-18T03:59:43Z")

</div>

I dont want to make this more difficult than it has to be. Likewise I dont want to redo this every upgrade. The only thing I want to do is -50px (old school header). Best logical approach?

---

## [Possible to show badges below user avatar in posts?](https://meta.discourse.org/t/possible-to-show-badges-below-user-avatar-in-posts/97298)

<div class="topic-metadata">

**Author:** [@Judd\_Cobler1](https://meta.discourse.org/u/Judd_Cobler1)\
**Replies:** 5\
**Last updated:** [September 17, 2018, 11:37pm UTC](https://meta.discourse.org/t/possible-to-show-badges-below-user-avatar-in-posts/97298 "2018-09-17T23:37:31Z")

</div>

Is it possible, when hosted by Discourse, to customize the forums so that the badges show up next to the user avatar? Envato has done it as seen here: Screenshot - 35a3b0817ba1db69cd53bec2213fdb1e - Gyazo but Im not sure…

---

## [Plugin Mishap - Uncategorized vs Uncategorized\<hash\>](https://meta.discourse.org/t/plugin-mishap-uncategorized-vs-uncategorized-hash/97318)

<div class="topic-metadata">

**Author:** [@will\_io](https://meta.discourse.org/u/will_io)\
**Replies:** 0\
**Last updated:** [September 17, 2018, 12:53am UTC](https://meta.discourse.org/t/plugin-mishap-uncategorized-vs-uncategorized-hash/97318 "2018-09-17T00:53:36Z")

</div>

Uncategorized topics problem The uncategorized topics (~3000) of my existing Discourse app were so disgruntled after a long struggle during a build process that out digested a derivative of itself some time ago in the w…

---

## [Mark posts as solved in an importer](https://meta.discourse.org/t/mark-posts-as-solved-in-an-importer/80146)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 6\
**Last updated:** [September 14, 2018, 8:44pm UTC](https://meta.discourse.org/t/mark-posts-as-solved-in-an-importer/80146 "2018-09-14T20:44:31Z")

</div>

I’m working on an importer for answerhub and need to mark posts as solved. A couple other importers do something like this: if topic\["answer"\] == '\[accepted\]' post.custom\_fields\['is\_accepted\_an…

---

## [Fixing the broken slack auth plugin](https://meta.discourse.org/t/fixing-the-broken-slack-auth-plugin/97033)

<div class="topic-metadata">

**Author:** [@Kukks](https://meta.discourse.org/u/Kukks)\
**Replies:** 5\
**Last updated:** [September 14, 2018, 7:07pm UTC](https://meta.discourse.org/t/fixing-the-broken-slack-auth-plugin/97033 "2018-09-14T19:07:07Z")

</div>

Hi there guys! Just started messing around with a discourse instance and wanted to add authentication via slack. Found an existing plugin but it’s broken so I decided to try and patch it up however I am no ruby dev at al…

---

## [Customize template used by post widget](https://meta.discourse.org/t/customize-template-used-by-post-widget/97168)

<div class="topic-metadata">

**Author:** [@will\_io](https://meta.discourse.org/u/will_io)\
**Replies:** 1\
**Last updated:** [September 14, 2018, 10:58am UTC](https://meta.discourse.org/t/customize-template-used-by-post-widget/97168 "2018-09-14T10:58:42Z")

</div>

On the pre-v2 installs I used to override the post hbs templates. I noticed in the github notes that the Discourse team converted this into a widget to enhance performance and it’s very noticeable in the browser. Within…

---

## [Accessing model out of load order](https://meta.discourse.org/t/accessing-model-out-of-load-order/96661)

<div class="topic-metadata">

**Author:** [@justin](https://meta.discourse.org/u/justin)\
**Replies:** 3\
**Last updated:** [September 12, 2018, 1:43pm UTC](https://meta.discourse.org/t/accessing-model-out-of-load-order/96661 "2018-09-12T13:43:28Z")

</div>

Hey all, I’m trying to work through an issue in the user-private-messages controller in a theme. Here’s what I’m trying to do. In the user/messages template, add content if there are fewer than 5 private messages in t…

---

## [Cannot load such file -- spec\_helper](https://meta.discourse.org/t/cannot-load-such-file-spec-helper/96877)

<div class="topic-metadata">

**Author:** [@jamesmarkcook](https://meta.discourse.org/u/jamesmarkcook)\
**Replies:** 2\
**Last updated:** [September 12, 2018, 7:51am UTC](https://meta.discourse.org/t/cannot-load-such-file-spec-helper/96877 "2018-09-12T07:51:40Z")

</div>

Not sure what’s gone wrong here (apart from the obvious missing spec\_helper). I’ve just cloned the Discourse repo and followed these steps for mac. I’m used to setting up projects and familiar with the steps involved. I…

---

## [How to contribute to Discourse without a Github account?](https://meta.discourse.org/t/how-to-contribute-to-discourse-without-a-github-account/96944)

<div class="topic-metadata">

**Author:** [@hellekin](https://meta.discourse.org/u/hellekin)\
**Replies:** 7\
**Last updated:** [September 11, 2018, 6:36pm UTC](https://meta.discourse.org/t/how-to-contribute-to-discourse-without-a-github-account/96944 "2018-09-11T18:36:06Z")

</div>

Continuing the discussion from Discourse Development Contribution Guidelines: Slowly I’m approaching the moment where I actually can spare time to contribute code to Discourse. This is something I have wanted to do for …

---

## [Issues uploading in custom wizard plugin](https://meta.discourse.org/t/issues-uploading-in-custom-wizard-plugin/96721)

<div class="topic-metadata">

**Author:** [@jameshahnii](https://meta.discourse.org/u/jameshahnii)\
**Replies:** 4\
**Last updated:** [September 9, 2018, 1:24pm UTC](https://meta.discourse.org/t/issues-uploading-in-custom-wizard-plugin/96721 "2018-09-09T13:24:18Z")

</div>

Morning y’all, I’m at the end of my third night in the last 5 trying to figure out how to allow for PDF uploads in the Custom Wizard plugin. I asked for help over in the plugins category days ago, but never heard from an…

---

## [The CSS code you need to make your Discourse forum stand-out](https://meta.discourse.org/t/the-css-code-you-need-to-make-your-discourse-forum-stand-out/96745)

<div class="topic-metadata">

**Author:** [@jameshahnii](https://meta.discourse.org/u/jameshahnii)\
**Replies:** 0\
**Last updated:** [September 8, 2018, 6:03pm UTC](https://meta.discourse.org/t/the-css-code-you-need-to-make-your-discourse-forum-stand-out/96745 "2018-09-08T18:03:31Z")

</div>

Howdy, y’all. Many of you have helped me so much over the past couple weeks I’ve felt a bit inadequate in the value exchange. Which is to say your help has been so critical in bringing me up-to-speed with full stack deve…

---

## [Liked variable showing null](https://meta.discourse.org/t/liked-variable-showing-null/96603)

<div class="topic-metadata">

**Author:** [@Edwin\_Mhoy\_Silva](https://meta.discourse.org/u/Edwin_Mhoy_Silva)\
**Replies:** 0\
**Last updated:** [September 7, 2018, 8:40am UTC](https://meta.discourse.org/t/liked-variable-showing-null/96603 "2018-09-07T08:40:47Z")

</div>

I have made a method which changes the color of the like button to red, when it has been liked. The method changes the color, based on if the variable “Liked” from topics is TRUE or FALSE. My problem is that this varia…

---

## [Theme Creator Web Dev Help](https://meta.discourse.org/t/theme-creator-web-dev-help/96500)

<div class="topic-metadata">

**Author:** [@rhrmn](https://meta.discourse.org/u/rhrmn)\
**Replies:** 3\
**Last updated:** [September 6, 2018, 5:06pm UTC](https://meta.discourse.org/t/theme-creator-web-dev-help/96500 "2018-09-06T17:06:35Z")

</div>

Hi, I am a moderator on the relatively new Age of Empires Discourse forums and would like to learn how to create a modified theme for the forums which matches the existing website color scheme, fonts and backgrounds whic…

---

## [Byebug behaving miserably due to multiple unicorn workers in dev](https://meta.discourse.org/t/byebug-behaving-miserably-due-to-multiple-unicorn-workers-in-dev/96184)

<div class="topic-metadata">

**Author:** [@gdpelican](https://meta.discourse.org/u/gdpelican)\
**Replies:** 3\
**Last updated:** [September 3, 2018, 1:12am UTC](https://meta.discourse.org/t/byebug-behaving-miserably-due-to-multiple-unicorn-workers-in-dev/96184 "2018-09-03T01:12:57Z")

</div>

Hello, I’ve just had a miserable time using byebug within Discourse, due to the default worker\_processes being set to 3 in unicorn.conf.rb. If multiple web workers get stopped by byebug at the same time (for example, y…

---

## [Working on first plugin; does not work. Using the pirate-speak plugin as a base](https://meta.discourse.org/t/working-on-first-plugin-does-not-work-using-the-pirate-speak-plugin-as-a-base/96171)

<div class="topic-metadata">

**Author:** [@purldator](https://meta.discourse.org/u/purldator)\
**Replies:** 4\
**Last updated:** [September 2, 2018, 11:45pm UTC](https://meta.discourse.org/t/working-on-first-plugin-does-not-work-using-the-pirate-speak-plugin-as-a-base/96171 "2018-09-02T23:45:02Z")

</div>

Here is the repository for it. My wife tried using it to no avail. It does not convert the text to an image. Either that, or this plugin I based it off from cannot change some text e.g. \[m08\] (meaning, major arcana nu…

---

## [Lost files after upgrade, got them back, and don't really know why](https://meta.discourse.org/t/lost-files-after-upgrade-got-them-back-and-dont-really-know-why/96122)

<div class="topic-metadata">

**Author:** [@jameshahnii](https://meta.discourse.org/u/jameshahnii)\
**Replies:** 2\
**Last updated:** [September 1, 2018, 1:40am UTC](https://meta.discourse.org/t/lost-files-after-upgrade-got-them-back-and-dont-really-know-why/96122 "2018-09-01T01:40:38Z")

</div>

Can y’all help me grasp what went down here? Went to log into Docker and got a notice about an upgrade. Couldn’t tell if it was a Digital Ocean or Discourse situation, so against my better judgement I decided to run the …

---

## [Quality of commit messages](https://meta.discourse.org/t/quality-of-commit-messages/96004)

<div class="topic-metadata">

**Author:** [@darix](https://meta.discourse.org/u/darix)\
**Replies:** 6\
**Last updated:** [August 31, 2018, 1:47pm UTC](https://meta.discourse.org/t/quality-of-commit-messages/96004 "2018-08-31T13:47:35Z")

</div>

Let’s take this as an example. (sorry @tgxworld, this is really just an example, I could have picked so many other commit messages) https://github.com/discourse/discourse/commit/a928bf4300f4496bcc86e34d07095db7d3e09edb …

---

## [Event that is triggered on an extension of the visible topic list?](https://meta.discourse.org/t/event-that-is-triggered-on-an-extension-of-the-visible-topic-list/96019)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**Replies:** 0\
**Last updated:** [August 30, 2018, 3:59pm UTC](https://meta.discourse.org/t/event-that-is-triggered-on-an-extension-of-the-visible-topic-list/96019 "2018-08-30T15:59:37Z")

</div>

Guys, Newbie question, forgive me: Is there any event or property update I can hook to that occurs after the topic list is loaded with additional items (and you see the spinner)? In the code I’m working on I want to b…

---

## [How to populate a dev server with data from Production?](https://meta.discourse.org/t/how-to-populate-a-dev-server-with-data-from-production/95980)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**Replies:** 1\
**Last updated:** [August 30, 2018, 9:25am UTC](https://meta.discourse.org/t/how-to-populate-a-dev-server-with-data-from-production/95980 "2018-08-30T09:25:37Z")

</div>

Guys, I wonder if there is ‘correct way’ to upload some test data from a Production forum back-up into a dev server. Obviously the dev server will lack a domain. I’m using a cloud server for dev. What are the gotchas…

---

## [Please use Chromium instead of Chrome for testing suite](https://meta.discourse.org/t/please-use-chromium-instead-of-chrome-for-testing-suite/95772)

<div class="topic-metadata">

**Author:** [@sudoman](https://meta.discourse.org/u/sudoman)\
**Replies:** 4\
**Last updated:** [August 29, 2018, 4:04pm UTC](https://meta.discourse.org/t/please-use-chromium-instead-of-chrome-for-testing-suite/95772 "2018-08-29T16:04:01Z")

</div>

Hello Discourse team, I noticed that your image/discourse\_test/Dockerfile file installs Google Chrome. It would be great if you use Chromium instead, because it is free software and is virtually the same as Google Chrom…

---

## [Docker image includes unneeded Ubuntu "restricted" (non-free) repo](https://meta.discourse.org/t/docker-image-includes-unneeded-ubuntu-restricted-non-free-repo/88931)

<div class="topic-metadata">

**Author:** [@sudoman](https://meta.discourse.org/u/sudoman)\
**Replies:** 10\
**Last updated:** [August 28, 2018, 8:06pm UTC](https://meta.discourse.org/t/docker-image-includes-unneeded-ubuntu-restricted-non-free-repo/88931 "2018-08-28T20:06:35Z")

</div>

Hello Discourse team, I did a quick peek at /etc/apt/sources.list and found this list: deb http://archive.ubuntu.com/ubuntu xenial main restricted universe deb http://archive.ubuntu.com/ubuntu xenial-updates main restr…

---

## [Import from vbulletin to discourse forums](https://meta.discourse.org/t/import-from-vbulletin-to-discourse-forums/95175)

<div class="topic-metadata">

**Author:** [@Affer\_Raza](https://meta.discourse.org/u/Affer_Raza)\
**Replies:** 5\
**Last updated:** [August 28, 2018, 1:44pm UTC](https://meta.discourse.org/t/import-from-vbulletin-to-discourse-forums/95175 "2018-08-28T13:44:02Z")

</div>

Hello, I am currently moving from vbulletin to discourse forums.Import scripts ( scripts/import\_scripts/vbulletin.rb ) were running fine and 2.3 million posts are transferred out of 2.5 million.But now it is stopping af…

---

## [Getting data for the widget](https://meta.discourse.org/t/getting-data-for-the-widget/95632)

<div class="topic-metadata">

**Author:** [@Stranik](https://meta.discourse.org/u/Stranik)\
**Replies:** 4\
**Last updated:** [August 25, 2018, 6:06pm UTC](https://meta.discourse.org/t/getting-data-for-the-widget/95632 "2018-08-25T18:06:18Z")

</div>

I don’t want to use this approach in widgets: $.ajax({ url: "/u/"+ username +".json", dataType: 'json', async: false, success: function(data) { ....data.user.time\_read; Is there any other way to get this v…

---

## [Secret Text Plugin](https://meta.discourse.org/t/secret-text-plugin/61615)

<div class="topic-metadata">

**Author:** [@logannc](https://meta.discourse.org/u/logannc)\
**Replies:** 7\
**Last updated:** [August 25, 2018, 5:37pm UTC](https://meta.discourse.org/t/secret-text-plugin/61615 "2018-08-25T17:37:07Z")

</div>

I posted this in the Dev section because I do not think such a plugin exists. If I’m wrong, I would love to be corrected. I would like to create a Discourse plugin that allows ‘secret’ text in the midst of a post. This …

---

## [Custom option in the topic admin panel?](https://meta.discourse.org/t/custom-option-in-the-topic-admin-panel/95617)

<div class="topic-metadata">

**Author:** [@Kampfkarren](https://meta.discourse.org/u/Kampfkarren)\
**Replies:** 1\
**Last updated:** [August 25, 2018, 4:59am UTC](https://meta.discourse.org/t/custom-option-in-the-topic-admin-panel/95617 "2018-08-25T04:59:32Z")

</div>

The past 15 hours for me have been a nightmare of reading existing plugins and source code just to get extremely basic functionality to write my first plugin. I need help. Specifically, I need help just getting a new bu…

---

## [Getting signed data from the server](https://meta.discourse.org/t/getting-signed-data-from-the-server/95084)

<div class="topic-metadata">

**Author:** [@EGreg](https://meta.discourse.org/u/EGreg)\
**Replies:** 20\
**Last updated:** [August 23, 2018, 7:18pm UTC](https://meta.discourse.org/t/getting-signed-data-from-the-server/95084 "2018-08-23T19:18:07Z")

</div>

Hey all. This question is to the developers, including @codinghorror possibly. I would like our platform to integrate with Discourse seamlessly. In order for this to happen, a user authenticating with Discourse needs to …

---

## [Installation notes for Discourse on Bash for Windows](https://meta.discourse.org/t/installation-notes-for-discourse-on-bash-for-windows/48141)

<div class="topic-metadata">

**Author:** [@sam](https://meta.discourse.org/u/sam)\
**Replies:** 17\
**Last updated:** [August 23, 2018, 4:33pm UTC](https://meta.discourse.org/t/installation-notes-for-discourse-on-bash-for-windows/48141 "2018-08-23T16:33:18Z")

</div>

Here are some rough notes on how I went about install Discourse on Bash for Windows: Install required packages Mostly a cut-and-paste job from our docker base image. curl http://apt.postgresql.org/pub/repos/apt/ACCC4C…

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

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