# Development

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

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

**Page:** 63

---

## [Can't send PM via API (HTTPUnprocessableEntity 422)](https://meta.discourse.org/t/cant-send-pm-via-api-httpunprocessableentity-422/55017)

<div class="topic-metadata">

**Author:** [@AstonJ](https://meta.discourse.org/u/AstonJ)\
**Replies:** 15\
**Last updated:** [April 17, 2019, 8:03pm UTC](https://meta.discourse.org/t/cant-send-pm-via-api-httpunprocessableentity-422/55017 "2019-04-17T20:03:37Z")

</div>

Anyone know what I am doing wrong here please? It was working fine, then I don’t know what I did but it stopped working. I’ve stripped it back to this and it’s still not working: irb\> require 'uri' =\> true irb\> require…

---

## [How to adjust color on hamburger profile links?](https://meta.discourse.org/t/how-to-adjust-color-on-hamburger-profile-links/232851)

<div class="topic-metadata">

**Author:** [@MarcP](https://meta.discourse.org/u/MarcP)\
**Replies:** 4\
**Last updated:** [July 14, 2022, 10:27am UTC](https://meta.discourse.org/t/how-to-adjust-color-on-hamburger-profile-links/232851 "2022-07-14T10:27:16Z")

</div>

Noticing some very strange behavior on colors for menu items. Changing these classes, does half the work. Changing color on this CSS class, only changes the first 5 links. Changing color for notification text…

---

## [How to change background change when a modal opens](https://meta.discourse.org/t/how-to-change-background-change-when-a-modal-opens/232837)

<div class="topic-metadata">

**Author:** [@MarcP](https://meta.discourse.org/u/MarcP)\
**Replies:** 2\
**Last updated:** [July 14, 2022, 7:02am UTC](https://meta.discourse.org/t/how-to-change-background-change-when-a-modal-opens/232837 "2022-07-14T07:02:52Z")

</div>

Morning! Here with a simple (?) question. How can we change the dark faded background that comes up when a modal pops up? Can’t really find it in the CSS.

---

## [Ebay EPN: Source map error](https://meta.discourse.org/t/ebay-epn-source-map-error/232770)

<div class="topic-metadata">

**Author:** [@piffy](https://meta.discourse.org/u/piffy)\
**Replies:** 3\
**Last updated:** [July 14, 2022, 2:56am UTC](https://meta.discourse.org/t/ebay-epn-source-map-error/232770 "2022-07-14T02:56:06Z")

</div>

The Ebay affiliate program provides a script that converts links on the clientside. It’s a simple two-line thing: \<script\>window.\_epn = {campaign: \[XXX\_ID\_XXX\], smartPopover:false};\</script\> \<script src="https://epnt.e…

---

## [Modify Post Creation Form](https://meta.discourse.org/t/modify-post-creation-form/232762)

<div class="topic-metadata">

**Author:** [@mangcat](https://meta.discourse.org/u/mangcat)\
**Replies:** 2\
**Last updated:** [July 13, 2022, 5:16pm UTC](https://meta.discourse.org/t/modify-post-creation-form/232762 "2022-07-13T17:16:50Z")

</div>

Hi all, I was wondering if there is a way to modify the post creation form in order to be able to add some custom fields to it? Thanks, Cat

---

## [How to use user field in hbr file?](https://meta.discourse.org/t/how-to-use-user-field-in-hbr-file/218066)

<div class="topic-metadata">

**Author:** [@th21](https://meta.discourse.org/u/th21)\
**Replies:** 2\
**Last updated:** [July 13, 2022, 5:52am UTC](https://meta.discourse.org/t/how-to-use-user-field-in-hbr-file/218066 "2022-07-13T05:52:31Z")

</div>

I was trying to let users choose whether show likes on desktop/mobile pages based on and would like to know how to use user custom filed in a .hbr like this. or is it possible to apply conditional css based on the u…

---

## [Hide the full name field in the Create account form](https://meta.discourse.org/t/hide-the-full-name-field-in-the-create-account-form/232207)

<div class="topic-metadata">

**Author:** [@saurabhmasc](https://meta.discourse.org/u/saurabhmasc)\
**Replies:** 3\
**Last updated:** [July 13, 2022, 10:52am UTC](https://meta.discourse.org/t/hide-the-full-name-field-in-the-create-account-form/232207 "2022-07-13T10:52:11Z")

</div>

Hi team, We have customized the regular Discourse create account form using a grid layout as shown below: Currently, we have hidden the full name using the below SCSS: .d-modal.create-account .login-form { form…

---

## [Cannot set httponly flag to false when setting a cookie](https://meta.discourse.org/t/cannot-set-httponly-flag-to-false-when-setting-a-cookie/232593)

<div class="topic-metadata">

**Author:** [@Dwayne\_Smit](https://meta.discourse.org/u/Dwayne_Smit)\
**Replies:** 0\
**Last updated:** [July 12, 2022, 7:11am UTC](https://meta.discourse.org/t/cannot-set-httponly-flag-to-false-when-setting-a-cookie/232593 "2022-07-12T07:11:53Z")

</div>

I want to set a cookie from session controller with its httponly flag set to false here is what i did cookies\[:my\_cookie\_name\] = { value: "hello", httponly: false } but it sets the httponly value to true. can anyone pl…

---

## [How do I remove this empty space from the right of topic body?](https://meta.discourse.org/t/how-do-i-remove-this-empty-space-from-the-right-of-topic-body/232499)

<div class="topic-metadata">

**Author:** [@riteshsaini](https://meta.discourse.org/u/riteshsaini)\
**Replies:** 2\
**Last updated:** [July 11, 2022, 3:55pm UTC](https://meta.discourse.org/t/how-do-i-remove-this-empty-space-from-the-right-of-topic-body/232499 "2022-07-11T15:55:18Z")

</div>

Hi, I need help with removing this empty space: It’s not padding, so I can’t decrease it. Kindly help. Regards

---

## [Getting Error while installing discourse theme cli](https://meta.discourse.org/t/getting-error-while-installing-discourse-theme-cli/232466)

<div class="topic-metadata">

**Author:** [@viswanathan](https://meta.discourse.org/u/viswanathan)\
**Replies:** 0\
**Last updated:** [July 11, 2022, 7:43am UTC](https://meta.discourse.org/t/getting-error-while-installing-discourse-theme-cli/232466 "2022-07-11T07:43:40Z")

</div>

I get an error while using gem install discourse\_theme. I have ruby 2.6 with my macos but there is no write access.What could be the possible fix? Image ref below

---

## [Issue with blurring elements](https://meta.discourse.org/t/issue-with-blurring-elements/232354)

<div class="topic-metadata">

**Author:** [@darkpixlz](https://meta.discourse.org/u/darkpixlz)\
**Replies:** 15\
**Last updated:** [July 9, 2022, 2:53am UTC](https://meta.discourse.org/t/issue-with-blurring-elements/232354 "2022-07-09T02:53:38Z")

</div>

Hi! I was trying to blur the user menu and hamburger menu, but it’s not working. This same code works perfectly fine on any other modal, but does nothing here. The code I have: body:not(.ios-safari-composer-hac…

---

## [Where do I find discourse functions?](https://meta.discourse.org/t/where-do-i-find-discourse-functions/231994)

<div class="topic-metadata">

**Author:** [@Juraj\_Štefánik](https://meta.discourse.org/u/Juraj_%C5%A0tef%C3%A1nik)\
**Replies:** 4\
**Last updated:** [July 8, 2022, 3:27pm UTC](https://meta.discourse.org/t/where-do-i-find-discourse-functions/231994 "2022-07-08T15:27:07Z")

</div>

Hello, When I want to add a display somewhere that shows how many posts the user has commented on or similar, where should I look for these functions? Thnak you

---

## [When PRs are merged?](https://meta.discourse.org/t/when-prs-are-merged/232289)

<div class="topic-metadata">

**Author:** [@Jagster](https://meta.discourse.org/u/Jagster)\
**Replies:** 2\
**Last updated:** [July 8, 2022, 8:42am UTC](https://meta.discourse.org/t/when-prs-are-merged/232289 "2022-07-08T08:42:50Z")

</div>

Quite often, and decently fast I have to say, when someone reports bug or issue somebody from team tells this PR fixes it. And right after that anxious user makes rebuild or update, returns and cries for help because th…

---

## [Unable to upload correct size image with {{images-uploader}} component](https://meta.discourse.org/t/unable-to-upload-correct-size-image-with-images-uploader-component/230794)

<div class="topic-metadata">

**Author:** [@keegan](https://meta.discourse.org/u/keegan)\
**Replies:** 1\
**Last updated:** [July 6, 2022, 7:27pm UTC](https://meta.discourse.org/t/unable-to-upload-correct-size-image-with-images-uploader-component/230794 "2022-07-06T19:27:18Z")

</div>

I’m working on a plugin that has a modal in the toolbar popup menu options. Inside the modal, I would like to prompt the user to upload a set of image files. When using the {{images-uploader}} component, I noticed the i…

---

## [Change date format / user view from forum](https://meta.discourse.org/t/change-date-format-user-view-from-forum/231961)

<div class="topic-metadata">

**Author:** [@Juraj\_Štefánik](https://meta.discourse.org/u/Juraj_%C5%A0tef%C3%A1nik)\
**Replies:** 7\
**Last updated:** [July 6, 2022, 8:03am UTC](https://meta.discourse.org/t/change-date-format-user-view-from-forum/231961 "2022-07-06T08:03:22Z")

</div>

Hello, How do I change the date format so that it is 17.6? Thank you

---

## [Defer javascript and show interim content on initial page load](https://meta.discourse.org/t/defer-javascript-and-show-interim-content-on-initial-page-load/216458)

<div class="topic-metadata">

**Author:** [@rrit](https://meta.discourse.org/u/rrit)\
**Replies:** 19\
**Last updated:** [July 5, 2022, 5:45pm UTC](https://meta.discourse.org/t/defer-javascript-and-show-interim-content-on-initial-page-load/216458 "2022-07-05T17:45:37Z")

</div>

How about: Deferring Discourse’ javascripts Add defer-attributes to all javascripts if possible. Deferring javascript-loading and execution makes the browser start HTML-parsing, rendering and painting. So some static in…

---

## [How to set the default for the mobile version to display as a desktop version](https://meta.discourse.org/t/how-to-set-the-default-for-the-mobile-version-to-display-as-a-desktop-version/231691)

<div class="topic-metadata">

**Author:** [@Juraj\_Štefánik](https://meta.discourse.org/u/Juraj_%C5%A0tef%C3%A1nik)\
**Replies:** 4\
**Last updated:** [July 4, 2022, 10:00am UTC](https://meta.discourse.org/t/how-to-set-the-default-for-the-mobile-version-to-display-as-a-desktop-version/231691 "2022-07-04T10:00:10Z")

</div>

Please, I have the mobile version and when I open the dropdown menu and there is an option to display the desktop version, I would like to ask how do I set the default so that it is displayed on the mobile as the desktop…

---

## [Discourse comments in Vuejs](https://meta.discourse.org/t/discourse-comments-in-vuejs/106128)

<div class="topic-metadata">

**Author:** [@ahab4ik](https://meta.discourse.org/u/ahab4ik)\
**Replies:** 2\
**Last updated:** [July 3, 2022, 1:46pm UTC](https://meta.discourse.org/t/discourse-comments-in-vuejs/106128 "2022-07-03T13:46:41Z")

</div>

I have a website that uses Vuejs. And a forum in Discourse. I am trying to insert a javascript in the template file that will connect comments from the forum to a specific page on Vuejs site. But I get the error: Templa…

---

## [Create-account-form](https://meta.discourse.org/t/create-account-form/231686)

<div class="topic-metadata">

**Author:** [@Juraj\_Štefánik](https://meta.discourse.org/u/Juraj_%C5%A0tef%C3%A1nik)\
**Replies:** 1\
**Last updated:** [July 1, 2022, 2:16pm UTC](https://meta.discourse.org/t/create-account-form/231686 "2022-07-01T14:16:09Z")

</div>

Hello, How I add custom fields or something else to create-account-form ? Thank you

---

## [Edit discourse theme](https://meta.discourse.org/t/edit-discourse-theme/231550)

<div class="topic-metadata">

**Author:** [@Juraj\_Štefánik](https://meta.discourse.org/u/Juraj_%C5%A0tef%C3%A1nik)\
**Replies:** 0\
**Last updated:** [June 30, 2022, 10:02am UTC](https://meta.discourse.org/t/edit-discourse-theme/231550 "2022-06-30T10:02:06Z")

</div>

Hello, I would like to edit this outlet, I need to delete something there, add something … I went according to the instructions here on the disourse, how to edit the discourse theme using outlets, widgets, etc. I should …

---

## [Javascript HTML - widget](https://meta.discourse.org/t/javascript-html-widget/231424)

<div class="topic-metadata">

**Author:** [@Juraj\_Štefánik](https://meta.discourse.org/u/Juraj_%C5%A0tef%C3%A1nik)\
**Replies:** 1\
**Last updated:** [June 29, 2022, 4:32pm UTC](https://meta.discourse.org/t/javascript-html-widget/231424 "2022-06-29T16:32:11Z")

</div>

Hello, if I want to add an ul list to the hamburger menu with from the submenus that I see either on a click or on a hover mouse, should I do it this way or know something more efficient? I can add individual items to t…

---

## [API - Get Categories without Descriptions](https://meta.discourse.org/t/api-get-categories-without-descriptions/231425)

<div class="topic-metadata">

**Author:** [@Honeyxilia](https://meta.discourse.org/u/Honeyxilia)\
**Replies:** 3\
**Last updated:** [June 29, 2022, 12:41pm UTC](https://meta.discourse.org/t/api-get-categories-without-descriptions/231425 "2022-06-29T12:41:05Z")

</div>

Hi, I want to use a GET Request as such to obtain all categories in my Discourse server. resp = requests.get(base\_url + "/categories.json", headers={"Api-Key": clef\_api, "Api-Username": "system"}, param={'include\_subca…

---

## [Add custom content on anywhere on discourse](https://meta.discourse.org/t/add-custom-content-on-anywhere-on-discourse/231342)

<div class="topic-metadata">

**Author:** [@Juraj\_Štefánik](https://meta.discourse.org/u/Juraj_%C5%A0tef%C3%A1nik)\
**Replies:** 1\
**Last updated:** [June 28, 2022, 1:36pm UTC](https://meta.discourse.org/t/add-custom-content-on-anywhere-on-discourse/231342 "2022-06-28T13:36:47Z")

</div>

Hello, Is it possible to add your own content anywhere on the page? + functionality of course. Is it even possible? something like using jQuery apend function? but I have a feeling that something is blocking this feature …

---

## [Discourse standalone](https://meta.discourse.org/t/discourse-standalone/231254)

<div class="topic-metadata">

**Author:** [@Justman10000](https://meta.discourse.org/u/Justman10000)\
**Replies:** 5\
**Last updated:** [June 27, 2022, 9:57pm UTC](https://meta.discourse.org/t/discourse-standalone/231254 "2022-06-27T21:57:10Z")

</div>

Hi, is it possible to use discourse as a standalone without docker?

---

## [Widget to embed in 3rd party websites](https://meta.discourse.org/t/widget-to-embed-in-3rd-party-websites/225494)

<div class="topic-metadata">

**Author:** [@Kane\_Thomas](https://meta.discourse.org/u/Kane_Thomas)\
**Replies:** 6\
**Last updated:** [June 27, 2022, 3:13am UTC](https://meta.discourse.org/t/widget-to-embed-in-3rd-party-websites/225494 "2022-06-27T03:13:11Z")

</div>

Is there any way to embed either specific topics, or “latest posts”, or similar into a 3rd party site? Preferably just some Javascript or iframe code. I tried searching and Googling and couldn’t find a solution. Thanks…

---

## [Discourse API docs mention a "request body" for a GET request](https://meta.discourse.org/t/discourse-api-docs-mention-a-request-body-for-a-get-request/231137)

<div class="topic-metadata">

**Author:** [@VincentAlse](https://meta.discourse.org/u/VincentAlse)\
**Replies:** 13\
**Last updated:** [June 26, 2022, 11:09pm UTC](https://meta.discourse.org/t/discourse-api-docs-mention-a-request-body-for-a-get-request/231137 "2022-06-26T23:09:55Z")

</div>

I’m trying to create a script to get specific posts from topic. See this page Discourse API Docs But I keep getting response status code = 413. Somebody help me, please! Will send $20 to your PayPal account if you can …

---

## [Endpoint to get unread/new?](https://meta.discourse.org/t/endpoint-to-get-unread-new/113500)

<div class="topic-metadata">

**Author:** [@Olivier\_Lambert](https://meta.discourse.org/u/Olivier_Lambert)\
**Replies:** 1\
**Last updated:** [June 24, 2022, 7:24pm UTC](https://meta.discourse.org/t/endpoint-to-get-unread-new/113500 "2022-06-24T19:24:54Z")

</div>

Hi! I’ve created a side navigation: Here’s the website: I’m using this endpoint to fetch and parse the categories: https://forum.latranchee.com/categories.json Right now, I’m showing the number of new post this …

---

## [How to get username for webhook when user clicked button](https://meta.discourse.org/t/how-to-get-username-for-webhook-when-user-clicked-button/231012)

<div class="topic-metadata">

**Author:** [@DragonByte](https://meta.discourse.org/u/DragonByte)\
**Replies:** 2\
**Last updated:** [June 24, 2022, 2:12pm UTC](https://meta.discourse.org/t/how-to-get-username-for-webhook-when-user-clicked-button/231012 "2022-06-24T14:12:17Z")

</div>

Hello! :wave: I created banner for my users with form action="url\_webhook" and button “Send”, when user click on button, my Discourse send information to webhook url, but it’s header output don’t have username who click…

---

## [Discourse on Github Codespaces not working](https://meta.discourse.org/t/discourse-on-github-codespaces-not-working/230179)

<div class="topic-metadata">

**Author:** [@reinier](https://meta.discourse.org/u/reinier)\
**Replies:** 3\
**Last updated:** [June 24, 2022, 12:43pm UTC](https://meta.discourse.org/t/discourse-on-github-codespaces-not-working/230179 "2022-06-24T12:43:34Z")

</div>

I’ve tried to run Discourse in Github Codespaces and it seems to get stuck somewhere. The creation log ends with these lines: Cleaning stale PID files run-parts: executing /etc/runit/1.d/ensure-database Started runsvdi…

---

## [Change the opacity of the banner box?](https://meta.discourse.org/t/change-the-opacity-of-the-banner-box/270591)

<div class="topic-metadata">

**Author:** [@JamesDb](https://meta.discourse.org/u/JamesDb)\
**Replies:** 6\
**Last updated:** [June 23, 2022, 3:42pm UTC](https://meta.discourse.org/t/change-the-opacity-of-the-banner-box/270591 "2022-06-23T15:42:29Z")

</div>

Is it possible to change the opacity of the banner box?

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

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