# Development

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

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

**Page:** 124

---

## [Registering ember classes in a theme](https://meta.discourse.org/t/registering-ember-classes-in-a-theme/81419)

<div class="topic-metadata">

**Author:** [@david](https://meta.discourse.org/u/david)\
**Replies:** 2\
**Last updated:** [February 26, 2018, 5:04pm UTC](https://meta.discourse.org/t/registering-ember-classes-in-a-theme/81419 "2018-02-26T17:04:19Z")

</div>

I’ve just ported an old plugin to a theme-component. It had both an Ember service, and a component. The current plugin API has a modifyClass function, but no way to register new classes (as far as I can tell). I created…

---

## [Discourse Webhooks - Help](https://meta.discourse.org/t/discourse-webhooks-help/60254)

<div class="topic-metadata">

**Author:** [@jackzampolin](https://meta.discourse.org/u/jackzampolin)\
**Replies:** 8\
**Last updated:** [February 26, 2018, 10:12am UTC](https://meta.discourse.org/t/discourse-webhooks-help/60254 "2018-02-26T10:12:37Z")

</div>

I’ve been working on implementing a webhook client in JS. In order to get the proper shape of the sent events I created a server to listen for the events and write the posts to a file. Then I TDDed the server to handle t…

---

## [How to get a user avatar from username?](https://meta.discourse.org/t/how-to-get-a-user-avatar-from-username/49763)

<div class="topic-metadata">

**Author:** [@mr8](https://meta.discourse.org/u/mr8)\
**Replies:** 2\
**Last updated:** [February 26, 2018, 6:00am UTC](https://meta.discourse.org/t/how-to-get-a-user-avatar-from-username/49763 "2018-02-26T06:00:22Z")

</div>

What’s the recommended way to get a user’s avatar from their username in a plugin? I did find some reference to lookupAvatar(username) in quote.js.es6, but there doesn’t seem to be much out there regarding avatars.

---

## [Customizing via core edits vs. using plugins](https://meta.discourse.org/t/customizing-via-core-edits-vs-using-plugins/81478)

<div class="topic-metadata">

**Author:** [@Guy\_Fawkes](https://meta.discourse.org/u/Guy_Fawkes)\
**Replies:** 8\
**Last updated:** [February 25, 2018, 10:13pm UTC](https://meta.discourse.org/t/customizing-via-core-edits-vs-using-plugins/81478 "2018-02-25T22:13:54Z")

</div>

Hello , I was wondering what are the worst things could happen if I changed/add/remove the features of Discourse by customisation its core instead of doing it with plugins ?

---

## [Send custom email from plugin](https://meta.discourse.org/t/send-custom-email-from-plugin/81327)

<div class="topic-metadata">

**Author:** [@jordan1909](https://meta.discourse.org/u/jordan1909)\
**Replies:** 2\
**Last updated:** [February 24, 2018, 8:41pm UTC](https://meta.discourse.org/t/send-custom-email-from-plugin/81327 "2018-02-24T20:41:00Z")

</div>

In my plugin I am parsing all cc’d/bcc’d users and adding them to the topic they were cc’d on. This works well for both initial emails and forwarded replies. Based on a site setting I either create a full user or a stage…

---

## [The increase in the number of SQL queries](https://meta.discourse.org/t/the-increase-in-the-number-of-sql-queries/81292)

<div class="topic-metadata">

**Author:** [@Stranik](https://meta.discourse.org/u/Stranik)\
**Replies:** 7\
**Last updated:** [February 23, 2018, 3:30pm UTC](https://meta.discourse.org/t/the-increase-in-the-number-of-sql-queries/81292 "2018-02-23T15:30:16Z")

</div>

v2.0.0.beta3 +110 Rebuilt today Previously, it was 18 SQL query: http://toxu.blog/test.htm

---

## [Database migrations and git flow](https://meta.discourse.org/t/database-migrations-and-git-flow/81114)

<div class="topic-metadata">

**Author:** [@mschekotov](https://meta.discourse.org/u/mschekotov)\
**Replies:** 7\
**Last updated:** [February 21, 2018, 5:22pm UTC](https://meta.discourse.org/t/database-migrations-and-git-flow/81114 "2018-02-21T17:22:12Z")

</div>

Hi there, folks. I am currently migrating some forum to Discourse. I have zero experience with RoR development, so I have few questions about Discourse and its infrastructure. First of all, I’m planning to use the Dis…

---

## [Pop3 Polling on development](https://meta.discourse.org/t/pop3-polling-on-development/81142)

<div class="topic-metadata">

**Author:** [@jordan1909](https://meta.discourse.org/u/jordan1909)\
**Replies:** 2\
**Last updated:** [February 21, 2018, 3:24pm UTC](https://meta.discourse.org/t/pop3-polling-on-development/81142 "2018-02-21T15:24:17Z")

</div>

Is it possible to manually trigger a pop3 poll? My development instance doesn’t appear to be doing it, though all is configured correctly.

---

## [Atom users, what plug-ins do you use?](https://meta.discourse.org/t/atom-users-what-plug-ins-do-you-use/80921)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**Replies:** 1\
**Last updated:** [February 21, 2018, 3:24am UTC](https://meta.discourse.org/t/atom-users-what-plug-ins-do-you-use/80921 "2018-02-21T03:24:03Z")

</div>

Atom users, what (Atom) plugi-ns do you use/recommend for (Discourse) plugin development?

---

## [Understanding Solved Plugin](https://meta.discourse.org/t/understanding-solved-plugin/80706)

<div class="topic-metadata">

**Author:** [@Bolarinwa\_Balogun](https://meta.discourse.org/u/Bolarinwa_Balogun)\
**Replies:** 1\
**Last updated:** [February 20, 2018, 2:33pm UTC](https://meta.discourse.org/t/understanding-solved-plugin/80706 "2018-02-20T14:33:02Z")

</div>

Hi, I am trying to understand the solved plugin to get a better idea of creating plugins. I had a few questions about code snippets from the solved plugin. https://github.com/discourse/discourse-solved/blob/master/asse…

---

## [Create Category URL](https://meta.discourse.org/t/create-category-url/80718)

<div class="topic-metadata">

**Author:** [@Bolarinwa\_Balogun](https://meta.discourse.org/u/Bolarinwa_Balogun)\
**Replies:** 1\
**Last updated:** [February 16, 2018, 2:39pm UTC](https://meta.discourse.org/t/create-category-url/80718 "2018-02-16T14:39:17Z")

</div>

Hi, I am trying to create a block in the sidebar blocks plugin that list categories. I am trying to generate the URL for each category that a user has access to but I can’t find what route returns the JSON file with the…

---

## [Get list of wiki editors](https://meta.discourse.org/t/get-list-of-wiki-editors/80684)

<div class="topic-metadata">

**Author:** [@Bolarinwa\_Balogun](https://meta.discourse.org/u/Bolarinwa_Balogun)\
**Replies:** 3\
**Last updated:** [February 15, 2018, 11:58pm UTC](https://meta.discourse.org/t/get-list-of-wiki-editors/80684 "2018-02-15T23:58:00Z")

</div>

Hi, I’m working on a plugin that notifies editors of a wiki post when that post has been edited. I was wondering how to get the list of editors of a wiki post so that I can send them a notification when the wiki post ha…

---

## [Q&A design (blank)](https://meta.discourse.org/t/q-a-design-blank/80672)

<div class="topic-metadata">

**Author:** [@Stranik](https://meta.discourse.org/u/Stranik)\
**Replies:** 0\
**Last updated:** [February 15, 2018, 8:49pm UTC](https://meta.discourse.org/t/q-a-design-blank/80672 "2018-02-15T20:49:45Z")

</div>

I was asked to do Q&A design, sketch. Which can then be used for later editing. This code is very raw and if someone wants it, they can use it further. It was a fun hobby - 10 minutes. I won’t support it, but I’m pla…

---

## [Redirect all users who click on domain.com/signup to a different page](https://meta.discourse.org/t/redirect-all-users-who-click-on-domain-com-signup-to-a-different-page/80532)

<div class="topic-metadata">

**Author:** [@nadermx](https://meta.discourse.org/u/nadermx)\
**Replies:** 11\
**Last updated:** [February 15, 2018, 4:13pm UTC](https://meta.discourse.org/t/redirect-all-users-who-click-on-domain-com-signup-to-a-different-page/80532 "2018-02-15T16:13:17Z")

</div>

I’m currently trying to redirect all potential new users to a landing page instead of having the modal show up. What would be the most elegant way to do this? If they sign up I would create their account via the API

---

## [Can't change repo in discourse docker](https://meta.discourse.org/t/cant-change-repo-in-discourse-docker/49376)

<div class="topic-metadata">

**Author:** [@sevenmaxis](https://meta.discourse.org/u/sevenmaxis)\
**Replies:** 9\
**Last updated:** [February 15, 2018, 7:12am UTC](https://meta.discourse.org/t/cant-change-repo-in-discourse-docker/49376 "2018-02-15T07:12:01Z")

</div>

I want to make modification to the appearance of discourse by plugin. Due to the plugin architecture I have to fork repos. First I changed repo in discourse\_docker at my forked discourse\_docker Then I forked discourse …

---

## [Displaying the forum name](https://meta.discourse.org/t/displaying-the-forum-name/80512)

<div class="topic-metadata">

**Author:** [@Biscuit](https://meta.discourse.org/u/Biscuit)\
**Replies:** 2\
**Last updated:** [February 14, 2018, 8:12am UTC](https://meta.discourse.org/t/displaying-the-forum-name/80512 "2018-02-14T08:12:55Z")

</div>

I want to display our forum name to the right of the square company logo that appears at the top left. Other sites do this, including this Meta forum (with the Discourse name shown at the top). How? I’m hoping for an …

---

## [Evaluating Google's Perspective API on your Discourse forum](https://meta.discourse.org/t/evaluating-googles-perspective-api-on-your-discourse-forum/79971)

<div class="topic-metadata">

**Author:** [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)\
**Replies:** 12\
**Last updated:** [February 12, 2018, 5:40pm UTC](https://meta.discourse.org/t/evaluating-googles-perspective-api-on-your-discourse-forum/79971 "2018-02-12T17:40:23Z")

</div>

Continuing the discussion from Discourse Etiquette: take actions when users intend to post inappropriate remark: Google’s Perspective API is an experimental machine learning project, trained by moderation data from New …

---

## [List available reports](https://meta.discourse.org/t/list-available-reports/80085)

<div class="topic-metadata">

**Author:** [@Mark\_Walkom](https://meta.discourse.org/u/Mark_Walkom)\
**Replies:** 3\
**Last updated:** [February 11, 2018, 11:33pm UTC](https://meta.discourse.org/t/list-available-reports/80085 "2018-02-11T23:33:48Z")

</div>

Is there an API endpoint that can be called to get a list of all the reports? I’m currently manually going through the admin page and pulling the report names from each link, but was hoping for something I could use pro…

---

## [How to reset theme Customization made in admin?](https://meta.discourse.org/t/how-to-reset-theme-customization-made-in-admin/80251)

<div class="topic-metadata">

**Author:** [@itsazzad](https://meta.discourse.org/u/itsazzad)\
**Replies:** 1\
**Last updated:** [February 10, 2018, 11:42am UTC](https://meta.discourse.org/t/how-to-reset-theme-customization-made-in-admin/80251 "2018-02-10T11:42:03Z")

</div>

I have made some changes in /admin/customize/themes/2/common/header/edit How can I reset?

---

## [Avatars not showing after import](https://meta.discourse.org/t/avatars-not-showing-after-import/80081)

<div class="topic-metadata">

**Author:** [@fhe](https://meta.discourse.org/u/fhe)\
**Replies:** 1\
**Last updated:** [February 9, 2018, 9:31am UTC](https://meta.discourse.org/t/avatars-not-showing-after-import/80081 "2018-02-09T09:31:14Z")

</div>

I’m currently trying to import from IPB using a local dev environment on macOS without any virtualization. I’m importing avatars via upload = create\_upload(user.id, img\_path, File.basename(img\_path)) if upload && uploa…

---

## [OpenBadges Integration](https://meta.discourse.org/t/openbadges-integration/78978)

<div class="topic-metadata">

**Author:** [@Bolarinwa\_Balogun](https://meta.discourse.org/u/Bolarinwa_Balogun)\
**Replies:** 5\
**Last updated:** [February 8, 2018, 12:01am UTC](https://meta.discourse.org/t/openbadges-integration/78978 "2018-02-08T00:01:53Z")

</div>

Hi, I am working on a discourse setup to be used as a discussion board for a school. One of features requested was integration with Mozilla OpenBadges so students have a centralized group of badges of applications which…

---

## [Graphs on User End](https://meta.discourse.org/t/graphs-on-user-end/80051)

<div class="topic-metadata">

**Author:** [@Bolarinwa\_Balogun](https://meta.discourse.org/u/Bolarinwa_Balogun)\
**Replies:** 2\
**Last updated:** [February 7, 2018, 11:18pm UTC](https://meta.discourse.org/t/graphs-on-user-end/80051 "2018-02-07T23:18:30Z")

</div>

Hi, I just saw graph in the admin search logs and it looks cool, how was that achieved? Is it possible to do something similar for users? If so, what resources or suggestions are there on doing something similar? Thank…

---

## [Cannot login to dev instance with imported user](https://meta.discourse.org/t/cannot-login-to-dev-instance-with-imported-user/79544)

<div class="topic-metadata">

**Author:** [@fhe](https://meta.discourse.org/u/fhe)\
**Replies:** 5\
**Last updated:** [February 7, 2018, 7:54pm UTC](https://meta.discourse.org/t/cannot-login-to-dev-instance-with-imported-user/79544 "2018-02-07T19:54:47Z")

</div>

I’ve just imported my first user from IPB to my local Discourse 2.0.0.beta2 and also went on to import the previous passwords using @michaeld’s discourse-migratepassword. Everything seems to be working fine, the user is…

---

## [Adding Discourse inside an app](https://meta.discourse.org/t/adding-discourse-inside-an-app/79844)

<div class="topic-metadata">

**Author:** [@Andy02](https://meta.discourse.org/u/Andy02)\
**Replies:** 1\
**Last updated:** [February 6, 2018, 9:51am UTC](https://meta.discourse.org/t/adding-discourse-inside-an-app/79844 "2018-02-06T09:51:29Z")

</div>

we’re turning our website into an app and we use discourse as our forum in a sub directory. does anyone know anything about adding Discourse into an app?

---

## [Create fully custom header](https://meta.discourse.org/t/create-fully-custom-header/70126)

<div class="topic-metadata">

**Author:** [@ganya](https://meta.discourse.org/u/ganya)\
**Replies:** 13\
**Last updated:** [February 4, 2018, 1:48am UTC](https://meta.discourse.org/t/create-fully-custom-header/70126 "2018-02-04T01:48:34Z")

</div>

Hello guys. Is there any way to create fully custom header and do modifications with code. For example i need to move panel from header to list-controls container to make something like this ?

---

## [Appending to Preferences -\> Account tab](https://meta.discourse.org/t/appending-to-preferences-account-tab/79337)

<div class="topic-metadata">

**Author:** [@samnazarko](https://meta.discourse.org/u/samnazarko)\
**Replies:** 2\
**Last updated:** [February 3, 2018, 6:36pm UTC](https://meta.discourse.org/t/appending-to-preferences-account-tab/79337 "2018-02-03T18:36:40Z")

</div>

Hello, I’ve started to use SSO for my forum. I’d like to add some links to the Account tab under Preferences so that I can tell users that they can manage further settings re. their account on the SSO dashboard. I can …

---

## [Pre Emptive Striker plugin development log](https://meta.discourse.org/t/pre-emptive-striker-plugin-development-log/70845)

<div class="topic-metadata">

**Author:** [@deevolution](https://meta.discourse.org/u/deevolution)\
**Replies:** 13\
**Last updated:** [February 1, 2018, 6:46pm UTC](https://meta.discourse.org/t/pre-emptive-striker-plugin-development-log/70845 "2018-02-01T18:46:52Z")

</div>

Hey, all As suggested by @erlend\_sh, I have created a development log for a plugin I’ve begun developing for Discourse. I have started work on building what I call the pre-emptive striker plugin (if anyone has a better…

---

## [Show banner only for guest user](https://meta.discourse.org/t/show-banner-only-for-guest-user/79538)

<div class="topic-metadata">

**Author:** [@gregg971](https://meta.discourse.org/u/gregg971)\
**Replies:** 5\
**Last updated:** [February 1, 2018, 1:47pm UTC](https://meta.discourse.org/t/show-banner-only-for-guest-user/79538 "2018-02-01T13:47:56Z")

</div>

Hi, how can i show a banner only for guest user, and hide it for logged user ?

---

## [How to add "ignore user" functionality?](https://meta.discourse.org/t/how-to-add-ignore-user-functionality/63314)

<div class="topic-metadata">

**Author:** [@mcbuzz](https://meta.discourse.org/u/mcbuzz)\
**Replies:** 2\
**Last updated:** [January 31, 2018, 10:19am UTC](https://meta.discourse.org/t/how-to-add-ignore-user-functionality/63314 "2018-01-31T10:19:50Z")

</div>

Sometimes, there’s certain users that just won’t get along. Instead of policing their discussions, its better for everyone if you can just add users to ignore. That way everyone wins. Does someone know how to do it or is…

---

## [Current PageTracker.current?](https://meta.discourse.org/t/current-pagetracker-current/79340)

<div class="topic-metadata">

**Author:** [@jesselperry](https://meta.discourse.org/u/jesselperry)\
**Replies:** 2\
**Last updated:** [January 30, 2018, 5:02am UTC](https://meta.discourse.org/t/current-pagetracker-current/79340 "2018-01-30T05:02:44Z")

</div>

Is there a new way to get a Javascript event when page URL changes? Discourse.PageTracker.current is not working for me.

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

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