# Development

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

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

**Page:** 140

---

## [Remapping old imported forum permalinks to posts and topics?](https://meta.discourse.org/t/remapping-old-imported-forum-permalinks-to-posts-and-topics/52107)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 7\
**Last updated:** [October 31, 2016, 5:40pm UTC](https://meta.discourse.org/t/remapping-old-imported-forum-permalinks-to-posts-and-topics/52107 "2016-10-31T17:40:55Z")

</div>

Continuing the discussion from Not able to create a permalink with forums/\* address: IPB has topic links like: https://host/{slug}-{topic-id}t/ That’s done. There are also post links like https://host/{slug}-{TOPI…

---

## [Where or how does the function defined?](https://meta.discourse.org/t/where-or-how-does-the-function-defined/52256)

<div class="topic-metadata">

**Author:** [@helperhaps](https://meta.discourse.org/u/helperhaps)\
**Replies:** 1\
**Last updated:** [October 31, 2016, 1:32pm UTC](https://meta.discourse.org/t/where-or-how-does-the-function-defined/52256 "2016-10-31T13:32:29Z")

</div>

How does this line work? I can not find where the method defined or how the function defined. https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/models/nav-item.js.es6#L110 I mean if i …

---

## [Plugin template helper](https://meta.discourse.org/t/plugin-template-helper/51160)

<div class="topic-metadata">

**Author:** [@sevenmaxis](https://meta.discourse.org/u/sevenmaxis)\
**Replies:** 2\
**Last updated:** [October 25, 2016, 8:06am UTC](https://meta.discourse.org/t/plugin-template-helper/51160 "2016-10-25T08:06:50Z")

</div>

In my discourse plugin’s folder discourse-adplugin/assets/discourse/helpers/ I’ve created a file with helper discourse-adplugin/assets/discourse/helpers/eq.js.es6: import { registerHelper } from 'discourse/lib/helpers'…

---

## [Purging user data from dev install](https://meta.discourse.org/t/purging-user-data-from-dev-install/51827)

<div class="topic-metadata">

**Author:** [@mmuyskens](https://meta.discourse.org/u/mmuyskens)\
**Replies:** 5\
**Last updated:** [October 24, 2016, 11:53pm UTC](https://meta.discourse.org/t/purging-user-data-from-dev-install/51827 "2016-10-24T23:53:31Z")

</div>

What’s a good method to purge a dev install before going live - essentially, getting it ready for the final import. (aka killing all users, posts, pm’s, etc.)

---

## [How to enforce one image per post rule?](https://meta.discourse.org/t/how-to-enforce-one-image-per-post-rule/51922)

<div class="topic-metadata">

**Author:** [@Overgrow](https://meta.discourse.org/u/Overgrow)\
**Replies:** 2\
**Last updated:** [October 24, 2016, 9:53pm UTC](https://meta.discourse.org/t/how-to-enforce-one-image-per-post-rule/51922 "2016-10-24T21:53:46Z")

</div>

I’ve got troubles with number of pretty large images uploaded to single post, what leads to slow loading of post chunks… I’d like to solve it with one image (upload) per post… Can you more experienced devs please advise…

---

## [Ember template convention](https://meta.discourse.org/t/ember-template-convention/51954)

<div class="topic-metadata">

**Author:** [@sevenmaxis](https://meta.discourse.org/u/sevenmaxis)\
**Replies:** 3\
**Last updated:** [October 24, 2016, 2:16pm UTC](https://meta.discourse.org/t/ember-template-convention/51954 "2016-10-24T14:16:40Z")

</div>

I’m trying to understand EmberJS template convention in Discourse. Here’s a snippet from app/assets/javascripts/discourse/templates/discovery/categories.hbs {{#discovery-categories refresh="refresh"}} {{component con…

---

## [Is there a way I can remove sub categories from the category list?](https://meta.discourse.org/t/is-there-a-way-i-can-remove-sub-categories-from-the-category-list/51927)

<div class="topic-metadata">

**Author:** [@mb450](https://meta.discourse.org/u/mb450)\
**Replies:** 0\
**Last updated:** [October 23, 2016, 3:24pm UTC](https://meta.discourse.org/t/is-there-a-way-i-can-remove-sub-categories-from-the-category-list/51927 "2016-10-23T15:24:03Z")

</div>

Right now we have this view: Is there a way I can exclude the topics in archive from the parent (Reload offers) view.

---

## [Is it possible to write a custom client other than a web browser?](https://meta.discourse.org/t/is-it-possible-to-write-a-custom-client-other-than-a-web-browser/51671)

<div class="topic-metadata">

**Author:** [@Samuel\_Crow](https://meta.discourse.org/u/Samuel_Crow)\
**Replies:** 12\
**Last updated:** [October 23, 2016, 8:30am UTC](https://meta.discourse.org/t/is-it-possible-to-write-a-custom-client-other-than-a-web-browser/51671 "2016-10-23T08:30:41Z")

</div>

I would like to make a micro-sized lightweight forum-browser style client for directly interfacing with the ReST of a server-side forum. Among the requirements are that the format not be ordinary HTML but XHTML, custom …

---

## [Comments Module in a static page with Text Box](https://meta.discourse.org/t/comments-module-in-a-static-page-with-text-box/51788)

<div class="topic-metadata">

**Author:** [@wtolotti](https://meta.discourse.org/u/wtolotti)\
**Replies:** 4\
**Last updated:** [October 20, 2016, 5:12pm UTC](https://meta.discourse.org/t/comments-module-in-a-static-page-with-text-box/51788 "2016-10-20T17:12:43Z")

</div>

Hi guys! I was thinking, how can I insert a module in my Angular app, without an iframe page, with all the features that comments can have. I was looking, nowadays there is an embbed tool, but without a comment box and…

---

## [Configuring SSO to Work With SocialEngine](https://meta.discourse.org/t/configuring-sso-to-work-with-socialengine/51705)

<div class="topic-metadata">

**Author:** [@SouperC](https://meta.discourse.org/u/SouperC)\
**Replies:** 7\
**Last updated:** [October 20, 2016, 10:46am UTC](https://meta.discourse.org/t/configuring-sso-to-work-with-socialengine/51705 "2016-10-20T10:46:26Z")

</div>

I just installed discourse and we are starting to build guidelines for our community, start a couple of categories etc etc. We have an existing installation of SocialEngine (PHP/Zend) and I would like to give our existi…

---

## [Setup discourse on Mac OS](https://meta.discourse.org/t/setup-discourse-on-mac-os/49029)

<div class="topic-metadata">

**Author:** [@sevenmaxis](https://meta.discourse.org/u/sevenmaxis)\
**Replies:** 10\
**Last updated:** [October 19, 2016, 3:38pm UTC](https://meta.discourse.org/t/setup-discourse-on-mac-os/49029 "2016-10-19T15:38:49Z")

</div>

I’m following standard guide to install discourse on my local mac. After launching the setup tool ./discourse-setup I’ve got error message: cd /pups && git pull && /pups/bin/pups --stdin /usr/local/bin/docker: Error re…

---

## [If you were forced (or paid) to build a js frontend for Magento 2... would you still use Ember?](https://meta.discourse.org/t/if-you-were-forced-or-paid-to-build-a-js-frontend-for-magento-2-would-you-still-use-ember/51695)

<div class="topic-metadata">

**Author:** [@moens](https://meta.discourse.org/u/moens)\
**Replies:** 1\
**Last updated:** [October 19, 2016, 4:40am UTC](https://meta.discourse.org/t/if-you-were-forced-or-paid-to-build-a-js-frontend-for-magento-2-would-you-still-use-ember/51695 "2016-10-19T04:40:35Z")

</div>

I have read this fine post by eviltrout, which is interesting, but maybe not comprehensive. I also read “I love the community” bit by Grant Norwood So, if you had to do it again… or, if you had to do it with PHP, would…

---

## [Username\_no\_double\_special Any reason to enforce it?](https://meta.discourse.org/t/username-no-double-special-any-reason-to-enforce-it/51644)

<div class="topic-metadata">

**Author:** [@CrosseyeJack](https://meta.discourse.org/u/CrosseyeJack)\
**Replies:** 4\
**Last updated:** [October 18, 2016, 11:11pm UTC](https://meta.discourse.org/t/username-no-double-special-any-reason-to-enforce-it/51644 "2016-10-18T23:11:43Z")

</div>

Hey, we are planning to use Discourse linked with sign in from an outside oauth. The thing is some of our existing users have 2 or more “special” chars in their username and username\_no\_double\_special is trying to remove…

---

## [Add elements or nodes](https://meta.discourse.org/t/add-elements-or-nodes/51585)

<div class="topic-metadata">

**Author:** [@Alavi1412](https://meta.discourse.org/u/Alavi1412)\
**Replies:** 4\
**Last updated:** [October 18, 2016, 5:48am UTC](https://meta.discourse.org/t/add-elements-or-nodes/51585 "2016-10-18T05:48:56Z")

</div>

I want to add some elements to my website with javascript and I want to form elements as tiles.how should I do add tiles (nodes) to my page? totally, Can we add nodes(elements) to discourse via plugin?

---

## [Citestore Plugin](https://meta.discourse.org/t/citestore-plugin/51620)

<div class="topic-metadata">

**Author:** [@Silvanus](https://meta.discourse.org/u/Silvanus)\
**Replies:** 4\
**Last updated:** [October 17, 2016, 10:18pm UTC](https://meta.discourse.org/t/citestore-plugin/51620 "2016-10-17T22:18:34Z")

</div>

I’m currently trying to make a plugin (discourse-citestore) that has the feature of storing data with a handle and a subhandle (locus), so that this data can be automatically accessed by users and pasted in their message…

---

## [JSON API, get topics sorted by created\_at](https://meta.discourse.org/t/json-api-get-topics-sorted-by-created-at/51638)

<div class="topic-metadata">

**Author:** [@m45t3r](https://meta.discourse.org/u/m45t3r)\
**Replies:** 5\
**Last updated:** [October 17, 2016, 1:25pm UTC](https://meta.discourse.org/t/json-api-get-topics-sorted-by-created-at/51638 "2016-10-17T13:25:18Z")

</div>

Hi I am developing a blog-like interface for a private Discourse deployment based on the JSON API from Discourse. The idea is simple: the owner of the Discourse is the only one that can post questions in a certain categ…

---

## [Permalink overhead](https://meta.discourse.org/t/permalink-overhead/51558)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 10\
**Last updated:** [October 17, 2016, 1:13am UTC](https://meta.discourse.org/t/permalink-overhead/51558 "2016-10-17T01:13:56Z")

</div>

I’m updating bbpress.rb to have it deal with attachments (now it inserts a link to the attachment on the original site) and create permalinks for the old URLs. The old format is \`/forums/topic/slug’. For anyone who know…

---

## [D is not a function](https://meta.discourse.org/t/d-is-not-a-function/51543)

<div class="topic-metadata">

**Author:** [@sevenmaxis](https://meta.discourse.org/u/sevenmaxis)\
**Replies:** 3\
**Last updated:** [October 14, 2016, 7:07pm UTC](https://meta.discourse.org/t/d-is-not-a-function/51543 "2016-10-14T19:07:01Z")

</div>

I’ve created plugin, under development it works without problem, but in production it produces error: Uncaught TypeError: d is not a function How to resolve this problem? How to explore this kind of error?

---

## [Auto generate password for account created through API?](https://meta.discourse.org/t/auto-generate-password-for-account-created-through-api/51540)

<div class="topic-metadata">

**Author:** [@foloex](https://meta.discourse.org/u/foloex)\
**Replies:** 9\
**Last updated:** [October 14, 2016, 3:15pm UTC](https://meta.discourse.org/t/auto-generate-password-for-account-created-through-api/51540 "2016-10-14T15:15:04Z")

</div>

I’m developing a little script that creates user account through discourse API. The create API doesn’t allow user creation without passing a password. It would be nice if the API creates the user even if no password is …

---

## [Distinguish private messages from posts?](https://meta.discourse.org/t/distinguish-private-messages-from-posts/51468)

<div class="topic-metadata">

**Author:** [@tim.smith](https://meta.discourse.org/u/tim.smith)\
**Replies:** 17\
**Last updated:** [October 13, 2016, 5:06pm UTC](https://meta.discourse.org/t/distinguish-private-messages-from-posts/51468 "2016-10-13T17:06:36Z")

</div>

In a server-side ruby plugin, I’m using DiscourseEvent.on("post\_created") to get data on post replies. However, this is also being triggered when a person replies to a private message. Unfortunately, I can’t see any attr…

---

## [Master branch giving blank page for dev](https://meta.discourse.org/t/master-branch-giving-blank-page-for-dev/51459)

<div class="topic-metadata">

**Author:** [@AhmadF.Cheema](https://meta.discourse.org/u/AhmadF.Cheema)\
**Replies:** 4\
**Last updated:** [October 13, 2016, 8:43am UTC](https://meta.discourse.org/t/master-branch-giving-blank-page-for-dev/51459 "2016-10-13T08:43:33Z")

</div>

Have been using developer vagrant installation of Discourse (as detailed in Discourse as Your First Rails App), but recently I have been getting a completely blank page on browsing to localhost:4000 for the master branch …

---

## [Discourse Foundation Resources for Beginning Plugin Developers](https://meta.discourse.org/t/discourse-foundation-resources-for-beginning-plugin-developers/51420)

<div class="topic-metadata">

**Author:** [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Replies:** 0\
**Last updated:** [October 11, 2016, 6:05pm UTC](https://meta.discourse.org/t/discourse-foundation-resources-for-beginning-plugin-developers/51420 "2016-10-11T18:05:06Z")

</div>

I recently received a Message from a member interested in writing a plugin for Discourse. A problem for this member is, that although enthusiastic about Discourse, they are not well versed in Ruby. I have seen many pos…

---

## [Missing assets in production](https://meta.discourse.org/t/missing-assets-in-production/51198)

<div class="topic-metadata">

**Author:** [@sevenmaxis](https://meta.discourse.org/u/sevenmaxis)\
**Replies:** 3\
**Last updated:** [October 8, 2016, 1:43pm UTC](https://meta.discourse.org/t/missing-assets-in-production/51198 "2016-10-08T13:43:34Z")

</div>

I’m developing under vagrant. To resolve problem with plugin I need to run project in production environment. I’ve setup production database, precompiled assets and etc. But assets are not available. GET http://localho…

---

## [Performance to the various sidekiq queues, which to use for plugin](https://meta.discourse.org/t/performance-to-the-various-sidekiq-queues-which-to-use-for-plugin/51189)

<div class="topic-metadata">

**Author:** [@eriko](https://meta.discourse.org/u/eriko)\
**Replies:** 2\
**Last updated:** [October 7, 2016, 2:07am UTC](https://meta.discourse.org/t/performance-to-the-various-sidekiq-queues-which-to-use-for-plugin/51189 "2016-10-07T02:07:45Z")

</div>

So I have an internal\* plugin that user to manage user accounts. Right now the jobs that this runs are run in the default queue. They are not small jobs and can take 5 or 6 minutes to run and run hourly. Because it ru…

---

## [Timeline z-index](https://meta.discourse.org/t/timeline-z-index/50797)

<div class="topic-metadata">

**Author:** [@kgish](https://meta.discourse.org/u/kgish)\
**Replies:** 8\
**Last updated:** [October 6, 2016, 9:20pm UTC](https://meta.discourse.org/t/timeline-z-index/50797 "2016-10-06T21:20:30Z")

</div>

I’ve developed an annotator plugin which floats above selected text. One problem I noticed is that the timeline and the top banner will remain above the the plugin popup thus obscuring it. Tried increasing the z-index …

---

## [Home logo url points to the root of the domain even in a subfolder install?](https://meta.discourse.org/t/home-logo-url-points-to-the-root-of-the-domain-even-in-a-subfolder-install/44864)

<div class="topic-metadata">

**Author:** [@iva](https://meta.discourse.org/u/iva)\
**Replies:** 5\
**Last updated:** [October 4, 2016, 3:44pm UTC](https://meta.discourse.org/t/home-logo-url-points-to-the-root-of-the-domain-even-in-a-subfolder-install/44864 "2016-10-04T15:44:11Z")

</div>

I just noticed that the logo (home) url points to the ‘/’ of the domain in my subfolder installation and yet, when I click on it, in most cases it correctly brings me to the root of the community, which is ‘/forum’ in my…

---

## [How to use the database without destroying Discourse?](https://meta.discourse.org/t/how-to-use-the-database-without-destroying-discourse/50695)

<div class="topic-metadata">

**Author:** [@Silvanus](https://meta.discourse.org/u/Silvanus)\
**Replies:** 4\
**Last updated:** [September 28, 2016, 6:42pm UTC](https://meta.discourse.org/t/how-to-use-the-database-without-destroying-discourse/50695 "2016-09-28T18:42:28Z")

</div>

I’m thinking of starting to make a plugin (working title: bookquote) that would replace citations from database and replace the citation in the message, for example \[us-constitution 1.1\] would give out All legislative Po…

---

## [Building new database gives blank page](https://meta.discourse.org/t/building-new-database-gives-blank-page/50827)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 1\
**Last updated:** [September 28, 2016, 10:52pm UTC](https://meta.discourse.org/t/building-new-database-gives-blank-page/50827 "2016-09-28T22:52:11Z")

</div>

Maybe this should be Development, but I just did git pull upstream master git reset --hard upstream/master RAILS\_ENV=development bundle exec rake db:drop db:create db:migrate bundle exec rails s and when I load my new …

---

## [Discourse Login & Registeration](https://meta.discourse.org/t/discourse-login-registeration/50766)

<div class="topic-metadata">

**Author:** [@ErHarinderSingh](https://meta.discourse.org/u/ErHarinderSingh)\
**Replies:** 4\
**Last updated:** [September 28, 2016, 5:48am UTC](https://meta.discourse.org/t/discourse-login-registeration/50766 "2016-09-28T05:48:15Z")

</div>

Hello everyone, I am building an mobile app for discourse. How I can manage users within the app? I want to register the user and login. Only register user can login and post new topics like in this forum. I have done …

---

## [How to create helper?](https://meta.discourse.org/t/how-to-create-helper/50553)

<div class="topic-metadata">

**Author:** [@sevenmaxis](https://meta.discourse.org/u/sevenmaxis)\
**Replies:** 0\
**Last updated:** [September 23, 2016, 5:18pm UTC](https://meta.discourse.org/t/how-to-create-helper/50553 "2016-09-23T17:18:53Z")

</div>

I want to create eq helper. It already exists in ember-truth-helpers addon, but I need only eq so I decided create it by myself in my plugin. I’ve created file assets/javascripts/discourse/helpers/eq.js.es6 with such co…

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

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