# Development

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

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

**Page:** 85

---

## [NotFoundError: Node.removeChild: The node to be removed is not a child of this node](https://meta.discourse.org/t/notfounderror-node-removechild-the-node-to-be-removed-is-not-a-child-of-this-node/154739)

<div class="topic-metadata">

**Author:** [@magjac](https://meta.discourse.org/u/magjac)\
**Replies:** 6\
**Last updated:** [October 28, 2020, 9:38am UTC](https://meta.discourse.org/t/notfounderror-node-removechild-the-node-to-be-removed-is-not-a-child-of-this-node/154739 "2020-10-28T09:38:10Z")

</div>

I’ve developed a theme component: https://github.com/magjac/discourse-d3-graphviz It replaces BBCode with SVG. This works also in the editor preview. My problem is that in some cases I get an error when I type a chara…

---

## [Modify Ember model class using Theme Component](https://meta.discourse.org/t/modify-ember-model-class-using-theme-component/168490)

<div class="topic-metadata">

**Author:** [@Saurabh\_Khandelwal](https://meta.discourse.org/u/Saurabh_Khandelwal)\
**Replies:** 1\
**Last updated:** [October 28, 2020, 8:10am UTC](https://meta.discourse.org/t/modify-ember-model-class-using-theme-component/168490 "2020-10-28T08:10:49Z")

</div>

Hi All, I want to modify below mention method of topic model class javascripts/discourse/app/models/topic.js @discourseComputed("excerpt") excerptTruncated(excerpt) { return excerpt && excerpt.substr(…

---

## [Auto Tagging feature plugin](https://meta.discourse.org/t/auto-tagging-feature-plugin/168321)

<div class="topic-metadata">

**Author:** [@feabila](https://meta.discourse.org/u/feabila)\
**Replies:** 0\
**Last updated:** [October 26, 2020, 8:19pm UTC](https://meta.discourse.org/t/auto-tagging-feature-plugin/168321 "2020-10-26T20:19:06Z")

</div>

Hi everyone! I’m creating a system which tags are created automatically, so every person could create tags! About this matter: Tags are create in form of topic creation If there isn’t a tag in which the person mention…

---

## [Should I recreate Google Adsense Plugin?](https://meta.discourse.org/t/should-i-recreate-google-adsense-plugin/47803)

<div class="topic-metadata">

**Author:** [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Replies:** 3\
**Last updated:** [October 25, 2020, 8:25pm UTC](https://meta.discourse.org/t/should-i-recreate-google-adsense-plugin/47803 "2020-10-25T20:25:51Z")

</div>

I need new features in existing Google Adsense plugin. Should I add new features to existing Google Adsense Plugin or Can I recreate new plugin myself with new repo? Google introduced many new features in Adsense. But …

---

## [Spawn navigation on topic pages](https://meta.discourse.org/t/spawn-navigation-on-topic-pages/168094)

<div class="topic-metadata">

**Author:** [@Stanzilla](https://meta.discourse.org/u/Stanzilla)\
**Replies:** 2\
**Last updated:** [October 24, 2020, 1:33pm UTC](https://meta.discourse.org/t/spawn-navigation-on-topic-pages/168094 "2020-10-24T13:33:47Z")

</div>

Hey there, I’m looking for way to spawn the navigation cluster on topic pages, what would be the easiest way to do that?

---

## [Discourse\_api URL not found error](https://meta.discourse.org/t/discourse-api-url-not-found-error/168071)

<div class="topic-metadata">

**Author:** [@DiscourseMetrics](https://meta.discourse.org/u/DiscourseMetrics)\
**Replies:** 4\
**Last updated:** [October 23, 2020, 10:29pm UTC](https://meta.discourse.org/t/discourse-api-url-not-found-error/168071 "2020-10-23T22:29:44Z")

</div>

Hi everyone, I’m attempting to use the discourse\_api gem: client = DiscourseApi::Client.new("https://\<mysite\>.com") client.api\_key = "\<my global key\>" client.api\_username = "system" ..as the basic setup, then client.…

---

## [Automatically adding theme scripts to CSP](https://meta.discourse.org/t/automatically-adding-theme-scripts-to-csp/149028)

<div class="topic-metadata">

**Author:** [@david](https://meta.discourse.org/u/david)\
**Replies:** 3\
**Last updated:** [October 23, 2020, 1:02pm UTC](https://meta.discourse.org/t/automatically-adding-theme-scripts-to-csp/149028 "2020-10-23T13:02:01Z")

</div>

We often see support topics from people trying to add external javascript references to their themes. By default, the content security policy will block this, and the admin has to manually add the script to the CSP site …

---

## [Skip "Authorize application access"](https://meta.discourse.org/t/skip-authorize-application-access/167845)

<div class="topic-metadata">

**Author:** [@bamthomas](https://meta.discourse.org/u/bamthomas)\
**Replies:** 5\
**Last updated:** [October 21, 2020, 4:22pm UTC](https://meta.discourse.org/t/skip-authorize-application-access/167845 "2020-10-21T16:22:31Z")

</div>

We are using discourse as a collaboration tool and we have another app to search documents. We would like to integrate comments about documents into discourse. Both are using an external SSO/Oauth provider inside our inf…

---

## [Creating a Topic using Ruby](https://meta.discourse.org/t/creating-a-topic-using-ruby/167556)

<div class="topic-metadata">

**Author:** [@csmu](https://meta.discourse.org/u/csmu)\
**Replies:** 6\
**Last updated:** [October 20, 2020, 6:22am UTC](https://meta.discourse.org/t/creating-a-topic-using-ruby/167556 "2020-10-20T06:22:32Z")

</div>

G’day I’m looking for some sample ruby code to create a topic with tags, in a category with one boxing of links where possible. Is there a repository of example ruby code to use with Discourse? Cheers and thanks!

---

## [Best way to dynamically render an arbitrary post from a plugin](https://meta.discourse.org/t/best-way-to-dynamically-render-an-arbitrary-post-from-a-plugin/167678)

<div class="topic-metadata">

**Author:** [@syl](https://meta.discourse.org/u/syl)\
**Replies:** 1\
**Last updated:** [October 19, 2020, 9:16pm UTC](https://meta.discourse.org/t/best-way-to-dynamically-render-an-arbitrary-post-from-a-plugin/167678 "2020-10-19T21:16:29Z")

</div>

In my DiscPage plugin, client-side, when a user is on the tag route, I need to render a specific post in a dynamically created div. I load the post using the API, but then I have trouble rendering it correctly (fully coo…

---

## [How do you customize payload when using webhooks?](https://meta.discourse.org/t/how-do-you-customize-payload-when-using-webhooks/167442)

<div class="topic-metadata">

**Author:** [@dipsiiiiiiiiii](https://meta.discourse.org/u/dipsiiiiiiiiii)\
**Replies:** 0\
**Last updated:** [October 17, 2020, 2:05pm UTC](https://meta.discourse.org/t/how-do-you-customize-payload-when-using-webhooks/167442 "2020-10-17T14:05:08Z")

</div>

Hello developers all over the world! I’m trying to connect discourse to slack using webhooks. I’ve done most of things but only one thing is left. when you create a new topic in discourse, you send payload which has a…

---

## [Non-discovery API Pagination](https://meta.discourse.org/t/non-discovery-api-pagination/167330)

<div class="topic-metadata">

**Author:** [@angus](https://meta.discourse.org/u/angus)\
**Replies:** 0\
**Last updated:** [October 16, 2020, 1:14am UTC](https://meta.discourse.org/t/non-discovery-api-pagination/167330 "2020-10-16T01:14:36Z")

</div>

I’ve recently been doing some work with the groups api and have some thoughts on pagination, specifically in the non-discovery context. The context For clarity, by the “discovery context” I mean the pagination in list\_c…

---

## [How to make a custom search bar?](https://meta.discourse.org/t/how-to-make-a-custom-search-bar/167184)

<div class="topic-metadata">

**Author:** [@pkundr](https://meta.discourse.org/u/pkundr)\
**Replies:** 9\
**Last updated:** [October 15, 2020, 11:58am UTC](https://meta.discourse.org/t/how-to-make-a-custom-search-bar/167184 "2020-10-15T11:58:12Z")

</div>

I have been trying to build a custom search bar similar to the discourse-search-banner plugin. I don’t want to use that plugin as it interferes with the appearance of my theme. How can I mirror that functionality to a \<i…

---

## [Rake db:migrate should LOAD\_PLUGINS by default](https://meta.discourse.org/t/rake-db-migrate-should-load-plugins-by-default/167151)

<div class="topic-metadata">

**Author:** [@fzngagan](https://meta.discourse.org/u/fzngagan)\
**Replies:** 4\
**Last updated:** [October 14, 2020, 7:19am UTC](https://meta.discourse.org/t/rake-db-migrate-should-load-plugins-by-default/167151 "2020-10-14T07:19:20Z")

</div>

We at Pavilion have had issues running/debugging tests and saw errors with the poll plugin while running tests. We use to think its some issue with the plugin itself but its not. The issue was that the migrations of pol…

---

## [Class connector for adding button to post](https://meta.discourse.org/t/class-connector-for-adding-button-to-post/167089)

<div class="topic-metadata">

**Author:** [@adopilot](https://meta.discourse.org/u/adopilot)\
**Replies:** 1\
**Last updated:** [October 13, 2020, 2:03pm UTC](https://meta.discourse.org/t/class-connector-for-adding-button-to-post/167089 "2020-10-13T14:03:12Z")

</div>

I am trying to make colne of this plugin: Custom Topic Button (group) I am trying to add button at every single post , not topics. But I do not know how to set my class connectors for injecting buttons or icons into po…

---

## [Sign-up and Login via custom API - Will it work properly?](https://meta.discourse.org/t/sign-up-and-login-via-custom-api-will-it-work-properly/166912)

<div class="topic-metadata">

**Author:** [@Stefan\_Brighiu\_M](https://meta.discourse.org/u/Stefan_Brighiu_M)\
**Replies:** 1\
**Last updated:** [October 11, 2020, 7:44pm UTC](https://meta.discourse.org/t/sign-up-and-login-via-custom-api-will-it-work-properly/166912 "2020-10-11T19:44:55Z")

</div>

In our case, we have a need to just use Discourse as a backend only (+ more or less like a CMS). I’ve exposed the routes for sign-up and log-in using: skip\_before\_action :redirect\_to\_login\_if\_required, raise: false s…

---

## [How to fetch topics ordered by custom field iso8601 value?](https://meta.discourse.org/t/how-to-fetch-topics-ordered-by-custom-field-iso8601-value/166343)

<div class="topic-metadata">

**Author:** [@Stefan\_Brighiu\_M](https://meta.discourse.org/u/Stefan_Brighiu_M)\
**Replies:** 19\
**Last updated:** [October 11, 2020, 4:06pm UTC](https://meta.discourse.org/t/how-to-fetch-topics-ordered-by-custom-field-iso8601-value/166343 "2020-10-11T16:06:41Z")

</div>

Hi, I’ve come across a weird query which i don’t really know how to wrap my head around doing only with a sql/active record query. I have topics with custom fields, and i need to sort data using the value of ‘importedS…

---

## [Custom AI Content Moderation](https://meta.discourse.org/t/custom-ai-content-moderation/166783)

<div class="topic-metadata">

**Author:** [@Razcle](https://meta.discourse.org/u/Razcle)\
**Replies:** 3\
**Last updated:** [October 10, 2020, 3:07am UTC](https://meta.discourse.org/t/custom-ai-content-moderation/166783 "2020-10-10T03:07:09Z")

</div>

Hi everyone! I’m a machine learning PhD and I’ve been thinking about building a tool to let anyone train a custom AI to help with content moderation on the discourse forums. Is this something that people here would want…

---

## [Composer Model - EmberObject - RestModel](https://meta.discourse.org/t/composer-model-emberobject-restmodel/166714)

<div class="topic-metadata">

**Author:** [@feabila](https://meta.discourse.org/u/feabila)\
**Replies:** 0\
**Last updated:** [October 8, 2020, 9:51pm UTC](https://meta.discourse.org/t/composer-model-emberobject-restmodel/166714 "2020-10-08T21:51:31Z")

</div>

Hi everyone! I got into problem which there will be more than one composer opened in the same page as well. Idea is that when click in “Comentar” on topic list item, it will open this box with the composer which the user…

---

## [How to customize the user dropdown menu?](https://meta.discourse.org/t/how-to-customize-the-user-dropdown-menu/58257)

<div class="topic-metadata">

**Author:** [@tophee](https://meta.discourse.org/u/tophee)\
**Replies:** 10\
**Last updated:** [October 8, 2020, 9:35am UTC](https://meta.discourse.org/t/how-to-customize-the-user-dropdown-menu/58257 "2020-10-08T09:35:33Z")

</div>

I would like to add a direct link to the users activity page to the user dropdown menu, either as an icon: Or as text. How do I do it?

---

## [Override class list](https://meta.discourse.org/t/override-class-list/166310)

<div class="topic-metadata">

**Author:** [@colinbethea](https://meta.discourse.org/u/colinbethea)\
**Replies:** 2\
**Last updated:** [October 6, 2020, 8:03pm UTC](https://meta.discourse.org/t/override-class-list/166310 "2020-10-06T20:03:57Z")

</div>

Currently working out of an initializer for my custom plugin - I want to be able to add an arbitrary class (locked-category) for each locked category, but can’t quite figure out how. I’m aware that I can edit the templa…

---

## [Micro Forums: how many could I create?](https://meta.discourse.org/t/micro-forums-how-many-could-i-create/166304)

<div class="topic-metadata">

**Author:** [@David\_Razidlo1](https://meta.discourse.org/u/David_Razidlo1)\
**Replies:** 6\
**Last updated:** [October 5, 2020, 11:24pm UTC](https://meta.discourse.org/t/micro-forums-how-many-could-i-create/166304 "2020-10-05T23:24:56Z")

</div>

I am looking into 3rd party software to handle what amounts to a need for a large number of very small forums. We have our own custom solution but would love it if this is something discourse could handle. Basically it …

---

## [Tags (create/select) on typing in topic creation](https://meta.discourse.org/t/tags-create-select-on-typing-in-topic-creation/166296)

<div class="topic-metadata">

**Author:** [@feabila](https://meta.discourse.org/u/feabila)\
**Replies:** 0\
**Last updated:** [October 5, 2020, 7:11pm UTC](https://meta.discourse.org/t/tags-create-select-on-typing-in-topic-creation/166296 "2020-10-05T19:11:10Z")

</div>

Hi everyone! I’m working in a case where tags will work like in Twitter! So, It would be possible to type “#” then the user could select the tag, or in case which doesn’t exist, I would create. In discourse topic creat…

---

## [Table to list items or divs](https://meta.discourse.org/t/table-to-list-items-or-divs/166115)

<div class="topic-metadata">

**Author:** [@listitems](https://meta.discourse.org/u/listitems)\
**Replies:** 3\
**Last updated:** [October 5, 2020, 11:03am UTC](https://meta.discourse.org/t/table-to-list-items-or-divs/166115 "2020-10-05T11:03:17Z")

</div>

Hello all. I am new to Discourse. I am trying to create a theme component to replace the table elements used (table, tbody, th, tr, td) with list items (ol/ul, li) or failing that just div tags. I have so far managed to…

---

## [Extend Application actions to add showUserCard](https://meta.discourse.org/t/extend-application-actions-to-add-showusercard/166222)

<div class="topic-metadata">

**Author:** [@sonicb](https://meta.discourse.org/u/sonicb)\
**Replies:** 0\
**Last updated:** [October 4, 2020, 10:02pm UTC](https://meta.discourse.org/t/extend-application-actions-to-add-showusercard/166222 "2020-10-04T22:02:04Z")

</div>

I am creating a custom user menu tab in the burger-bar, similar to the Discourse User Menu Tab theme component and would like to add an item that displays the current user card component. I have the item defined like so: …

---

## [Possible to attach event handlers to widgets in theme/plugin?](https://meta.discourse.org/t/possible-to-attach-event-handlers-to-widgets-in-theme-plugin/166204)

<div class="topic-metadata">

**Author:** [@dchouinard](https://meta.discourse.org/u/dchouinard)\
**Replies:** 5\
**Last updated:** [October 4, 2020, 5:56pm UTC](https://meta.discourse.org/t/possible-to-attach-event-handlers-to-widgets-in-theme-plugin/166204 "2020-10-04T17:56:53Z")

</div>

Hi, I’m looking to add a click handler to items in the main topic list (to add custom behavior under some conditions). Is it possible to use something like api.decorateWidget() to add an event handler to every instance …

---

## [Change hostname using API](https://meta.discourse.org/t/change-hostname-using-api/166067)

<div class="topic-metadata">

**Author:** [@Retes88t](https://meta.discourse.org/u/Retes88t)\
**Replies:** 1\
**Last updated:** [October 4, 2020, 4:30pm UTC](https://meta.discourse.org/t/change-hostname-using-api/166067 "2020-10-04T16:30:03Z")

</div>

I’m trying to change the hostname parameter, but the API returns “not allowed”, I don’t know what need to be able to change this value through API

---

## [Add a tag notification level button with ember](https://meta.discourse.org/t/add-a-tag-notification-level-button-with-ember/166194)

<div class="topic-metadata">

**Author:** [@oca](https://meta.discourse.org/u/oca)\
**Replies:** 0\
**Last updated:** [October 4, 2020, 2:06pm UTC](https://meta.discourse.org/t/add-a-tag-notification-level-button-with-ember/166194 "2020-10-04T14:06:23Z")

</div>

I would like to display on the front page a theme component that would present show tags and their notification level (bell) button right next to it. (So people would actually use the tag notification feature). I’ve bee…

---

## [Change background colour of Brand Header](https://meta.discourse.org/t/change-background-colour-of-brand-header/312667)

<div class="topic-metadata">

**Author:** [@salmanfarisvp](https://meta.discourse.org/u/salmanfarisvp)\
**Replies:** 2\
**Last updated:** [October 3, 2020, 5:55pm UTC](https://meta.discourse.org/t/change-background-colour-of-brand-header/312667 "2020-10-03T17:55:21Z")

</div>

How to change the background colour default blue to other?

---

## [Calling Python scripts w/ arguments on the backend via plugin?](https://meta.discourse.org/t/calling-python-scripts-w-arguments-on-the-backend-via-plugin/165984)

<div class="topic-metadata">

**Author:** [@leighno5](https://meta.discourse.org/u/leighno5)\
**Replies:** 2\
**Last updated:** [October 2, 2020, 4:29pm UTC](https://meta.discourse.org/t/calling-python-scripts-w-arguments-on-the-backend-via-plugin/165984 "2020-10-02T16:29:04Z")

</div>

Let’s get this out of the way: I’m NOT a front-end guy at all. That said, I’ve written a Python script that runs on the same instance as my Discourse install, and upon execution certain methods take in arguments from the…

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

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