# Development

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

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

**Page:** 101

---

## [Plugin Login to view content (Working)](https://meta.discourse.org/t/plugin-login-to-view-content-working/126196)

<div class="topic-metadata">

**Author:** [@tohaitrieu](https://meta.discourse.org/u/tohaitrieu)\
**Replies:** 9\
**Last updated:** [December 23, 2019, 7:33am UTC](https://meta.discourse.org/t/plugin-login-to-view-content-working/126196 "2019-12-23T07:33:41Z")

</div>

Hi Everybody. Hi everybody I created a Plugin based on the idea of BBCode Color Plugin and BBCode Lock. Currently I have made it work, but I have not been able to change the css class when the visitor is not logged in…

---

## [WSL environment deadlocks](https://meta.discourse.org/t/wsl-environment-deadlocks/136785)

<div class="topic-metadata">

**Author:** [@ramjke](https://meta.discourse.org/u/ramjke)\
**Replies:** 1\
**Last updated:** [December 21, 2019, 11:36pm UTC](https://meta.discourse.org/t/wsl-environment-deadlocks/136785 "2019-12-21T23:36:14Z")

</div>

Using this guide I have setup with latest Ubuntu on WSL. This setup work perfectly for my PHP or Javascript projects. But not with Discourse. I have 2 big problems with it: Discourse on WSL very slow. It takes 4-6 s…

---

## [Get all the data from request?](https://meta.discourse.org/t/get-all-the-data-from-request/136507)

<div class="topic-metadata">

**Author:** [@Dev\_Work](https://meta.discourse.org/u/Dev_Work)\
**Replies:** 0\
**Last updated:** [December 19, 2019, 2:44pm UTC](https://meta.discourse.org/t/get-all-the-data-from-request/136507 "2019-12-19T14:44:17Z")

</div>

How can I get all the data from a received request in my plugin?

---

## [Why is "rebuild" so tightly coupled to container run status?](https://meta.discourse.org/t/why-is-rebuild-so-tightly-coupled-to-container-run-status/136414)

<div class="topic-metadata">

**Author:** [@CodeGnome](https://meta.discourse.org/u/CodeGnome)\
**Replies:** 3\
**Last updated:** [December 19, 2019, 2:07pm UTC](https://meta.discourse.org/t/why-is-rebuild-so-tightly-coupled-to-container-run-status/136414 "2019-12-19T14:07:02Z")

</div>

In fairness, I should start by saying I’m new to the platform and the codebase, and therefore have no idea how rebuild currently works under the hood. However, my current understanding is that rebuilding: stops the cur…

---

## [Adding Custom Fields via Plugin Outlet](https://meta.discourse.org/t/adding-custom-fields-via-plugin-outlet/109003)

<div class="topic-metadata">

**Author:** [@zaino](https://meta.discourse.org/u/zaino)\
**Replies:** 4\
**Last updated:** [December 19, 2019, 10:50am UTC](https://meta.discourse.org/t/adding-custom-fields-via-plugin-outlet/109003 "2019-12-19T10:50:35Z")

</div>

In my custom theme, I am attempting to create custom user fields using the plugin-outlet at preferences/profile and I am part way there. I have successfully inserted new custom fields into User Preferences, but the info…

---

## [API feature request for additonal info about external accounts](https://meta.discourse.org/t/api-feature-request-for-additonal-info-about-external-accounts/136248)

<div class="topic-metadata">

**Author:** [@nekodroid](https://meta.discourse.org/u/nekodroid)\
**Replies:** 5\
**Last updated:** [December 18, 2019, 7:01pm UTC](https://meta.discourse.org/t/api-feature-request-for-additonal-info-about-external-accounts/136248 "2019-12-18T19:01:40Z")

</div>

Hey ! I’ve looked into Discourse’s API, and was wondering if additional info about external accounts (from other social networks) could be get through it. In my case, it’d be for Discord : I’d like to sync people that …

---

## [Using the API to retrive the value of a custom user field from a user](https://meta.discourse.org/t/using-the-api-to-retrive-the-value-of-a-custom-user-field-from-a-user/84751)

<div class="topic-metadata">

**Author:** [@Jake\_Green](https://meta.discourse.org/u/Jake_Green)\
**Replies:** 4\
**Last updated:** [December 18, 2019, 5:29am UTC](https://meta.discourse.org/t/using-the-api-to-retrive-the-value-of-a-custom-user-field-from-a-user/84751 "2019-12-18T05:29:55Z")

</div>

I’ve search the API documentation but I can’t find a way to get the value of a customer user field of a specified user. Is this possible? Thanks.

---

## [Adding a mixin to a class in a plugin?](https://meta.discourse.org/t/adding-a-mixin-to-a-class-in-a-plugin/83905)

<div class="topic-metadata">

**Author:** [@shoshber](https://meta.discourse.org/u/shoshber)\
**Replies:** 4\
**Last updated:** [December 17, 2019, 10:03pm UTC](https://meta.discourse.org/t/adding-a-mixin-to-a-class-in-a-plugin/83905 "2019-12-17T22:03:14Z")

</div>

I need to modify a javascript controller (create-account). If I were writing it from scratch, I’d add a mixin called something like (FooValidation), the same way the mixins PasswordValidation and UsernameValidation are a…

---

## [Changing breakpoint for vdo/vmo](https://meta.discourse.org/t/changing-breakpoint-for-vdo-vmo/277625)

<div class="topic-metadata">

**Author:** [@pgr](https://meta.discourse.org/u/pgr)\
**Replies:** 5\
**Last updated:** [December 17, 2019, 5:33pm UTC](https://meta.discourse.org/t/changing-breakpoint-for-vdo-vmo/277625 "2019-12-17T17:33:56Z")

</div>

Our designer is having some problems with the responsive aspect of this (very nice and useful) add-on and she asks if she can change the breakpoint where it currently switches from the vdo to vmo elements? Is this possi…

---

## [Using PostCreator for anonymous user requests](https://meta.discourse.org/t/using-postcreator-for-anonymous-user-requests/136042)

<div class="topic-metadata">

**Author:** [@nobodyfrm](https://meta.discourse.org/u/nobodyfrm)\
**Replies:** 4\
**Last updated:** [December 16, 2019, 7:02pm UTC](https://meta.discourse.org/t/using-postcreator-for-anonymous-user-requests/136042 "2019-12-16T19:02:15Z")

</div>

Hi, I wanna send a POST-Request via Ajax to my rails (Discourse) backend to create a post. It works fine for logged-in users but doesn’t for anonymous ones. What do I have to change to make it work for the letter?

---

## [Plugin development workflow w/ remote dev server](https://meta.discourse.org/t/plugin-development-workflow-w-remote-dev-server/80267)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**Replies:** 7\
**Last updated:** [December 16, 2019, 11:25am UTC](https://meta.discourse.org/t/plugin-development-workflow-w-remote-dev-server/80267 "2019-12-16T11:25:49Z")

</div>

Thanks for the guides, I think I have the basics to get me started with Plugin dev. Wanted to ask about whether its worth having an IDE for plugin development? Secondly, I’m hosting my dev server on a remote cloud VPS …

---

## [Spoiler content only visible for registered users](https://meta.discourse.org/t/spoiler-content-only-visible-for-registered-users/135940)

<div class="topic-metadata">

**Author:** [@testuser2](https://meta.discourse.org/u/testuser2)\
**Replies:** 9\
**Last updated:** [December 15, 2019, 7:37am UTC](https://meta.discourse.org/t/spoiler-content-only-visible-for-registered-users/135940 "2019-12-15T07:37:52Z")

</div>

Hi there, is it possible to make content with spoiler tag only visible for registered users?

---

## [Jforum import script](https://meta.discourse.org/t/jforum-import-script/74616)

<div class="topic-metadata">

**Author:** [@mayerale](https://meta.discourse.org/u/mayerale)\
**Replies:** 6\
**Last updated:** [December 12, 2019, 2:59pm UTC](https://meta.discourse.org/t/jforum-import-script/74616 "2019-12-12T14:59:11Z")

</div>

I’ve written an import script for jforum, the great java-based forum software. Here is my github fork: https://github.com/mayerale/discourse/ It’s based on the phpBB import script (thank you for this great import scrip…

---

## [Self-upgrade architecture?](https://meta.discourse.org/t/self-upgrade-architecture/135580)

<div class="topic-metadata">

**Author:** [@tomsmyth1](https://meta.discourse.org/u/tomsmyth1)\
**Replies:** 1\
**Last updated:** [December 10, 2019, 6:06pm UTC](https://meta.discourse.org/t/self-upgrade-architecture/135580 "2019-12-10T18:06:01Z")

</div>

Is there anything written up about how Discourse’s self upgrade function works? If not, any pointers at where to look in the code? Is it a suitable model for other Rails apps to follow? If not, are there better patterns…

---

## [Font Awesome Kit Setting](https://meta.discourse.org/t/font-awesome-kit-setting/135288)

<div class="topic-metadata">

**Author:** [@Nisutec](https://meta.discourse.org/u/Nisutec)\
**Replies:** 1\
**Last updated:** [December 6, 2019, 8:17pm UTC](https://meta.discourse.org/t/font-awesome-kit-setting/135288 "2019-12-06T20:17:57Z")

</div>

Hallo, At the moment it is only possible to use all free FA Icons or custome svg files in the “svg icon subset” setting. Please make it possible to use a custome FA Kit to support FA Pro Icons. Is it possible to add a…

---

## [Distinct can be removed due to unique index](https://meta.discourse.org/t/distinct-can-be-removed-due-to-unique-index/135225)

<div class="topic-metadata">

**Author:** [@junwen\_yang](https://meta.discourse.org/u/junwen_yang)\
**Replies:** 3\
**Last updated:** [December 6, 2019, 8:00pm UTC](https://meta.discourse.org/t/distinct-can-be-removed-due-to-unique-index/135225 "2019-12-06T20:00:02Z")

</div>

In, theme.rb, there is ChildTheme.where(parent\_theme\_id: theme\_id).distinct.pluck(:child\_theme\_id), in which the distinct can be removed due to the unique index added in discourse/db/migrate/20170313192741\_add\_themes.rb…

---

## [Generate/Regenerate api\_key for a user API not working](https://meta.discourse.org/t/generate-regenerate-api-key-for-a-user-api-not-working/135039)

<div class="topic-metadata">

**Author:** [@NathanLei](https://meta.discourse.org/u/NathanLei)\
**Replies:** 4\
**Last updated:** [December 6, 2019, 8:13am UTC](https://meta.discourse.org/t/generate-regenerate-api-key-for-a-user-api-not-working/135039 "2019-12-06T08:13:35Z")

</div>

I m trying to get an API key . for a user , but return me 404, my other APIs work fine, so not the header issue. I also checked the backend setup. no problem..

---

## [Webhooks for private messages - building an onboarding bot](https://meta.discourse.org/t/webhooks-for-private-messages-building-an-onboarding-bot/134756)

<div class="topic-metadata">

**Author:** [@Krischan](https://meta.discourse.org/u/Krischan)\
**Replies:** 3\
**Last updated:** [December 5, 2019, 7:15am UTC](https://meta.discourse.org/t/webhooks-for-private-messages-building-an-onboarding-bot/134756 "2019-12-05T07:15:41Z")

</div>

I’m currently building an onboarding bot using the api, private messages and webhooks. The bot will interview new users and publish the interview afterwards for the community to read and get to know the newbie this way. …

---

## [Random string in category name](https://meta.discourse.org/t/random-string-in-category-name/135020)

<div class="topic-metadata">

**Author:** [@angus](https://meta.discourse.org/u/angus)\
**Replies:** 6\
**Last updated:** [December 5, 2019, 4:37am UTC](https://meta.discourse.org/t/random-string-in-category-name/135020 "2019-12-05T04:37:48Z")

</div>

After setting up a fresh development environment recently, I’ve encountered a strange behaviour and was wondering if anyone knows what this is. I’m seeing a random string being appended to category names and tags:

---

## [Hiding X Months Later notices](https://meta.discourse.org/t/hiding-x-months-later-notices/134930)

<div class="topic-metadata">

**Author:** [@calebs](https://meta.discourse.org/u/calebs)\
**Replies:** 4\
**Last updated:** [December 3, 2019, 12:56am UTC](https://meta.discourse.org/t/hiding-x-months-later-notices/134930 "2019-12-03T00:56:06Z")

</div>

A lot of new members have joined our Discourse recently. Some of them are replying to very old topics. My question is would it be possible to hide the X Months Later notice that appears above a new reply?

---

## [After\_delete\_account](https://meta.discourse.org/t/after-delete-account/134884)

<div class="topic-metadata">

**Author:** [@NotAnonymous](https://meta.discourse.org/u/NotAnonymous)\
**Replies:** 1\
**Last updated:** [December 2, 2019, 5:04pm UTC](https://meta.discourse.org/t/after-delete-account/134884 "2019-12-02T17:04:55Z")

</div>

I’m looking for something like after\_create\_account, but for after a user deletes their account. We have a custom authentication plugin that stores some information in a database table on a new account creation. When t…

---

## ["Recently Used Devices" section is guarded by "canCheckEmails" which seems unexpected](https://meta.discourse.org/t/recently-used-devices-section-is-guarded-by-cancheckemails-which-seems-unexpected/134871)

<div class="topic-metadata">

**Author:** [@Hooksmith](https://meta.discourse.org/u/Hooksmith)\
**Replies:** 1\
**Last updated:** [December 2, 2019, 3:54pm UTC](https://meta.discourse.org/t/recently-used-devices-section-is-guarded-by-cancheckemails-which-seems-unexpected/134871 "2019-12-02T15:54:16Z")

</div>

As seen in: The visibility of this section of Preferences \> Account: Seems to be guarded by the condition of whether the users can check their own emails. This is unexpected behavior to me as a plugin developer, be…

---

## [Slow loading on localhost on windows](https://meta.discourse.org/t/slow-loading-on-localhost-on-windows/134842)

<div class="topic-metadata">

**Author:** [@ParthParmar](https://meta.discourse.org/u/ParthParmar)\
**Replies:** 3\
**Last updated:** [December 2, 2019, 8:01am UTC](https://meta.discourse.org/t/slow-loading-on-localhost-on-windows/134842 "2019-12-02T08:01:47Z")

</div>

i have installed discourse on localhost on windows but the problem is very very slow loading

---

## [How do I access Custom Fields in a theme component?](https://meta.discourse.org/t/how-do-i-access-custom-fields-in-a-theme-component/134701)

<div class="topic-metadata">

**Author:** [@bartv](https://meta.discourse.org/u/bartv)\
**Replies:** 1\
**Last updated:** [November 29, 2019, 3:21pm UTC](https://meta.discourse.org/t/how-do-i-access-custom-fields-in-a-theme-component/134701 "2019-11-29T15:21:18Z")

</div>

In ‘Our solution for blurring NSFW content’, I used the following bit of code to access the value of a User Field. This seems to no longer work - the u.custom\_fields does not contain any data anymore: var u = Discourse.…

---

## [Discourse Trust Levels for Discord](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232)

<div class="topic-metadata">

**Author:** [@Watercolor\_Games](https://meta.discourse.org/u/Watercolor_Games)\
**Replies:** 61\
**Last updated:** [November 29, 2019, 8:33pm UTC](https://meta.discourse.org/t/discourse-trust-levels-for-discord/108232 "2019-11-29T20:33:05Z")

</div>

Hey there everyone! I’ve been loving the hell out of the Discourse chat integration plugin, but I started to think of other ways I could integrate Discourse with Discord. I think I found a pretty neat idea - bringing Tru…

---

## [Getting posts with mentioned tag](https://meta.discourse.org/t/getting-posts-with-mentioned-tag/134615)

<div class="topic-metadata">

**Author:** [@agmontpetit](https://meta.discourse.org/u/agmontpetit)\
**Replies:** 0\
**Last updated:** [November 28, 2019, 9:51am UTC](https://meta.discourse.org/t/getting-posts-with-mentioned-tag/134615 "2019-11-28T09:51:55Z")

</div>

I’ve been looking into tags and tag groups and I think they are quite powerful. However, I’m missing a feature that I would consider implementing myself. The idea is being able to see all posts that mention a category o…

---

## [Authenticating using API keys when accessing API through fetch](https://meta.discourse.org/t/authenticating-using-api-keys-when-accessing-api-through-fetch/134149)

<div class="topic-metadata">

**Author:** [@Lucas\_Meijer](https://meta.discourse.org/u/Lucas_Meijer)\
**Replies:** 4\
**Last updated:** [November 28, 2019, 7:10am UTC](https://meta.discourse.org/t/authenticating-using-api-keys-when-accessing-api-through-fetch/134149 "2019-11-28T07:10:40Z")

</div>

Hey! I’m building a headless WP site for a magazine which has their community on Discourse, and the comments are to be integrated on the article pages. I found the API docs and was super happy, as the iframe embed wasn’…

---

## [How to check whether a user already logined?](https://meta.discourse.org/t/how-to-check-whether-a-user-already-logined/134446)

<div class="topic-metadata">

**Author:** [@edisonking](https://meta.discourse.org/u/edisonking)\
**Replies:** 2\
**Last updated:** [November 26, 2019, 3:33pm UTC](https://meta.discourse.org/t/how-to-check-whether-a-user-already-logined/134446 "2019-11-26T15:33:51Z")

</div>

I try to logout a user by calling an API “/admin/user/{user\_id}/log\_out”, but before that, I try to I need to check whether the user already login. Is there any API for this purpose?

---

## [How much can discourse be customized via plugins?](https://meta.discourse.org/t/how-much-can-discourse-be-customized-via-plugins/133695)

<div class="topic-metadata">

**Author:** [@Nikolay](https://meta.discourse.org/u/Nikolay)\
**Replies:** 3\
**Last updated:** [November 25, 2019, 3:16pm UTC](https://meta.discourse.org/t/how-much-can-discourse-be-customized-via-plugins/133695 "2019-11-25T15:16:59Z")

</div>

Hello everyone. I want to change my community from IPB to Discourse. I created plugin via basic plugin tutorial. I see that i am able to create frontend plugin. But i am interested, is there a way to create backend pl…

---

## [Override global Sass variables from theme](https://meta.discourse.org/t/override-global-sass-variables-from-theme/68146)

<div class="topic-metadata">

**Author:** [@LeoMcA](https://meta.discourse.org/u/LeoMcA)\
**Replies:** 5\
**Last updated:** [November 25, 2019, 5:09pm UTC](https://meta.discourse.org/t/override-global-sass-variables-from-theme/68146 "2019-11-25T17:09:05Z")

</div>

Continuing the discussion from Cleaning up our color palette :artist\_palette:: Themes already have the ability to define sass variables: However, from personal testing, these seem to be local to the theme’s styleshe…

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

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