# Development

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

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

**Page:** 142

---

## [Login from another user database](https://meta.discourse.org/t/login-from-another-user-database/49608)

<div class="topic-metadata">

**Author:** [@Asoul](https://meta.discourse.org/u/Asoul)\
**Replies:** 7\
**Last updated:** [September 3, 2016, 7:32pm UTC](https://meta.discourse.org/t/login-from-another-user-database/49608 "2016-09-03T19:32:36Z")

</div>

I’m new to discourse, Is it possible validate the login process by customized database information? I have an original service with login/logout mechanism, now I want to create a forum by discourse, and login/logout f…

---

## [Add button to top navigation bar](https://meta.discourse.org/t/add-button-to-top-navigation-bar/49552)

<div class="topic-metadata">

**Author:** [@kgish](https://meta.discourse.org/u/kgish)\
**Replies:** 3\
**Last updated:** [September 1, 2016, 9:11pm UTC](https://meta.discourse.org/t/add-button-to-top-navigation-bar/49552 "2016-09-01T21:11:04Z")

</div>

I’m developing a plugin which needs to be able to append an extra button to the top navigation bar: list-controls \> .container \> div \> .ul.nav I also need to remove the new-topic button at the far right. What is the p…

---

## [Can't add plugin outlet to view](https://meta.discourse.org/t/cant-add-plugin-outlet-to-view/49465)

<div class="topic-metadata">

**Author:** [@sevenmaxis](https://meta.discourse.org/u/sevenmaxis)\
**Replies:** 3\
**Last updated:** [September 1, 2016, 8:17pm UTC](https://meta.discourse.org/t/cant-add-plugin-outlet-to-view/49465 "2016-09-01T20:17:58Z")

</div>

I want to add some extra plugin outlet for plugins For example I added line {{plugin-outlet "bread-and-tee" tagName="li"}} to app/assets/javascripts/discourse/templates/components/bread-crumbs.hbs in development envir…

---

## [Insert ads at any place](https://meta.discourse.org/t/insert-ads-at-any-place/49326)

<div class="topic-metadata">

**Author:** [@sevenmaxis](https://meta.discourse.org/u/sevenmaxis)\
**Replies:** 4\
**Last updated:** [August 31, 2016, 5:43pm UTC](https://meta.discourse.org/t/insert-ads-at-any-place/49326 "2016-08-31T17:43:29Z")

</div>

The Discourse Ad Plugin propose to place ads in fixed places on the site. My customer want to place these ads other places, to make advertising look nicer in his opinion. As far as I understood I can insert html elements…

---

## [How to rebake Bios](https://meta.discourse.org/t/how-to-rebake-bios/49443)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 4\
**Last updated:** [August 31, 2016, 4:47pm UTC](https://meta.discourse.org/t/how-to-rebake-bios/49443 "2016-08-31T16:47:06Z")

</div>

I’ve written an importer that pulls in a database of email addresses and Bios and sticks the bio into the About (aka bio\_raw) field. It works fine, but the bios don’t show up because they aren’t getting baked. Inquiring …

---

## [Swagger, WADL or similar for the REST API?](https://meta.discourse.org/t/swagger-wadl-or-similar-for-the-rest-api/41623)

<div class="topic-metadata">

**Author:** [@erkist](https://meta.discourse.org/u/erkist)\
**Replies:** 10\
**Last updated:** [August 30, 2016, 1:34pm UTC](https://meta.discourse.org/t/swagger-wadl-or-similar-for-the-rest-api/41623 "2016-08-30T13:34:15Z")

</div>

We are migrating from an old forum solution (based on Teamforge) over to Discourse, and we have a few scripts and tools that we’d like to re-write to use the Discourse REST API. Being notoriously lazy, I’m wondering if t…

---

## [Is there a preferred IDE for Discourse dev?](https://meta.discourse.org/t/is-there-a-preferred-ide-for-discourse-dev/49312)

<div class="topic-metadata">

**Author:** [@Muiran](https://meta.discourse.org/u/Muiran)\
**Replies:** 5\
**Last updated:** [August 30, 2016, 3:34am UTC](https://meta.discourse.org/t/is-there-a-preferred-ide-for-discourse-dev/49312 "2016-08-30T03:34:21Z")

</div>

I want to primarily work at building plugins that are popular on other platforms ie WordPress. Thanks

---

## [How to prevent effects of async loading vs direct loading?](https://meta.discourse.org/t/how-to-prevent-effects-of-async-loading-vs-direct-loading/49379)

<div class="topic-metadata">

**Author:** [@broz](https://meta.discourse.org/u/broz)\
**Replies:** 3\
**Last updated:** [August 29, 2016, 1:02pm UTC](https://meta.discourse.org/t/how-to-prevent-effects-of-async-loading-vs-direct-loading/49379 "2016-08-29T13:02:47Z")

</div>

I have a topic page: Topic This page is particular, it has a \<div id="om-xddddihwxnstqcdk-holder"\>\</div\> into the content, this div is converted into this result: The operation of converting the id into the form is …

---

## [Custom section - Call to ember-template-compiler.map](https://meta.discourse.org/t/custom-section-call-to-ember-template-compiler-map/49195)

<div class="topic-metadata">

**Author:** [@Overgrow](https://meta.discourse.org/u/Overgrow)\
**Replies:** 1\
**Last updated:** [August 25, 2016, 3:33pm UTC](https://meta.discourse.org/t/custom-section-call-to-ember-template-compiler-map/49195 "2016-08-25T15:33:01Z")

</div>

Hello, I have added few custom routes and wonder why some bug in my code have introduced this error. When loading this custom section following is shown (javascript tries to GET this file)… ActionController::RoutingErr…

---

## [Unable to create Vagrant local installation](https://meta.discourse.org/t/unable-to-create-vagrant-local-installation/48574)

<div class="topic-metadata">

**Author:** [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Replies:** 2\
**Last updated:** [August 25, 2016, 11:58am UTC](https://meta.discourse.org/t/unable-to-create-vagrant-local-installation/48574 "2016-08-25T11:58:16Z")

</div>

I followed the instruction below to install Discourse on my local windows system I got below error after the command bundle exec rake db:migrate Could not find module pretty-text/pretty-text Error raised on the line …

---

## [Mbox.rb replacing underscores with spaces](https://meta.discourse.org/t/mbox-rb-replacing-underscores-with-spaces/49084)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 4\
**Last updated:** [August 23, 2016, 8:16pm UTC](https://meta.discourse.org/t/mbox-rb-replacing-underscores-with-spaces/49084 "2016-08-23T20:16:06Z")

</div>

Something in one of these files is replacing underscores with spaces in email addresses. I’m 99% sure that the one I forked did too, but I’m including my copy in case I did something boneheaded. is replacing \_ with a…

---

## [Wiki sync plugin](https://meta.discourse.org/t/wiki-sync-plugin/48946)

<div class="topic-metadata">

**Author:** [@Lapinot](https://meta.discourse.org/u/Lapinot)\
**Replies:** 7\
**Last updated:** [August 22, 2016, 10:14am UTC](https://meta.discourse.org/t/wiki-sync-plugin/48946 "2016-08-22T10:14:58Z")

</div>

Hi everyone, I had an idea of a simple plugin that I am going to write but I may need some help/advices. The idea is just to sync up the posts in wiki mode with some external version control (a git server). This is real…

---

## [How to log bad data in an import script](https://meta.discourse.org/t/how-to-log-bad-data-in-an-import-script/49034)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 3\
**Last updated:** [August 23, 2016, 1:14am UTC](https://meta.discourse.org/t/how-to-log-bad-data-in-an-import-script/49034 "2016-08-23T01:14:01Z")

</div>

I’ve made considerable improvements to mbox.rb, the mbox email importer. I’m importing 230K messages, many of which have had the email addresses broken in one way or another. The script used to just crap out if something…

---

## [How to create migration files?](https://meta.discourse.org/t/how-to-create-migration-files/48991)

<div class="topic-metadata">

**Author:** [@dachary](https://meta.discourse.org/u/dachary)\
**Replies:** 6\
**Last updated:** [August 22, 2016, 2:41pm UTC](https://meta.discourse.org/t/how-to-create-migration-files/48991 "2016-08-22T14:41:12Z")

</div>

I would like to create a new table (to store the graph for vote delegation). Should I create a migration file similar to db/migrate/20120311170118\_create\_users.rb manually ? Or is it enough to update the == Schema Inform…

---

## [Does "bundle upgrade" break vagrant/discourse?](https://meta.discourse.org/t/does-bundle-upgrade-break-vagrant-discourse/48977)

<div class="topic-metadata">

**Author:** [@JimmyX](https://meta.discourse.org/u/JimmyX)\
**Replies:** 2\
**Last updated:** [August 22, 2016, 7:26am UTC](https://meta.discourse.org/t/does-bundle-upgrade-break-vagrant-discourse/48977 "2016-08-22T07:26:27Z")

</div>

I ran “bundle upgrade” within the vagrant/discourse virtual machine. I did this because I had trouble installing the tagging plugin, which it turned out is now incorporated in discourse. Now I have an error running “bund…

---

## [Using the API to get category\_id by slug or name](https://meta.discourse.org/t/using-the-api-to-get-category-id-by-slug-or-name/48894)

<div class="topic-metadata">

**Author:** [@mb450](https://meta.discourse.org/u/mb450)\
**Replies:** 2\
**Last updated:** [August 21, 2016, 2:54am UTC](https://meta.discourse.org/t/using-the-api-to-get-category-id-by-slug-or-name/48894 "2016-08-21T02:54:33Z")

</div>

Hi all Is there a way to get a category’s id by either it’s name or slug? I’ve got an admin area that needs to post to discourse when a record is edited. I’ve found the /categories.json call but that will grow over ti…

---

## [Image URLs not rendered as images on import](https://meta.discourse.org/t/image-urls-not-rendered-as-images-on-import/48840)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 3\
**Last updated:** [August 19, 2016, 1:56am UTC](https://meta.discourse.org/t/image-urls-not-rendered-as-images-on-import/48840 "2016-08-19T01:56:11Z")

</div>

I’ve written an importer for a custom database of external images. It’s based on import\_scripts/vanilla\_mysql.rb (and base.rb) (pulled just today). It’s creating posts that look good right to me (a few problems with cate…

---

## [Getting error when trying to perform migrations on Mac OS X for development](https://meta.discourse.org/t/getting-error-when-trying-to-perform-migrations-on-mac-os-x-for-development/48825)

<div class="topic-metadata">

**Author:** [@kuyashi](https://meta.discourse.org/u/kuyashi)\
**Replies:** 7\
**Last updated:** [August 18, 2016, 7:41pm UTC](https://meta.discourse.org/t/getting-error-when-trying-to-perform-migrations-on-mac-os-x-for-development/48825 "2016-08-18T19:41:45Z")

</div>

When I get to the stage whereby I should create DB in postgres, I get an error saying the role " " does not exist. Anyone know what the issue is ?

---

## [Accessing the store, e.g. users](https://meta.discourse.org/t/accessing-the-store-e-g-users/48774)

<div class="topic-metadata">

**Author:** [@kgish](https://meta.discourse.org/u/kgish)\
**Replies:** 2\
**Last updated:** [August 18, 2016, 7:29pm UTC](https://meta.discourse.org/t/accessing-the-store-e-g-users/48774 "2016-08-18T19:29:19Z")

</div>

I was wondering what the standard way is in order for plugins to access the discourse user store, for example you want to display the avatar or other general information about a certain user. var storeMain = api.contain…

---

## [Firefox 50 makes image pasting hack superfluous](https://meta.discourse.org/t/firefox-50-makes-image-pasting-hack-superfluous/48017)

<div class="topic-metadata">

**Author:** [@claas](https://meta.discourse.org/u/claas)\
**Replies:** 3\
**Last updated:** [August 17, 2016, 7:47pm UTC](https://meta.discourse.org/t/firefox-50-makes-image-pasting-hack-superfluous/48017 "2016-08-17T19:47:13Z")

</div>

There is still some time until Firefox 50 becomes stable in November 2016, but as a noteworthy number of developers could use it already from September when it will promoted to Firefox Developer Edition (in fact, I’m usi…

---

## [How to get the current\_user details in Discourse.Dialect.postProcessText for both client and server side?](https://meta.discourse.org/t/how-to-get-the-current-user-details-in-discourse-dialect-postprocesstext-for-both-client-and-server-side/48391)

<div class="topic-metadata">

**Author:** [@krishnau2](https://meta.discourse.org/u/krishnau2)\
**Replies:** 7\
**Last updated:** [August 17, 2016, 6:17am UTC](https://meta.discourse.org/t/how-to-get-the-current-user-details-in-discourse-dialect-postprocesstext-for-both-client-and-server-side/48391 "2016-08-17T06:17:06Z")

</div>

Hi, In my discourse app, I want to mask sensitive content inside posts (email/phone numbers etc.) I wrote a plugin by following ALL CAPS plugin by @sam. This is what I came up with function mask\_sensitive\_content (te…

---

## [Any performance-related areas you'd like investigated?](https://meta.discourse.org/t/any-performance-related-areas-youd-like-investigated/48706)

<div class="topic-metadata">

**Author:** [@itsderek23](https://meta.discourse.org/u/itsderek23)\
**Replies:** 1\
**Last updated:** [August 16, 2016, 6:00pm UTC](https://meta.discourse.org/t/any-performance-related-areas-youd-like-investigated/48706 "2016-08-16T18:00:35Z")

</div>

I have some free time over the next couple of weeks - I’d love to dive into some specific Ruby/SQL slowness areas of Discourse. Looking at the contribution guidelines, I see a specific “Improve performance” section, but…

---

## [How can I add anti-clickjacking X-Frame-Options header to my installation of Discourse?](https://meta.discourse.org/t/how-can-i-add-anti-clickjacking-x-frame-options-header-to-my-installation-of-discourse/48596)

<div class="topic-metadata">

**Author:** [@opalizoid](https://meta.discourse.org/u/opalizoid)\
**Replies:** 3\
**Last updated:** [August 16, 2016, 10:43am UTC](https://meta.discourse.org/t/how-can-i-add-anti-clickjacking-x-frame-options-header-to-my-installation-of-discourse/48596 "2016-08-16T10:43:32Z")

</div>

I found security problem with my installation of Discourse. How can I add http header X-Frame-Option DENY to my app.yml file? The hosting is DigitalOcean. I’m scanned forums by Nikto2 and Vega - Penetration Testing To…

---

## [Now in master: ES6 Modules + Text Rendering](https://meta.discourse.org/t/now-in-master-es6-modules-text-rendering/46815)

<div class="topic-metadata">

**Author:** [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Replies:** 40\
**Last updated:** [August 13, 2016, 8:21pm UTC](https://meta.discourse.org/t/now-in-master-es6-modules-text-rendering/46815 "2016-08-13T20:21:24Z")

</div>

Approximately 2 years ago we started down the long path to ES6 modules. For a long time, I’d spent 30 minutes a day working on converting files, which eventually got replaced with my strategy of converting a file every t…

---

## [Inconsistent title attribute in topic list](https://meta.discourse.org/t/inconsistent-title-attribute-in-topic-list/48490)

<div class="topic-metadata">

**Author:** [@gkln](https://meta.discourse.org/u/gkln)\
**Replies:** 1\
**Last updated:** [August 13, 2016, 12:58pm UTC](https://meta.discourse.org/t/inconsistent-title-attribute-in-topic-list/48490 "2016-08-13T12:58:19Z")

</div>

Have a look at the following piece of code which is a snapshot of the end an existing topic row: \<td class="num posts-map posts heatmap-" title="This topic has 0 replies"\> \<a href="" class="posts-map badge-posts heatm…

---

## [Can we highlight a topic in the using an indicator like New Posts or by changing the color of the whole row?](https://meta.discourse.org/t/can-we-highlight-a-topic-in-the-using-an-indicator-like-new-posts-or-by-changing-the-color-of-the-whole-row/48431)

<div class="topic-metadata">

**Author:** [@Gussie](https://meta.discourse.org/u/Gussie)\
**Replies:** 2\
**Last updated:** [August 10, 2016, 11:22am UTC](https://meta.discourse.org/t/can-we-highlight-a-topic-in-the-using-an-indicator-like-new-posts-or-by-changing-the-color-of-the-whole-row/48431 "2016-08-10T11:22:55Z")

</div>

I searched this category and the plugin and feature categories, but did not see a topic that addressed my question. I ran searches for “indicator” and “new post”. Is there a plugin that allows a topic to be distinguishe…

---

## [Ritzy RTE Alternate Editor Compatibility?](https://meta.discourse.org/t/ritzy-rte-alternate-editor-compatibility/48352)

<div class="topic-metadata">

**Author:** [@Muiran](https://meta.discourse.org/u/Muiran)\
**Replies:** 4\
**Last updated:** [August 8, 2016, 12:30pm UTC](https://meta.discourse.org/t/ritzy-rte-alternate-editor-compatibility/48352 "2016-08-08T12:30:26Z")

</div>

WYSIWYG Rich Text Editor as a Discourse Plugin? Uses custom editor surface and layout engine. Modeled on Google Docs and includes collaborative editing support built-in from the ground up. Ritzy RTE ReadMe Plugin-s…

---

## [Mini\_racer installation issues on ubuntu vagrant (OSX)](https://meta.discourse.org/t/mini-racer-installation-issues-on-ubuntu-vagrant-osx/44681)

<div class="topic-metadata">

**Author:** [@angus](https://meta.discourse.org/u/angus)\
**Replies:** 33\
**Last updated:** [August 6, 2016, 7:27am UTC](https://meta.discourse.org/t/mini-racer-installation-issues-on-ubuntu-vagrant-osx/44681 "2016-08-06T07:27:44Z")

</div>

@sam I’m consistenly getting this error when running bundle install after therubyracer was replaced with mini\_racer. Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /usr/bin/ruby2.2 -r ./sitecon…

---

## [Nginx Performance Report plugin incompatible with development environment setup script](https://meta.discourse.org/t/nginx-performance-report-plugin-incompatible-with-development-environment-setup-script/48261)

<div class="topic-metadata">

**Author:** [@jamesmarkcook](https://meta.discourse.org/u/jamesmarkcook)\
**Replies:** 3\
**Last updated:** [August 6, 2016, 2:01am UTC](https://meta.discourse.org/t/nginx-performance-report-plugin-incompatible-with-development-environment-setup-script/48261 "2016-08-06T02:01:26Z")

</div>

I stumbled upon a ruby version issue when setting up a Discourse development environment. The install script that the beginners guide links to installs Ruby 2.2.3 here However this code uses syntax that’s only compatib…

---

## [Help wanted on plugin controller](https://meta.discourse.org/t/help-wanted-on-plugin-controller/40258)

<div class="topic-metadata">

**Author:** [@RGJ](https://meta.discourse.org/u/RGJ)\
**Replies:** 6\
**Last updated:** [August 5, 2016, 9:42am UTC](https://meta.discourse.org/t/help-wanted-on-plugin-controller/40258 "2016-08-05T09:42:05Z")

</div>

We’re building a Sitemap plugin and I’m running into an issue. (Yes there has been a lot of discussion around the need for a sitemap, but Google News totally requires it) Somehow the code in the controller is never exe…

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

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