# Development

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

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

**Page:** 118

---

## [Issues in Like Count for OSQA Migration to Discourse](https://meta.discourse.org/t/issues-in-like-count-for-osqa-migration-to-discourse/94880)

<div class="topic-metadata">

**Author:** [@praveendhinwa](https://meta.discourse.org/u/praveendhinwa)\
**Replies:** 11\
**Last updated:** [August 21, 2018, 6:51pm UTC](https://meta.discourse.org/t/issues-in-like-count-for-osqa-migration-to-discourse/94880 "2018-08-21T18:51:32Z")

</div>

Hi guys, I am trying to migrate from OSQA to Discourse. I am doing bulk migration due to our platform having a relatively large number of users and posts. I have imported all users, posts and all the likes. I am facing …

---

## [Admin who created site has trust level 0?](https://meta.discourse.org/t/admin-who-created-site-has-trust-level-0/94040)

<div class="topic-metadata">

**Author:** [@gdpelican](https://meta.discourse.org/u/gdpelican)\
**Replies:** 3\
**Last updated:** [August 21, 2018, 6:35pm UTC](https://meta.discourse.org/t/admin-who-created-site-has-trust-level-0/94040 "2018-08-21T18:35:40Z")

</div>

I’ve been getting a couple plugin-related bug reports recently related to the fact that the admin created with the site (the one with the email you enter during the setup process) has trust level 0 upon creation. Some m…

---

## [Developing with Discourse](https://meta.discourse.org/t/developing-with-discourse/72777)

<div class="topic-metadata">

**Author:** [@drew0101](https://meta.discourse.org/u/drew0101)\
**Replies:** 7\
**Last updated:** [August 21, 2018, 4:55pm UTC](https://meta.discourse.org/t/developing-with-discourse/72777 "2018-08-21T16:55:06Z")

</div>

Hello, I am building an app that includes a full featured discussion board. Discourse has all the features required for the discussion board feature, so my plan is to use discourse as a starting point and to build featu…

---

## [Error after cleaning tmp folder](https://meta.discourse.org/t/error-after-cleaning-tmp-folder/95205)

<div class="topic-metadata">

**Author:** [@bekircem](https://meta.discourse.org/u/bekircem)\
**Replies:** 8\
**Last updated:** [August 20, 2018, 9:05pm UTC](https://meta.discourse.org/t/error-after-cleaning-tmp-folder/95205 "2018-08-20T21:05:20Z")

</div>

Hi, I installed Discourse development environment with official guide on my MacOS. I changed plugin file and it warned me for “remove the TMP folder”. I cleaned tmp folder in Discourse and after that when i use that com…

---

## [Is there an event that fires when topic-lists are reloaded?](https://meta.discourse.org/t/is-there-an-event-that-fires-when-topic-lists-are-reloaded/78523)

<div class="topic-metadata">

**Author:** [@Johani](https://meta.discourse.org/u/Johani)\
**Replies:** 6\
**Last updated:** [August 16, 2018, 4:17pm UTC](https://meta.discourse.org/t/is-there-an-event-that-fires-when-topic-lists-are-reloaded/78523 "2018-08-16T16:17:03Z")

</div>

Excuse the butchered terminology :sunflower: I’m trying to use masonry in combination with the topic list previews plugin to create a grid topic list like so: When new items are added to a masonry grid or the topi…

---

## [How much data can the user fields store?](https://meta.discourse.org/t/how-much-data-can-the-user-fields-store/95199)

<div class="topic-metadata">

**Author:** [@Stranik](https://meta.discourse.org/u/Stranik)\
**Replies:** 1\
**Last updated:** [August 20, 2018, 3:19pm UTC](https://meta.discourse.org/t/how-much-data-can-the-user-fields-store/95199 "2018-08-20T15:19:16Z")

</div>

On sites, administrators use plugins, for example: discourse-voting And I was wondering. How much data can be stored this way. No impact on performance. After all, each participant can have thousands of records. user.…

---

## [Resurrecting a plugin](https://meta.discourse.org/t/resurrecting-a-plugin/95056)

<div class="topic-metadata">

**Author:** [@timmch](https://meta.discourse.org/u/timmch)\
**Replies:** 2\
**Last updated:** [August 20, 2018, 2:40pm UTC](https://meta.discourse.org/t/resurrecting-a-plugin/95056 "2018-08-20T14:40:20Z")

</div>

With the intention of having a plugin that allows users to rate each other, I am trying to resurrect this plugin that hasn’t been maintained for over a year. It seems like there are some parts of the code that were desig…

---

## [Owners are not assignable when Group created via API call](https://meta.discourse.org/t/owners-are-not-assignable-when-group-created-via-api-call/94913)

<div class="topic-metadata">

**Author:** [@typeoneerror](https://meta.discourse.org/u/typeoneerror)\
**Replies:** 2\
**Last updated:** [August 16, 2018, 8:26pm UTC](https://meta.discourse.org/t/owners-are-not-assignable-when-group-created-via-api-call/94913 "2018-08-16T20:26:33Z")

</div>

NOTE: please see my second post below for the real issue. I am attempting to programatically create groups via the DiscourseApi (ruby gem). The Groups module seems to indicate that owner\_usernames is an optional param: …

---

## [Keeping rails/dev up to date](https://meta.discourse.org/t/keeping-rails-dev-up-to-date/94832)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 5\
**Last updated:** [August 16, 2018, 3:20pm UTC](https://meta.discourse.org/t/keeping-rails-dev-up-to-date/94832 "2018-08-16T15:20:21Z")

</div>

TL;DR Perhaps: Should do git pull in .rbenv and ruby-build if they exist already and then this script can be used to update stuff? Or is there something more obvious that I should be doing? The long, sad story I jus…

---

## [Adding jsonb columns for custom fields](https://meta.discourse.org/t/adding-jsonb-columns-for-custom-fields/93418)

<div class="topic-metadata">

**Author:** [@gdpelican](https://meta.discourse.org/u/gdpelican)\
**Replies:** 17\
**Last updated:** [August 16, 2018, 2:07pm UTC](https://meta.discourse.org/t/adding-jsonb-columns-for-custom-fields/93418 "2018-08-16T14:07:30Z")

</div>

Often times when developing plugins, I’ve had to use the CustomField or PluginRowStore tables to store arbitrary data related to the plugin (for example, retort stores a string representation of reactions to a particular…

---

## [How to install ImageMagick 7 in Ubuntu for Development](https://meta.discourse.org/t/how-to-install-imagemagick-7-in-ubuntu-for-development/94833)

<div class="topic-metadata">

**Author:** [@sam](https://meta.discourse.org/u/sam)\
**Replies:** 0\
**Last updated:** [August 15, 2018, 11:05pm UTC](https://meta.discourse.org/t/how-to-install-imagemagick-7-in-ubuntu-for-development/94833 "2018-08-15T23:05:14Z")

</div>

In case anyone is devloping in Ubuntu, you can not get the correct version of ImageMagick from an apt repo at the moment. This means a few integration tests will regularly fail on local. To get version 7 we have a very…

---

## [Sanity check on DiscourseApi error handling](https://meta.discourse.org/t/sanity-check-on-discourseapi-error-handling/94753)

<div class="topic-metadata">

**Author:** [@typeoneerror](https://meta.discourse.org/u/typeoneerror)\
**Replies:** 1\
**Last updated:** [August 15, 2018, 6:34pm UTC](https://meta.discourse.org/t/sanity-check-on-discourseapi-error-handling/94753 "2018-08-15T18:34:38Z")

</div>

I was having a bit of a hard time getting “errors” responses out of the discourse\_api. I made a quick PR to address this. I’m hoping someone might put some eyeballs on this as a quick sanity check. Is there a way to do w…

---

## [Why is my dev server not showing me uploaded images in Topics?](https://meta.discourse.org/t/why-is-my-dev-server-not-showing-me-uploaded-images-in-topics/94491)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**Replies:** 9\
**Last updated:** [August 15, 2018, 4:29pm UTC](https://meta.discourse.org/t/why-is-my-dev-server-not-showing-me-uploaded-images-in-topics/94491 "2018-08-15T16:29:12Z")

</div>

I’ve just made up 2 dev servers in the cloud in 24 hours (don’t worry, wasn’t focusing the whole time :wink: ) I decided to see if a bigger server would improve performance with a dev install, so the current one is a 4 …

---

## [How to order topics, by the topics which has been commented latest?](https://meta.discourse.org/t/how-to-order-topics-by-the-topics-which-has-been-commented-latest/94677)

<div class="topic-metadata">

**Author:** [@Edwin\_Silva](https://meta.discourse.org/u/Edwin_Silva)\
**Replies:** 2\
**Last updated:** [August 14, 2018, 9:48am UTC](https://meta.discourse.org/t/how-to-order-topics-by-the-topics-which-has-been-commented-latest/94677 "2018-08-14T09:48:13Z")

</div>

Im trying to order my topics based on which one has been commented the latest. I don´t if there is some kind of flag or some built in plugin in discourse, which I can use. I know that you can use the “order” keyword to…

---

## [Adding schemes to markdown linkify](https://meta.discourse.org/t/adding-schemes-to-markdown-linkify/94434)

<div class="topic-metadata">

**Author:** [@ryantm](https://meta.discourse.org/u/ryantm)\
**Replies:** 3\
**Last updated:** [August 10, 2018, 11:24pm UTC](https://meta.discourse.org/t/adding-schemes-to-markdown-linkify/94434 "2018-08-10T23:24:49Z")

</div>

Hi! I would like to add an additional scheme/protocol to the auto Markdown linkifier, because my company uses a custom schema for internal processes. It looks like the feature enabled by default called “enable markdown…

---

## [Unlist a topic via an API request](https://meta.discourse.org/t/unlist-a-topic-via-an-api-request/94308)

<div class="topic-metadata">

**Author:** [@julienrusso](https://meta.discourse.org/u/julienrusso)\
**Replies:** 3\
**Last updated:** [August 10, 2018, 12:24pm UTC](https://meta.discourse.org/t/unlist-a-topic-via-an-api-request/94308 "2018-08-10T12:24:10Z")

</div>

Hello, I have a question. I try to unlist a topic from a category using the API. When I try to call this request: {{base\_url}}/t/my-super-topic/12/status?api\_key={{api\_key}}&api\_username={{api\_username}} using a PUT r…

---

## [Is 'post' the correct serializer to use when one wants to access extra data via decorateWidget with post-avatar:after?](https://meta.discourse.org/t/is-post-the-correct-serializer-to-use-when-one-wants-to-access-extra-data-via-decoratewidget-with-post-avatar-after/94249)

<div class="topic-metadata">

**Author:** [@jezra](https://meta.discourse.org/u/jezra)\
**Replies:** 2\
**Last updated:** [August 8, 2018, 11:29pm UTC](https://meta.discourse.org/t/is-post-the-correct-serializer-to-use-when-one-wants-to-access-extra-data-via-decoratewidget-with-post-avatar-after/94249 "2018-08-08T23:29:12Z")

</div>

I was hoping to add information to posts in the plugin.rb file using add\_to\_serializer, and then access that data in my plugin’s default initializer file using decorateWidget from the api. My plugin.rb contains after\_i…

---

## [How to add Custom Field on Topics by category](https://meta.discourse.org/t/how-to-add-custom-field-on-topics-by-category/94228)

<div class="topic-metadata">

**Author:** [@Menzer](https://meta.discourse.org/u/Menzer)\
**Replies:** 0\
**Last updated:** [August 8, 2018, 6:13pm UTC](https://meta.discourse.org/t/how-to-add-custom-field-on-topics-by-category/94228 "2018-08-08T18:13:31Z")

</div>

I would like to understand how to create a custom field for topics depending on category (I’d like to be able to select which categories this Custom Field will be visible. Ideally I would like 2 custom fields 1 Text fi…

---

## [Some things I've built which you can use](https://meta.discourse.org/t/some-things-ive-built-which-you-can-use/93075)

<div class="topic-metadata">

**Author:** [@angus](https://meta.discourse.org/u/angus)\
**Replies:** 6\
**Last updated:** [August 8, 2018, 5:59pm UTC](https://meta.discourse.org/t/some-things-ive-built-which-you-can-use/93075 "2018-08-08T17:59:57Z")

</div>

I recently finished building v0.1 of my own site which is Discourse + 30-odd plugins: https://civically.io/ Many of the plugins it uses are not ‘released’ here on meta as they contain functionality specific to my site. …

---

## [How to display data beneath the user's avatar?](https://meta.discourse.org/t/how-to-display-data-beneath-the-users-avatar/93815)

<div class="topic-metadata">

**Author:** [@jezra](https://meta.discourse.org/u/jezra)\
**Replies:** 8\
**Last updated:** [August 6, 2018, 11:55pm UTC](https://meta.discourse.org/t/how-to-display-data-beneath-the-users-avatar/93815 "2018-08-06T23:55:16Z")

</div>

I am trying to display some externally generated user data below the user’s avatar. Currently, the data is stored in a custom user field of type ‘text’ and the field is populated via an API call as well as during SSO. N…

---

## [How do I extend the user summary with Plugin Store data](https://meta.discourse.org/t/how-do-i-extend-the-user-summary-with-plugin-store-data/93856)

<div class="topic-metadata">

**Author:** [@timmch](https://meta.discourse.org/u/timmch)\
**Replies:** 3\
**Last updated:** [August 4, 2018, 1:45am UTC](https://meta.discourse.org/t/how-do-i-extend-the-user-summary-with-plugin-store-data/93856 "2018-08-04T01:45:15Z")

</div>

Hi, I’m trying to create a plugin that will enable users to endorse each other (writing a brief testimonial for someone else). The results I am going for is pictured below :point\_down: I am thinking to add a section …

---

## [Is Discourse upgraded to Rails 5.2?](https://meta.discourse.org/t/is-discourse-upgraded-to-rails-5-2/93725)

<div class="topic-metadata">

**Author:** [@nishanth\_kadapakonda](https://meta.discourse.org/u/nishanth_kadapakonda)\
**Replies:** 1\
**Last updated:** [August 2, 2018, 12:51pm UTC](https://meta.discourse.org/t/is-discourse-upgraded-to-rails-5-2/93725 "2018-08-02T12:51:33Z")

</div>

Hi Team, Is Discourse latest code base upgraded to Rails 5? or just the below frame works are updated gem ‘actionmailer’, ‘5.2’ gem ‘actionpack’, ‘5.2’ gem ‘actionview’, ‘5.2’ gem ‘activemodel’, ‘5.2’ gem ‘activer…

---

## [Pass env file to dev image?](https://meta.discourse.org/t/pass-env-file-to-dev-image/88925)

<div class="topic-metadata">

**Author:** [@mmayo](https://meta.discourse.org/u/mmayo)\
**Replies:** 2\
**Last updated:** [July 31, 2018, 9:39pm UTC](https://meta.discourse.org/t/pass-env-file-to-dev-image/88925 "2018-07-31T21:39:50Z")

</div>

I don’t see an obvious way to pass environment variables to the dev image, maybe I am missing something? If no such mechanism exists, would Discourse be open to a PR providing the option in the boot\_dev script? Somethin…

---

## [Disable tags sanitizing](https://meta.discourse.org/t/disable-tags-sanitizing/93316)

<div class="topic-metadata">

**Author:** [@StYas](https://meta.discourse.org/u/StYas)\
**Replies:** 2\
**Last updated:** [July 30, 2018, 7:05pm UTC](https://meta.discourse.org/t/disable-tags-sanitizing/93316 "2018-07-30T19:05:07Z")

</div>

Hello! I need to migrate from one forum system to Discourse. I move posts with Discourse api /posts.json. Some posts have html tags in bodies. How can I temporarily disable discourse baking with sanitizing? Or how can I …

---

## [Plugin API's design](https://meta.discourse.org/t/plugin-apis-design/93406)

<div class="topic-metadata">

**Author:** [@dan](https://meta.discourse.org/u/dan)\
**Replies:** 0\
**Last updated:** [July 29, 2018, 10:47am UTC](https://meta.discourse.org/t/plugin-apis-design/93406 "2018-07-29T10:47:38Z")

</div>

Hello, Recently I have been looking into this issue and figured out that the fix is as easy as adding an element into an array. However, the plugin API does not provide the desired hooks yet. I thought that I could add …

---

## [Custom Fields Post Topic on specific categories](https://meta.discourse.org/t/custom-fields-post-topic-on-specific-categories/93301)

<div class="topic-metadata">

**Author:** [@Menzer](https://meta.discourse.org/u/Menzer)\
**Replies:** 1\
**Last updated:** [July 27, 2018, 4:36pm UTC](https://meta.discourse.org/t/custom-fields-post-topic-on-specific-categories/93301 "2018-07-27T16:36:14Z")

</div>

I know the question has been asked before but I don’t seem to find a solution so let me see if anyone canhelp I would like to create a couple of fields on topics within a specific category. 2 fields to start off with, …

---

## [Custom Field not working](https://meta.discourse.org/t/custom-field-not-working/89983)

<div class="topic-metadata">

**Author:** [@Sanjay1](https://meta.discourse.org/u/Sanjay1)\
**Replies:** 21\
**Last updated:** [July 26, 2018, 11:08am UTC](https://meta.discourse.org/t/custom-field-not-working/89983 "2018-07-26T11:08:11Z")

</div>

Hi All, I am fairly new to discourse and I am attempting to add a customs field but I am not able to, Could someone please help me. My code after\_initialize do module ::Foo PLUGIN\_NAME ||= -"discourse-myapi" …

---

## [Pointers for building a plugin for browser fingerprinting](https://meta.discourse.org/t/pointers-for-building-a-plugin-for-browser-fingerprinting/49683)

<div class="topic-metadata">

**Author:** [@carmalonso](https://meta.discourse.org/u/carmalonso)\
**Replies:** 4\
**Last updated:** [July 24, 2018, 8:00pm UTC](https://meta.discourse.org/t/pointers-for-building-a-plugin-for-browser-fingerprinting/49683 "2018-07-24T20:00:05Z")

</div>

Based on the discussion from my thread: I decided to try my hand at building a plugin that would help prevent suspended users from returning by blocking their browser fingerprint (see panopticlick.eff.org). My plan for…

---

## [Insert ad above category in homepage](https://meta.discourse.org/t/insert-ad-above-category-in-homepage/93003)

<div class="topic-metadata">

**Author:** [@eldy](https://meta.discourse.org/u/eldy)\
**Replies:** 0\
**Last updated:** [July 24, 2018, 1:41pm UTC](https://meta.discourse.org/t/insert-ad-above-category-in-homepage/93003 "2018-07-24T13:41:29Z")

</div>

I think I must manually edit the template file to insert a block of code? the CTR is really low compare to my other wordpress site, the default adsense plugin isn’t that good. How can I insert a 300 ad block into my home…

---

## [Advice on how to build a scraping / posting plugin](https://meta.discourse.org/t/advice-on-how-to-build-a-scraping-posting-plugin/92901)

<div class="topic-metadata">

**Author:** [@bletch](https://meta.discourse.org/u/bletch)\
**Replies:** 7\
**Last updated:** [July 24, 2018, 12:52pm UTC](https://meta.discourse.org/t/advice-on-how-to-build-a-scraping-posting-plugin/92901 "2018-07-24T12:52:56Z")

</div>

I’m looking to build a plugin that periodically searches the web / Twitter / Facebook / Instagram / etc for relevant news and then creates summary posts in Discourse. Can anyone point me at a plugin or a part of core th…

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

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