# Development

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

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

**Page:** 139

---

## [How to seed local database with SSO user data](https://meta.discourse.org/t/how-to-seed-local-database-with-sso-user-data/53210)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 4\
**Last updated:** [November 21, 2016, 7:34pm UTC](https://meta.discourse.org/t/how-to-seed-local-database-with-sso-user-data/53210 "2016-11-21T19:34:04Z")

</div>

I’ve got a client that I’m doing an import for. They’re using SSO, which will supply avatars, but of course those get populated only when someone logs in. I noticed client.sync\_sso and it appears to do just what I need. …

---

## [Why vbulletin 4 importer exclude the firstpost?](https://meta.discourse.org/t/why-vbulletin-4-importer-exclude-the-firstpost/53196)

<div class="topic-metadata">

**Author:** [@enigmaty](https://meta.discourse.org/u/enigmaty)\
**Replies:** 7\
**Last updated:** [November 21, 2016, 4:26pm UTC](https://meta.discourse.org/t/why-vbulletin-4-importer-exclude-the-firstpost/53196 "2016-11-21T16:26:05Z")

</div>

Why the importer in vbulletin exclude the firstpost from the total\_count?

---

## [Implement post filter using post custom fields in plugin](https://meta.discourse.org/t/implement-post-filter-using-post-custom-fields-in-plugin/53201)

<div class="topic-metadata">

**Author:** [@ShankarG](https://meta.discourse.org/u/ShankarG)\
**Replies:** 0\
**Last updated:** [November 21, 2016, 4:21pm UTC](https://meta.discourse.org/t/implement-post-filter-using-post-custom-fields-in-plugin/53201 "2016-11-21T16:21:52Z")

</div>

I have developed a plugin for categorizing post(have added that values in post custom fields). Now i would like to implement filter post by that categorize that are stored in custom post fields. If you can suggest me som…

---

## [How to reopen ApplicationRoute](https://meta.discourse.org/t/how-to-reopen-applicationroute/53144)

<div class="topic-metadata">

**Author:** [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Replies:** 2\
**Last updated:** [November 20, 2016, 6:45pm UTC](https://meta.discourse.org/t/how-to-reopen-applicationroute/53144 "2016-11-20T18:45:07Z")

</div>

I also wanted the same functionality for my plugin to reopen ApplicationRoute. But it always fail with error Uncaught TypeError: Cannot read property 'reopen' of undefined(…)(anonymous function) @ javascripts/custom\_au…

---

## [How to get subcategories from category object](https://meta.discourse.org/t/how-to-get-subcategories-from-category-object/53147)

<div class="topic-metadata">

**Author:** [@kgish](https://meta.discourse.org/u/kgish)\
**Replies:** 1\
**Last updated:** [November 20, 2016, 6:22pm UTC](https://meta.discourse.org/t/how-to-get-subcategories-from-category-object/53147 "2016-11-20T18:22:44Z")

</div>

In my plugin route, I access the list of categories as follows: model: function(params) { var store\_url = Ember.get('Discourse.SiteSettings.annotator\_store\_url'); return ajax(\`/categories.json\`).then((data) =\> {…

---

## [Decorating all external links](https://meta.discourse.org/t/decorating-all-external-links/53111)

<div class="topic-metadata">

**Author:** [@Overgrow](https://meta.discourse.org/u/Overgrow)\
**Replies:** 4\
**Last updated:** [November 19, 2016, 1:35pm UTC](https://meta.discourse.org/t/decorating-all-external-links/53111 "2016-11-19T13:35:52Z")

</div>

Hello, I’d like to mark external links (links except from own domain) with an arrow through css.. Do I need to modify all es6 functions that parse links or is there simple way? if (DiscourseURL.isInternal(href)) Also …

---

## [Disabling /about stats](https://meta.discourse.org/t/disabling-about-stats/53080)

<div class="topic-metadata">

**Author:** [@1kevgriff](https://meta.discourse.org/u/1kevgriff)\
**Replies:** 2\
**Last updated:** [November 18, 2016, 9:40pm UTC](https://meta.discourse.org/t/disabling-about-stats/53080 "2016-11-18T21:40:01Z")

</div>

Hello everyone, I haven’t found a good answer anywhere else, so sorry if this is a repeat. I’m setting Discourse up for a client, and they have a use-case where they would not like users to be able to easily discover t…

---

## [I want to build a debug version of discourse](https://meta.discourse.org/t/i-want-to-build-a-debug-version-of-discourse/53069)

<div class="topic-metadata">

**Author:** [@huangyime](https://meta.discourse.org/u/huangyime)\
**Replies:** 1\
**Last updated:** [November 18, 2016, 11:36am UTC](https://meta.discourse.org/t/i-want-to-build-a-debug-version-of-discourse/53069 "2016-11-18T11:36:12Z")

</div>

I want to build a debug version of discourse, which doesn’t uglify the javascript and others. So how can I do it?

---

## [Plugin translations](https://meta.discourse.org/t/plugin-translations/53048)

<div class="topic-metadata">

**Author:** [@kgish](https://meta.discourse.org/u/kgish)\
**Replies:** 2\
**Last updated:** [November 18, 2016, 10:01am UTC](https://meta.discourse.org/t/plugin-translations/53048 "2016-11-18T10:01:44Z")

</div>

I’ve been able to add a new menu item to the admin dashboard, but for some reason it’s not catching my translation. Instead of the menu item with the right text, I see: \[nl.myplugin.admin.menu\_title\] My translation fi…

---

## [Beta testing the iOS mobile app](https://meta.discourse.org/t/beta-testing-the-ios-mobile-app/49662)

<div class="topic-metadata">

**Author:** [@sam](https://meta.discourse.org/u/sam)\
**Replies:** 170\
**Last updated:** [November 18, 2016, 2:25am UTC](https://meta.discourse.org/t/beta-testing-the-ios-mobile-app/49662 "2016-11-18T02:25:43Z")

</div>

I have been hacking away at a simple notifier app for iOS. What about Android? Once I get this out I would like to also port the native parts to Android, it should not take too long there are only a few minor tweaks nee…

---

## [Adding an arbitrary custom\_field with a specified type to a plugin](https://meta.discourse.org/t/adding-an-arbitrary-custom-field-with-a-specified-type-to-a-plugin/52977)

<div class="topic-metadata">

**Author:** [@jgujgu](https://meta.discourse.org/u/jgujgu)\
**Replies:** 4\
**Last updated:** [November 17, 2016, 1:10pm UTC](https://meta.discourse.org/t/adding-an-arbitrary-custom-field-with-a-specified-type-to-a-plugin/52977 "2016-11-17T13:10:55Z")

</div>

Hi @joebuhlig. I hope to make a plugin that extends what types of attributes models, like Topic, have, and I noticed you have a reasonable custom\_field called vote\_count added to the Topic model… I’m familiar with Rails…

---

## [Getting error when installing Nokogiri on Mac OS X for development](https://meta.discourse.org/t/getting-error-when-installing-nokogiri-on-mac-os-x-for-development/48880)

<div class="topic-metadata">

**Author:** [@henrikbg](https://meta.discourse.org/u/henrikbg)\
**Replies:** 9\
**Last updated:** [November 17, 2016, 5:31am UTC](https://meta.discourse.org/t/getting-error-when-installing-nokogiri-on-mac-os-x-for-development/48880 "2016-11-17T05:31:10Z")

</div>

Had an issue installing Nokogiri 1.6.8. Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /Users/henrikberg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/nokogiri-1.6.8/ext/noko…

---

## [Unable to build android app from git repository](https://meta.discourse.org/t/unable-to-build-android-app-from-git-repository/52994)

<div class="topic-metadata">

**Author:** [@adam\_beers](https://meta.discourse.org/u/adam_beers)\
**Replies:** 4\
**Last updated:** [November 17, 2016, 4:52am UTC](https://meta.discourse.org/t/unable-to-build-android-app-from-git-repository/52994 "2016-11-17T04:52:08Z")

</div>

I pulled down the DiscourseMobile from github. According to the github page, you run npm init and then react-native run-android. That didn’t work, but it did indicate that npm install is needed first. I did that and i…

---

## [Extra tab on admin dashboard](https://meta.discourse.org/t/extra-tab-on-admin-dashboard/52914)

<div class="topic-metadata">

**Author:** [@kgish](https://meta.discourse.org/u/kgish)\
**Replies:** 0\
**Last updated:** [November 15, 2016, 10:19am UTC](https://meta.discourse.org/t/extra-tab-on-admin-dashboard/52914 "2016-11-15T10:19:53Z")

</div>

I’d like to add an extra tab to the admin dashboard which would allow one to carry out specific actions. For example, generate a report and email it as an attachment. Are there any guidelines available for plugins?

---

## [API Error Message Format](https://meta.discourse.org/t/api-error-message-format/52810)

<div class="topic-metadata">

**Author:** [@Kevin\_Wildenradt](https://meta.discourse.org/u/Kevin_Wildenradt)\
**Replies:** 5\
**Last updated:** [November 14, 2016, 9:35pm UTC](https://meta.discourse.org/t/api-error-message-format/52810 "2016-11-14T21:35:47Z")

</div>

When getting errors back from discourse when using the API, most of them are HTML pages. To handle these errors properly, I need to parse the HTML to determine what went wrong. This is slow. Is there a way to request tha…

---

## [Why post\_number?](https://meta.discourse.org/t/why-post-number/52634)

<div class="topic-metadata">

**Author:** [@Kevin\_Wildenradt](https://meta.discourse.org/u/Kevin_Wildenradt)\
**Replies:** 7\
**Last updated:** [November 11, 2016, 10:59pm UTC](https://meta.discourse.org/t/why-post-number/52634 "2016-11-11T22:59:58Z")

</div>

I’ve noticed that all posts bear both a post\_id and a post\_number. I understand that post\_id is the unique identifier of the post in the entire forum, while post\_number is the number of the post in its topic. Posts ident…

---

## [How to customise the header with a plugin?](https://meta.discourse.org/t/how-to-customise-the-header-with-a-plugin/52721)

<div class="topic-metadata">

**Author:** [@mrded](https://meta.discourse.org/u/mrded)\
**Replies:** 4\
**Last updated:** [November 10, 2016, 11:32am UTC](https://meta.discourse.org/t/how-to-customise-the-header-with-a-plugin/52721 "2016-11-10T11:32:57Z")

</div>

I’m trying to make a plugin which will change header into something like this It doesn’t really matter how does it look, that matters is I don’t want to use customisation on /admin/customize/css\_html path. I want to …

---

## [Upgrade to Ember 2.x?](https://meta.discourse.org/t/upgrade-to-ember-2-x/51268)

<div class="topic-metadata">

**Author:** [@gdpelican](https://meta.discourse.org/u/gdpelican)\
**Replies:** 7\
**Last updated:** [November 8, 2016, 4:30pm UTC](https://meta.discourse.org/t/upgrade-to-ember-2-x/51268 "2016-11-08T16:30:57Z")

</div>

Apologies if this has been discussed somewhere before. Discourse appears to be running Ember 1.12, somewhat of a :philosoraptor: given that the latest release is 2.9 beta. I totally get why; Ember 2.0 removed the conce…

---

## [Suggestions for better plugin maintenance](https://meta.discourse.org/t/suggestions-for-better-plugin-maintenance/52337)

<div class="topic-metadata">

**Author:** [@ewanly](https://meta.discourse.org/u/ewanly)\
**Replies:** 15\
**Last updated:** [November 7, 2016, 7:53am UTC](https://meta.discourse.org/t/suggestions-for-better-plugin-maintenance/52337 "2016-11-07T07:53:55Z")

</div>

I have two suggestions which I feel they are important and essential for better future; When we are facing a problem with any plugin, the first question is “What other plugins you are using”. That’s logical request to…

---

## [Change topic timestamp results in 403 (Forbidden)](https://meta.discourse.org/t/change-topic-timestamp-results-in-403-forbidden/52312)

<div class="topic-metadata">

**Author:** [@kgish](https://meta.discourse.org/u/kgish)\
**Replies:** 10\
**Last updated:** [November 6, 2016, 8:24pm UTC](https://meta.discourse.org/t/change-topic-timestamp-results-in-403-forbidden/52312 "2016-11-06T20:24:10Z")

</div>

I would like to allow regular users to trigger certain events (create annotation, likes, votes) on a given topic whereby the topic timestamp is updated. I noticed that the POST /t/:topic\_id/change-timestamp request retu…

---

## [Is there an API for changing a password?](https://meta.discourse.org/t/is-there-an-api-for-changing-a-password/52537)

<div class="topic-metadata">

**Author:** [@adam\_beers](https://meta.discourse.org/u/adam_beers)\
**Replies:** 6\
**Last updated:** [November 6, 2016, 10:50am UTC](https://meta.discourse.org/t/is-there-an-api-for-changing-a-password/52537 "2016-11-06T10:50:56Z")

</div>

I’m wondering if there is an API for updating or changing a password. I can’t find it in the API documentation, but it seems like something that would exist. I’m looking more specifically for a CURL type or HTTPS type …

---

## [How can I change the default landing page in discourse?](https://meta.discourse.org/t/how-can-i-change-the-default-landing-page-in-discourse/52517)

<div class="topic-metadata">

**Author:** [@Aman\_Jagga](https://meta.discourse.org/u/Aman_Jagga)\
**Replies:** 0\
**Last updated:** [November 4, 2016, 6:52pm UTC](https://meta.discourse.org/t/how-can-i-change-the-default-landing-page-in-discourse/52517 "2016-11-04T18:52:55Z")

</div>

Suppose, instead of redirectling users to www.mydomain.com to www.mydomain.com/faq or www.mydomain.com/about. Is there any way or setting to do this? I am hosting my forum on AWS

---

## [Lockfile gem is out of date in updater](https://meta.discourse.org/t/lockfile-gem-is-out-of-date-in-updater/52393)

<div class="topic-metadata">

**Author:** [@TyIsI](https://meta.discourse.org/u/TyIsI)\
**Replies:** 1\
**Last updated:** [November 3, 2016, 12:10pm UTC](https://meta.discourse.org/t/lockfile-gem-is-out-of-date-in-updater/52393 "2016-11-03T12:10:12Z")

</div>

While running the updater, I encountered the following error: Warning: the running version of Bundler (1.13.1) is older than the version that created the lockfile (1.13.6). We suggest you upgrade to the latest version …

---

## [HTTP delete CORS issue using tokens](https://meta.discourse.org/t/http-delete-cors-issue-using-tokens/52322)

<div class="topic-metadata">

**Author:** [@david\_dav](https://meta.discourse.org/u/david_dav)\
**Replies:** 3\
**Last updated:** [November 2, 2016, 1:12pm UTC](https://meta.discourse.org/t/http-delete-cors-issue-using-tokens/52322 "2016-11-02T13:12:55Z")

</div>

Receiving Method DELETE is not allowed by Access-Control-Allow-Methods in preflight response. when trying to unlike a post. My PUT, POST, and GET calls are working via the discourse API using tokens. Anybody run into t…

---

## [Connecting to database with a plugin](https://meta.discourse.org/t/connecting-to-database-with-a-plugin/52300)

<div class="topic-metadata">

**Author:** [@Alavi1412](https://meta.discourse.org/u/Alavi1412)\
**Replies:** 3\
**Last updated:** [November 2, 2016, 11:54am UTC](https://meta.discourse.org/t/connecting-to-database-with-a-plugin/52300 "2016-11-02T11:54:11Z")

</div>

Hi. I want to write a plugin with mix of javascript and ruby and I want to connect my plugin to database to find an unique number(of if doesn’t exist create a unique number) for each user and I want to use that number in…

---

## [How to use didRender event on a component?](https://meta.discourse.org/t/how-to-use-didrender-event-on-a-component/52315)

<div class="topic-metadata">

**Author:** [@Aman\_Jagga](https://meta.discourse.org/u/Aman_Jagga)\
**Replies:** 0\
**Last updated:** [November 1, 2016, 5:38pm UTC](https://meta.discourse.org/t/how-to-use-didrender-event-on-a-component/52315 "2016-11-01T17:38:51Z")

</div>

I want to start some css transition when my page is fully loaded(including all background images), so I am trying didRender event of a component but its never called.This is how my codes look like export default Ember.…

---

## [Unwanted \`div\` tag should be removed inside \`ol\`](https://meta.discourse.org/t/unwanted-div-tag-should-be-removed-inside-ol/52298)

<div class="topic-metadata">

**Author:** [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Replies:** 1\
**Last updated:** [November 1, 2016, 1:02pm UTC](https://meta.discourse.org/t/unwanted-div-tag-should-be-removed-inside-ol/52298 "2016-11-01T13:02:53Z")

</div>

https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/templates/components/bread-crumbs.hbs#L13 We didn’t needed the line I mentioned above. It is just creating output like \<ol class="cate…

---

## [Funny custom spinner](https://meta.discourse.org/t/funny-custom-spinner/52119)

<div class="topic-metadata">

**Author:** [@ljpp](https://meta.discourse.org/u/ljpp)\
**Replies:** 3\
**Last updated:** [November 1, 2016, 12:21pm UTC](https://meta.discourse.org/t/funny-custom-spinner/52119 "2016-11-01T12:21:03Z")

</div>

It’s almost Halloween, so one of our moderators made this little easter egg (or halloween pumpkin) for our community. Just find a fitting image file and copy this to your Customization/CSS area. Ours is live for a few d…

---

## [How are people generating/creating engines within plugins?](https://meta.discourse.org/t/how-are-people-generating-creating-engines-within-plugins/52253)

<div class="topic-metadata">

**Author:** [@JimmyX](https://meta.discourse.org/u/JimmyX)\
**Replies:** 2\
**Last updated:** [November 1, 2016, 4:45am UTC](https://meta.discourse.org/t/how-are-people-generating-creating-engines-within-plugins/52253 "2016-11-01T04:45:01Z")

</div>

Where plugins use engines are these created in the regular rails way using something like rails plugin new myplugin --mountable in the discourse root directory? I have git cloned “discourse-links-category” to see what…

---

## [Adding Topic custom fields in the topic creation form](https://meta.discourse.org/t/adding-topic-custom-fields-in-the-topic-creation-form/52283)

<div class="topic-metadata">

**Author:** [@leo.proctor](https://meta.discourse.org/u/leo.proctor)\
**Replies:** 1\
**Last updated:** [November 1, 2016, 3:26am UTC](https://meta.discourse.org/t/adding-topic-custom-fields-in-the-topic-creation-form/52283 "2016-11-01T03:26:19Z")

</div>

Hi, I’m working on a plugin that deals with custom fields on Topic. I’ve added custom fields as recommended, by using TopicCustomField. I’ve also added custom text fields in form/composer via connector partials. Now I w…

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

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