# Development

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

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

**Page:** 97

---

## [Newbie Discourse plugin developer questions](https://meta.discourse.org/t/newbie-discourse-plugin-developer-questions/143977)

<div class="topic-metadata">

**Author:** [@garyrob](https://meta.discourse.org/u/garyrob)\
**Replies:** 1\
**Last updated:** [March 12, 2020, 4:35pm UTC](https://meta.discourse.org/t/newbie-discourse-plugin-developer-questions/143977 "2020-03-12T16:35:03Z")

</div>

Can I write a plugin for discourse, to appear only in the Discourse comments on my own web site, and still use the hosted Discourse service? Or would I need to run my own Discourse server instance for that? Can a p…

---

## [How do you force a script to refire on every page load in Discourse?](https://meta.discourse.org/t/how-do-you-force-a-script-to-refire-on-every-page-load-in-discourse/74856)

<div class="topic-metadata">

**Author:** [@Johani](https://meta.discourse.org/u/Johani)\
**Replies:** 38\
**Last updated:** [March 12, 2020, 2:21pm UTC](https://meta.discourse.org/t/how-do-you-force-a-script-to-refire-on-every-page-load-in-discourse/74856 "2020-03-12T14:21:02Z")

</div>

One the most amazing things about Discourse is that it is a Single Page Application. The page is loaded once and the content is swapped on demand - This is my understanding. I was trying to integrate Masonry with Discou…

---

## [Customisations to the admin dropdown](https://meta.discourse.org/t/customisations-to-the-admin-dropdown/143894)

<div class="topic-metadata">

**Author:** [@stevenhardy](https://meta.discourse.org/u/stevenhardy)\
**Replies:** 2\
**Last updated:** [March 12, 2020, 1:58pm UTC](https://meta.discourse.org/t/customisations-to-the-admin-dropdown/143894 "2020-03-12T13:58:52Z")

</div>

Hello, I am wondering if someone can help me, I have been going around in circles a little bit. Does anyone know how i can change the admin panel to a custom design, please? I have included a screenshot of what I mean. …

---

## [Transparent header until scroll down](https://meta.discourse.org/t/transparent-header-until-scroll-down/143791)

<div class="topic-metadata">

**Author:** [@Tim\_Jefferies](https://meta.discourse.org/u/Tim_Jefferies)\
**Replies:** 1\
**Last updated:** [March 12, 2020, 5:08am UTC](https://meta.discourse.org/t/transparent-header-until-scroll-down/143791 "2020-03-12T05:08:12Z")

</div>

I’d like to have the header be transparent when at the top of the page, and then when the user scrolls down it becomes white. I tried adding this javascript code in the ‘edit CSS/HTML’ of the \</body\> section as follows: …

---

## [Bottlerocket for Linux containers, an interesting Amazon Web Services development](https://meta.discourse.org/t/bottlerocket-for-linux-containers-an-interesting-amazon-web-services-development/143897)

<div class="topic-metadata">

**Author:** [@D8vid](https://meta.discourse.org/u/D8vid)\
**Replies:** 2\
**Last updated:** [March 11, 2020, 9:26pm UTC](https://meta.discourse.org/t/bottlerocket-for-linux-containers-an-interesting-amazon-web-services-development/143897 "2020-03-11T21:26:54Z")

</div>

From Phoronix, Amazon AWS Launches Linux-Based Bottlerocket For Hosting Containers, and the Amazon AWS blog, Bottlerocket – Open Source OS for Container Hosting (supports Docker image and images that conform to the Open …

---

## [Seeking developers to create Discourse video podcasts for a STEM platform](https://meta.discourse.org/t/seeking-developers-to-create-discourse-video-podcasts-for-a-stem-platform/143935)

<div class="topic-metadata">

**Author:** [@debaleena\_das](https://meta.discourse.org/u/debaleena_das)\
**Replies:** 0\
**Last updated:** [March 11, 2020, 4:38pm UTC](https://meta.discourse.org/t/seeking-developers-to-create-discourse-video-podcasts-for-a-stem-platform/143935 "2020-03-11T16:38:05Z")

</div>

We are looking for Discourse enthusiasts to host webinars for our students and/or provide technical mentorship. Webinars are post edited to capture best shots and converted to video podcasts. Our goal is to introduce st…

---

## [Possible to override another plugin's settings? (narrative bot)](https://meta.discourse.org/t/possible-to-override-another-plugins-settings-narrative-bot/143925)

<div class="topic-metadata">

**Author:** [@jamesmarkcook](https://meta.discourse.org/u/jamesmarkcook)\
**Replies:** 4\
**Last updated:** [March 11, 2020, 3:48pm UTC](https://meta.discourse.org/t/possible-to-override-another-plugins-settings-narrative-bot/143925 "2020-03-11T15:48:08Z")

</div>

I’m building a plugin for a client and need to ensure that certain settings are configured on deployment. Narrative bot is essentially a core part of Discourse now, but is itself a plugin. I suspect that overriding sett…

---

## [Is mini\_suffix gem still supported?](https://meta.discourse.org/t/is-mini-suffix-gem-still-supported/143854)

<div class="topic-metadata">

**Author:** [@runlevel5](https://meta.discourse.org/u/runlevel5)\
**Replies:** 1\
**Last updated:** [March 10, 2020, 11:33pm UTC](https://meta.discourse.org/t/is-mini-suffix-gem-still-supported/143854 "2020-03-10T23:33:18Z")

</div>

Hi community I would like to ask if the discourse/mini\_suffix gem is still being maintained. I’ve submitted a PR to add ppc64le linux libsp library to this project but unable to tag the original author Guo Xing Tan for …

---

## [Custom image based on tag?](https://meta.discourse.org/t/custom-image-based-on-tag/143717)

<div class="topic-metadata">

**Author:** [@eextra](https://meta.discourse.org/u/eextra)\
**Replies:** 3\
**Last updated:** [March 10, 2020, 12:12pm UTC](https://meta.discourse.org/t/custom-image-based-on-tag/143717 "2020-03-10T12:12:15Z")

</div>

How to add image to a post only by means of using a tag ? (tag: image1 =\> image1.png in post)

---

## [Discourse API Uploads](https://meta.discourse.org/t/discourse-api-uploads/134545)

<div class="topic-metadata">

**Author:** [@Robert\_Work](https://meta.discourse.org/u/Robert_Work)\
**Replies:** 1\
**Last updated:** [March 9, 2020, 11:20pm UTC](https://meta.discourse.org/t/discourse-api-uploads/134545 "2020-03-09T23:20:21Z")

</div>

Hello! I have a question about how I can using Python3 upload a file. I tried to do something like that, but I still get error. \> import requests headers = { 'content-type': 'multipart/form-data', #application/x-ww…

---

## [Create Topic from Google App Script](https://meta.discourse.org/t/create-topic-from-google-app-script/143704)

<div class="topic-metadata">

**Author:** [@Krischan](https://meta.discourse.org/u/Krischan)\
**Replies:** 0\
**Last updated:** [March 9, 2020, 3:51pm UTC](https://meta.discourse.org/t/create-topic-from-google-app-script/143704 "2020-03-09T15:51:19Z")

</div>

I’d like to create topics from a Google spreadsheet using Google App Script. My code looks like this, but I get a error message (400) when I run it: function publishspeaker() { var url = "https://1e9.community/posts.js…

---

## [How to add user data to the post serializer?](https://meta.discourse.org/t/how-to-add-user-data-to-the-post-serializer/143523)

<div class="topic-metadata">

**Author:** [@bennett](https://meta.discourse.org/u/bennett)\
**Replies:** 1\
**Last updated:** [March 6, 2020, 7:35pm UTC](https://meta.discourse.org/t/how-to-add-user-data-to-the-post-serializer/143523 "2020-03-06T19:35:40Z")

</div>

I’m trying to create a theme or plugin that will let me add and update links in the post widget. I think the easiest approach would be to include the website field from the user profile in the post serializer, but I can’…

---

## [Topic duplicate](https://meta.discourse.org/t/topic-duplicate/143499)

<div class="topic-metadata">

**Author:** [@Sasha\_Pakulev](https://meta.discourse.org/u/Sasha_Pakulev)\
**Replies:** 1\
**Last updated:** [March 6, 2020, 4:45pm UTC](https://meta.discourse.org/t/topic-duplicate/143499 "2020-03-06T16:45:32Z")

</div>

We use api for topic posting and somehow created two topics in one category with same name (this function is disabled in settings). And if I understand correctly, as a response on such post request we get duplicate topic…

---

## [Approving a new user with ruby console](https://meta.discourse.org/t/approving-a-new-user-with-ruby-console/143478)

<div class="topic-metadata">

**Author:** [@csmu](https://meta.discourse.org/u/csmu)\
**Replies:** 1\
**Last updated:** [March 6, 2020, 6:21am UTC](https://meta.discourse.org/t/approving-a-new-user-with-ruby-console/143478 "2020-03-06T06:21:07Z")

</div>

When I create a new user and activate the user in ruby console I end up with a request for approval in the Graphical user Interface (GUI). How do you approve a new user in ruby console?

---

## [How to create template helper in Discourse](https://meta.discourse.org/t/how-to-create-template-helper-in-discourse/143408)

<div class="topic-metadata">

**Author:** [@saurabhmasc](https://meta.discourse.org/u/saurabhmasc)\
**Replies:** 2\
**Last updated:** [March 6, 2020, 4:57am UTC](https://meta.discourse.org/t/how-to-create-template-helper-in-discourse/143408 "2020-03-06T04:57:37Z")

</div>

I want to compare two values in the handlebar template. This cannot be done using {{#if}} helper. So how can I create a new helper in Discourse? I have tried below code but not working: Created FIle: /assets/javascript…

---

## [Plugin to add button to post content](https://meta.discourse.org/t/plugin-to-add-button-to-post-content/143463)

<div class="topic-metadata">

**Author:** [@reoguy55](https://meta.discourse.org/u/reoguy55)\
**Replies:** 1\
**Last updated:** [March 5, 2020, 11:28pm UTC](https://meta.discourse.org/t/plugin-to-add-button-to-post-content/143463 "2020-03-05T23:28:32Z")

</div>

Hello! My discourse community is for a programming class, and we’ve been thinking about trying to develop our own plugin. Our goal is to add a button to posts that contain fenced code blocks in Java (and eventually may…

---

## [Is Docker generally solid enough for production deployment?](https://meta.discourse.org/t/is-docker-generally-solid-enough-for-production-deployment/143416)

<div class="topic-metadata">

**Author:** [@waverider](https://meta.discourse.org/u/waverider)\
**Replies:** 4\
**Last updated:** [March 5, 2020, 6:52pm UTC](https://meta.discourse.org/t/is-docker-generally-solid-enough-for-production-deployment/143416 "2020-03-05T18:52:25Z")

</div>

Hey, This is an offtopic question. We’re packaging and distributing a web application and we feel the need to change the deb/rpm deployment to container way in order to control dependency versions (like a newer Python …

---

## [Hardcoding Google Tag Manager snippet instead of using the admin setting](https://meta.discourse.org/t/hardcoding-google-tag-manager-snippet-instead-of-using-the-admin-setting/143298)

<div class="topic-metadata">

**Author:** [@agmontpetit](https://meta.discourse.org/u/agmontpetit)\
**Replies:** 0\
**Last updated:** [March 4, 2020, 11:28am UTC](https://meta.discourse.org/t/hardcoding-google-tag-manager-snippet-instead-of-using-the-admin-setting/143298 "2020-03-04T11:28:29Z")

</div>

We are running a production and staging version of our site and would like to benefit from Google Tag Manager (GTM) environments, so we don’t need to set up two independent containers. Instead of using the GTM setting (…

---

## [Cant update email via API - invalid\_access error](https://meta.discourse.org/t/cant-update-email-via-api-invalid-access-error/87260)

<div class="topic-metadata">

**Author:** [@shahidmir](https://meta.discourse.org/u/shahidmir)\
**Replies:** 14\
**Last updated:** [March 3, 2020, 5:28pm UTC](https://meta.discourse.org/t/cant-update-email-via-api-invalid-access-error/87260 "2020-03-03T17:28:30Z")

</div>

Hi Guys, Im getting an error when trying to use the API to update email. I have looked at the logs and can see the following: Started PUT “/discussion/users/davetest/preferences/email.json” for xx.xx.xx.xx at 2018-05-…

---

## [How to retrieve from API only posts of specific user (by e-mail, username or id)](https://meta.discourse.org/t/how-to-retrieve-from-api-only-posts-of-specific-user-by-e-mail-username-or-id/143178)

<div class="topic-metadata">

**Author:** [@Piotr\_Paściak](https://meta.discourse.org/u/Piotr_Pa%C5%9Bciak)\
**Replies:** 1\
**Last updated:** [March 3, 2020, 10:17am UTC](https://meta.discourse.org/t/how-to-retrieve-from-api-only-posts-of-specific-user-by-e-mail-username-or-id/143178 "2020-03-03T10:17:21Z")

</div>

Hello, I’ve been looking on following API documentation: https://docs.discourse.org/ Unfortunately, I wasn’t able to find any endpoint that would allow me to retrieve only posts of a specific user - this is a hard requ…

---

## [Error 403 (Forbidden) in dev instance](https://meta.discourse.org/t/error-403-forbidden-in-dev-instance/143027)

<div class="topic-metadata">

**Author:** [@jack2](https://meta.discourse.org/u/jack2)\
**Replies:** 1\
**Last updated:** [March 3, 2020, 10:00am UTC](https://meta.discourse.org/t/error-403-forbidden-in-dev-instance/143027 "2020-03-03T10:00:51Z")

</div>

I’ve just updated my dev instance and I can’t log in anymore. The debug console says: POST http://localhost:3000/session 403 (Forbidden). The log file says: Can't verify CSRF token authenticity. Rendering text templ…

---

## [What is the proper function to initalize stuff on Composer Open?](https://meta.discourse.org/t/what-is-the-proper-function-to-initalize-stuff-on-composer-open/143142)

<div class="topic-metadata">

**Author:** [@spirobel](https://meta.discourse.org/u/spirobel)\
**Replies:** 0\
**Last updated:** [March 3, 2020, 12:02am UTC](https://meta.discourse.org/t/what-is-the-proper-function-to-initalize-stuff-on-composer-open/143142 "2020-03-03T00:02:18Z")

</div>

I have a function to set up some object called project\_task every time the composer is opened. I did it this way because I saw it in the events plugin: https://github.com/paviliondev/discourse-events/blob/master/asset…

---

## [How to Customise the tag chooser for Topic Composer?](https://meta.discourse.org/t/how-to-customise-the-tag-chooser-for-topic-composer/143171)

<div class="topic-metadata">

**Author:** [@saurabhmasc](https://meta.discourse.org/u/saurabhmasc)\
**Replies:** 1\
**Last updated:** [March 3, 2020, 7:13am UTC](https://meta.discourse.org/t/how-to-customise-the-tag-chooser-for-topic-composer/143171 "2020-03-03T07:13:18Z")

</div>

Hello all, We want to display some set of tags with checkbox fields so Users can select those tags while creating a new topic. And bases on this selected checkbox update value of the Text field with the list of selected…

---

## [Having raw\_html in a system created post](https://meta.discourse.org/t/having-raw-html-in-a-system-created-post/143150)

<div class="topic-metadata">

**Author:** [@Luke\_Clancy](https://meta.discourse.org/u/Luke_Clancy)\
**Replies:** 3\
**Last updated:** [March 3, 2020, 3:53am UTC](https://meta.discourse.org/t/having-raw-html-in-a-system-created-post/143150 "2020-03-03T03:53:07Z")

</div>

I am attempting to create system managed posts that utilize raw html on a website plugin (in development). Looking at the documentation and various posts, I think I took the right approach, however the preprocessor still…

---

## [Dev environment running out of disk space](https://meta.discourse.org/t/dev-environment-running-out-of-disk-space/142980)

<div class="topic-metadata">

**Author:** [@seanblue](https://meta.discourse.org/u/seanblue)\
**Replies:** 8\
**Last updated:** [March 1, 2020, 8:29am UTC](https://meta.discourse.org/t/dev-environment-running-out-of-disk-space/142980 "2020-03-01T08:29:31Z")

</div>

My Discourse dev environment (ubuntu VM) is running out of disk space, despite doubling the VM’s disk size to 24GB last week. Do I need to manually delete old versions of Discourse or run a cleanup script or something? I…

---

## [Integrating with new Stripe Checkout or Stripe Payment Intents version?](https://meta.discourse.org/t/integrating-with-new-stripe-checkout-or-stripe-payment-intents-version/122818)

<div class="topic-metadata">

**Author:** [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)\
**Replies:** 7\
**Last updated:** [February 29, 2020, 2:53pm UTC](https://meta.discourse.org/t/integrating-with-new-stripe-checkout-or-stripe-payment-intents-version/122818 "2020-02-29T14:53:37Z")

</div>

I monetise my forums using a Discourse plugin I wrote to accept payments via Stripe Checkout (version 1). This was straightforward as Stripe handled the whole payment workflow on the (JavaScript) client-side, with a sin…

---

## [Using MessageBus with a custom Discourse frontend app on a different origin](https://meta.discourse.org/t/using-messagebus-with-a-custom-discourse-frontend-app-on-a-different-origin/142904)

<div class="topic-metadata">

**Author:** [@jamesmarkcook](https://meta.discourse.org/u/jamesmarkcook)\
**Replies:** 0\
**Last updated:** [February 28, 2020, 5:27pm UTC](https://meta.discourse.org/t/using-messagebus-with-a-custom-discourse-frontend-app-on-a-different-origin/142904 "2020-02-28T17:27:29Z")

</div>

I wanted to just document this here in case anyone else is trying to do the same and needs a little guidance. I’m currently working on a React frontend paired with a Discourse backend and a plugin customising some Disco…

---

## [Error cloning git repository, access is denied or repository is not found](https://meta.discourse.org/t/error-cloning-git-repository-access-is-denied-or-repository-is-not-found/108898)

<div class="topic-metadata">

**Author:** [@zaino](https://meta.discourse.org/u/zaino)\
**Replies:** 11\
**Last updated:** [February 28, 2020, 2:29am UTC](https://meta.discourse.org/t/error-cloning-git-repository-access-is-denied-or-repository-is-not-found/108898 "2020-02-28T02:29:10Z")

</div>

I have been successfully pulling a theme from a public Github repo for the last week and suddenly today I am getting this error: “Error cloning git repository, access is denied or repository is not found” I deleted the…

---

## [Adding a poll button to the bottom of the composer](https://meta.discourse.org/t/adding-a-poll-button-to-the-bottom-of-the-composer/142778)

<div class="topic-metadata">

**Author:** [@nexo](https://meta.discourse.org/u/nexo)\
**Replies:** 9\
**Last updated:** [February 28, 2020, 1:03am UTC](https://meta.discourse.org/t/adding-a-poll-button-to-the-bottom-of-the-composer/142778 "2020-02-28T01:03:14Z")

</div>

@Steven was kind enough to help and was able to put together this script that almost works but tapping the button doesn’t do anything: \<script type='text/x-handlebars' data-template-name='composer'\> {{#composer-body com…

---

## [Problem with my Font-Size](https://meta.discourse.org/t/problem-with-my-font-size/142701)

<div class="topic-metadata">

**Author:** [@ElForoViajero](https://meta.discourse.org/u/ElForoViajero)\
**Replies:** 2\
**Last updated:** [February 27, 2020, 5:00pm UTC](https://meta.discourse.org/t/problem-with-my-font-size/142701 "2020-02-27T17:00:04Z")

</div>

Hi, I have a issue that i am not able to solve…hopefully some can help me. I don’t have a lot of CSS knowledge. I’ve defined a custom font with CSS ion the desktop theme. However, the CSS is not being applied and it’s …

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

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