# Development

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

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

**Page:** 34

---

## [Embed video Thumbnail black bars on mobile (Wistia)](https://meta.discourse.org/t/embed-video-thumbnail-black-bars-on-mobile-wistia/294946)

<div class="topic-metadata">

**Author:** [@gitdev](https://meta.discourse.org/u/gitdev)\
**Replies:** 4\
**Last updated:** [February 10, 2024, 5:23pm UTC](https://meta.discourse.org/t/embed-video-thumbnail-black-bars-on-mobile-wistia/294946 "2024-02-10T17:23:52Z")

</div>

Wistia videos embed automatically when we paste the public media URL in Discourse. Everything is fine on tablet and computer. But, on phone, the thumbnail have some weird black bars. The thumbnail for youtube videos on …

---

## [Using scripts in the topic](https://meta.discourse.org/t/using-scripts-in-the-topic/294873)

<div class="topic-metadata">

**Author:** [@Gonerdot](https://meta.discourse.org/u/Gonerdot)\
**Replies:** 6\
**Last updated:** [February 9, 2024, 10:25pm UTC](https://meta.discourse.org/t/using-scripts-in-the-topic/294873 "2024-02-09T22:25:39Z")

</div>

How can i implement the use of javascript in topics?

---

## [Change the order of topic footer buttons](https://meta.discourse.org/t/change-the-order-of-topic-footer-buttons/294698)

<div class="topic-metadata">

**Author:** [@katelion](https://meta.discourse.org/u/katelion)\
**Replies:** 2\
**Last updated:** [February 9, 2024, 12:55pm UTC](https://meta.discourse.org/t/change-the-order-of-topic-footer-buttons/294698 "2024-02-09T12:55:14Z")

</div>

Hi, We would like to change the order of the topic footer buttons. I didn’t find any plugin for that and with css it didn’t seem easy either. Our goal is to make it look like this: Does anybody have any idea, pleas…

---

## [Getting avatar URLs for use externally](https://meta.discourse.org/t/getting-avatar-urls-for-use-externally/294770)

<div class="topic-metadata">

**Author:** [@uckelman](https://meta.discourse.org/u/uckelman)\
**Replies:** 0\
**Last updated:** [February 9, 2024, 12:10am UTC](https://meta.discourse.org/t/getting-avatar-urls-for-use-externally/294770 "2024-02-09T00:10:54Z")

</div>

I would like to display user avatars from a Discord I host on another part of my site. What’s the recommended way of doing this? I see that the path to the avatar is at user.avatar\_template in the JSON returned by /u/{u…

---

## [Can I show a modal from head\_tag](https://meta.discourse.org/t/can-i-show-a-modal-from-head-tag/289836)

<div class="topic-metadata">

**Author:** [@Thien\_Nguyen\_Ngoc](https://meta.discourse.org/u/Thien_Nguyen_Ngoc)\
**Replies:** 5\
**Last updated:** [February 8, 2024, 9:29am UTC](https://meta.discourse.org/t/can-i-show-a-modal-from-head-tag/289836 "2024-02-08T09:29:15Z")

</div>

hi @david , is there any chance to show the Modal from a script on head\_tag.html? Thank you

---

## [Strategies for Isolating Plugin Secrets in Discourse](https://meta.discourse.org/t/strategies-for-isolating-plugin-secrets-in-discourse/293925)

<div class="topic-metadata">

**Author:** [@LorenzoNey](https://meta.discourse.org/u/LorenzoNey)\
**Replies:** 3\
**Last updated:** [February 7, 2024, 7:21pm UTC](https://meta.discourse.org/t/strategies-for-isolating-plugin-secrets-in-discourse/293925 "2024-02-07T19:21:28Z")

</div>

Hello Discourse Community, I am currently developing a plugin for Discourse and have encountered a specific challenge related to security. My plugin requires storing and accessing sensitive data, and I am exploring ways…

---

## [Discourse markdown extensions not working after latest Discourse upgrade](https://meta.discourse.org/t/discourse-markdown-extensions-not-working-after-latest-discourse-upgrade/294155)

<div class="topic-metadata">

**Author:** [@GaurangBlaze](https://meta.discourse.org/u/GaurangBlaze)\
**Replies:** 12\
**Last updated:** [February 7, 2024, 9:54am UTC](https://meta.discourse.org/t/discourse-markdown-extensions-not-working-after-latest-discourse-upgrade/294155 "2024-02-07T09:54:46Z")

</div>

This issue has happened right after the latest upgrade to v3.3.0.beta1-dev — ac53e5a962 — Ember v5.5.0. Link to my custom plugin’s markdown extension rule: Files · master · Text Blaze / Discourse Snippets · GitLab (unch…

---

## [What length CSS unit should you use?](https://meta.discourse.org/t/what-length-css-unit-should-you-use/294197)

<div class="topic-metadata">

**Author:** [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Replies:** 0\
**Last updated:** [February 5, 2024, 2:48pm UTC](https://meta.discourse.org/t/what-length-css-unit-should-you-use/294197 "2024-02-05T14:48:53Z")

</div>

I just wanted to share this website I stumbled upon recently, and I find it useful. It’s a flow chart that guides you on what length CSS unit you should use based on what you’re declaring. Note: It’s a general guide, t…

---

## [How do I add a category button to my mobile theme?](https://meta.discourse.org/t/how-do-i-add-a-category-button-to-my-mobile-theme/294040)

<div class="topic-metadata">

**Author:** [@Ahmed26](https://meta.discourse.org/u/Ahmed26)\
**Replies:** 2\
**Last updated:** [February 3, 2024, 2:28pm UTC](https://meta.discourse.org/t/how-do-i-add-a-category-button-to-my-mobile-theme/294040 "2024-02-03T14:28:25Z")

</div>

How do I add a category button to my mobile theme?

---

## [How to add a link icon to the header](https://meta.discourse.org/t/how-to-add-a-link-icon-to-the-header/293962)

<div class="topic-metadata">

**Author:** [@Gonerdot](https://meta.discourse.org/u/Gonerdot)\
**Replies:** 3\
**Last updated:** [February 2, 2024, 7:50pm UTC](https://meta.discourse.org/t/how-to-add-a-link-icon-to-the-header/293962 "2024-02-02T19:50:43Z")

</div>

Please tell me how to add a link icon to the header. Preferably with an example of hrml code If I understand correctly, this needs to be inserted in the “header” section

---

## [How to append a particular element/id in plugin's site settings in javascript](https://meta.discourse.org/t/how-to-append-a-particular-element-id-in-plugins-site-settings-in-javascript/287584)

<div class="topic-metadata">

**Author:** [@omppatil](https://meta.discourse.org/u/omppatil)\
**Replies:** 2\
**Last updated:** [December 6, 2023, 4:12am UTC](https://meta.discourse.org/t/how-to-append-a-particular-element-id-in-plugins-site-settings-in-javascript/287584 "2023-12-06T04:12:24Z")

</div>

How to append an particular element/id in plugin site settings in javascript ,can anyone assist me in this?

---

## [How to add and remove a Tag in a plugin](https://meta.discourse.org/t/how-to-add-and-remove-a-tag-in-a-plugin/293632)

<div class="topic-metadata">

**Author:** [@omppatil](https://meta.discourse.org/u/omppatil)\
**Replies:** 6\
**Last updated:** [February 2, 2024, 10:41am UTC](https://meta.discourse.org/t/how-to-add-and-remove-a-tag-in-a-plugin/293632 "2024-02-02T10:41:43Z")

</div>

Hi!, How can we add a tag to a post, and also remove the tag of the post using the discourse functions?

---

## [Something recently changed, can't increase \`--topic-body-width\`](https://meta.discourse.org/t/something-recently-changed-cant-increase-topic-body-width/293845)

<div class="topic-metadata">

**Author:** [@rahim123](https://meta.discourse.org/u/rahim123)\
**Replies:** 4\
**Last updated:** [February 2, 2024, 6:23am UTC](https://meta.discourse.org/t/something-recently-changed-cant-increase-topic-body-width/293845 "2024-02-02T06:23:46Z")

</div>

Hi there, I’ve been using a customized width for my forum because most of my users have a strong preference for a wider layout with less whitespace: :root { --d-max-width: 1900px; --topic-body-width: 1244px; } With…

---

## [How to allow a form to be submitted without CSRF protection](https://meta.discourse.org/t/how-to-allow-a-form-to-be-submitted-without-csrf-protection/293812)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 0\
**Last updated:** [February 1, 2024, 5:59pm UTC](https://meta.discourse.org/t/how-to-allow-a-form-to-be-submitted-without-csrf-protection/293812 "2024-02-01T17:59:17Z")

</div>

Continuing the discussion from Generating a login email via API: But that’s what I wanted to do, but then I searched the source for verify\_authenticity\_token and figured out that I could use skip\_before\_action :ch…

---

## [How to add and remove a flag for a post in a plugin](https://meta.discourse.org/t/how-to-add-and-remove-a-flag-for-a-post-in-a-plugin/293630)

<div class="topic-metadata">

**Author:** [@omppatil](https://meta.discourse.org/u/omppatil)\
**Replies:** 2\
**Last updated:** [February 1, 2024, 4:47am UTC](https://meta.discourse.org/t/how-to-add-and-remove-a-flag-for-a-post-in-a-plugin/293630 "2024-02-01T04:47:30Z")

</div>

Hi!, How can we add a flag to a post, and also remove the flag of the post using the discourse functions?

---

## [How to round all input-fields in Discourse?](https://meta.discourse.org/t/how-to-round-all-input-fields-in-discourse/293232)

<div class="topic-metadata">

**Author:** [@danielabc](https://meta.discourse.org/u/danielabc)\
**Replies:** 4\
**Last updated:** [January 31, 2024, 4:41pm UTC](https://meta.discourse.org/t/how-to-round-all-input-fields-in-discourse/293232 "2024-01-31T16:41:43Z")

</div>

How do I round them all at once via CSS?

---

## [CSS to increase height of logo and header in dektop \<\> Mobile view](https://meta.discourse.org/t/css-to-increase-height-of-logo-and-header-in-dektop-mobile-view/293064)

<div class="topic-metadata">

**Author:** [@selfaware](https://meta.discourse.org/u/selfaware)\
**Replies:** 16\
**Last updated:** [January 31, 2024, 4:25pm UTC](https://meta.discourse.org/t/css-to-increase-height-of-logo-and-header-in-dektop-mobile-view/293064 "2024-01-31T16:25:17Z")

</div>

From my pc desktop, via the inspector in firefox, the css tag that manipulates logo height is: .d-header .title { --d-logo-height: 4em; } However, I notice that when I plug in this css tag in the default theme in the…

---

## [How to fetch posts/topics by multiple usernames](https://meta.discourse.org/t/how-to-fetch-posts-topics-by-multiple-usernames/293575)

<div class="topic-metadata">

**Author:** [@j3ang](https://meta.discourse.org/u/j3ang)\
**Replies:** 2\
**Last updated:** [January 31, 2024, 4:39am UTC](https://meta.discourse.org/t/how-to-fetch-posts-topics-by-multiple-usernames/293575 "2024-01-31T04:39:52Z")

</div>

Hi all, I’m trying to find a way to display posts/topics posted by many users in my app. I’ve tried discourse api user\_actions.json with filter=4,5 =\> but it becomes a problem if the group of user is large. search.js…

---

## [Product icons out of alignment after update](https://meta.discourse.org/t/product-icons-out-of-alignment-after-update/293262)

<div class="topic-metadata">

**Author:** [@Srujan\_Madderla](https://meta.discourse.org/u/Srujan_Madderla)\
**Replies:** 3\
**Last updated:** [January 29, 2024, 10:18am UTC](https://meta.discourse.org/t/product-icons-out-of-alignment-after-update/293262 "2024-01-29T10:18:07Z")

</div>

I have just upgraded my Staging portal to the latest version Before upgrade our portal look liked the below screenshot. Now the alignments got disturbed as shown below. can someone please guide me to set them…

---

## [Add custom field in topic list](https://meta.discourse.org/t/add-custom-field-in-topic-list/293239)

<div class="topic-metadata">

**Author:** [@hoangphuctran93](https://meta.discourse.org/u/hoangphuctran93)\
**Replies:** 2\
**Last updated:** [January 29, 2024, 6:40am UTC](https://meta.discourse.org/t/add-custom-field-in-topic-list/293239 "2024-01-29T06:40:27Z")

</div>

Hello everyone, recently my forum has developed a category called following to introduce individuals with useful contributions and I am referencing the design below. Can you tell me if we can add custom fields to the top…

---

## [Change avatar position](https://meta.discourse.org/t/change-avatar-position/293192)

<div class="topic-metadata">

**Author:** [@Gonerdot](https://meta.discourse.org/u/Gonerdot)\
**Replies:** 8\
**Last updated:** [January 28, 2024, 7:09pm UTC](https://meta.discourse.org/t/change-avatar-position/293192 "2024-01-28T19:09:42Z")

</div>

Please tell me how to display an avatar this way Like this Theme: FKB Pro - Social theme

---

## [Overlaying an avatar on the cover](https://meta.discourse.org/t/overlaying-an-avatar-on-the-cover/292808)

<div class="topic-metadata">

**Author:** [@Gonerdot](https://meta.discourse.org/u/Gonerdot)\
**Replies:** 6\
**Last updated:** [January 24, 2024, 7:33pm UTC](https://meta.discourse.org/t/overlaying-an-avatar-on-the-cover/292808 "2024-01-24T19:33:41Z")

</div>

Is it possible to overlay an avatar on a banner in a similar way? If yes, then at the same time you need to disable the ability to hide the banner

---

## [Flash of dark color scheme on re-load](https://meta.discourse.org/t/flash-of-dark-color-scheme-on-re-load/292776)

<div class="topic-metadata">

**Author:** [@manuel](https://meta.discourse.org/u/manuel)\
**Replies:** 0\
**Last updated:** [January 24, 2024, 1:57pm UTC](https://meta.discourse.org/t/flash-of-dark-color-scheme-on-re-load/292776 "2024-01-24T13:57:39Z")

</div>

This seems to be recent? At least I can’t recall it and now I always see this flash of the dark color scheme when browser or system default is dark mode and Discourse set to a light scheme:

---

## [Widgets, the Widget API and their roadmap?](https://meta.discourse.org/t/widgets-the-widget-api-and-their-roadmap/292624)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**Replies:** 2\
**Last updated:** [January 23, 2024, 12:29pm UTC](https://meta.discourse.org/t/widgets-the-widget-api-and-their-roadmap/292624 "2024-01-23T12:29:21Z")

</div>

David et al, now that we’re getting to the “end” of the Ember 5 roadmap :sweat\_smile: , I have to ask: What’s the roadmap for Widgets? Are we expecting these to be replaced fully by Components at some point? Do we hav…

---

## [How to develop new Theme](https://meta.discourse.org/t/how-to-develop-new-theme/292620)

<div class="topic-metadata">

**Author:** [@AntonioJrM](https://meta.discourse.org/u/AntonioJrM)\
**Replies:** 3\
**Last updated:** [January 23, 2024, 11:48am UTC](https://meta.discourse.org/t/how-to-develop-new-theme/292620 "2024-01-23T11:48:45Z")

</div>

I know html, php, css, javascript. I would like to develop a new theme, starting from the layout I designed. Is it possible somehow? Have any of you ever developed themes for Discourse?

---

## [(old) method for adding languages to highlight.js on Discourse](https://meta.discourse.org/t/old-method-for-adding-languages-to-highlight-js-on-discourse/55818)

<div class="topic-metadata">

**Author:** [@henriquebastos](https://meta.discourse.org/u/henriquebastos)\
**Replies:** 12\
**Last updated:** [January 22, 2024, 10:23am UTC](https://meta.discourse.org/t/old-method-for-adding-languages-to-highlight-js-on-discourse/55818 "2024-01-22T10:23:44Z")

</div>

:warning: This method doesn’t work any more. See This method no longer works. Please see Install a new language for Highlight.JS via a theme component instead. ▶ Original Post

---

## [Extending PostActionTypes](https://meta.discourse.org/t/extending-postactiontypes/179982)

<div class="topic-metadata">

**Author:** [@neounix](https://meta.discourse.org/u/neounix)\
**Replies:** 1\
**Last updated:** [January 21, 2024, 8:26am UTC](https://meta.discourse.org/t/extending-postactiontypes/179982 "2024-01-21T08:26:19Z")

</div>

Hey There, We need to extend PostActionTypes to add a new action type to the post flagging feature. RE: Model RE: Model Before I embark on some wild “extend these classes” plugin journey, I thought it prudent to a…

---

## [How do I suppress a subcategory from appearing on the category list?](https://meta.discourse.org/t/how-do-i-suppress-a-subcategory-from-appearing-on-the-category-list/172178)

<div class="topic-metadata">

**Author:** [@Monte\_Kalisch](https://meta.discourse.org/u/Monte_Kalisch)\
**Replies:** 17\
**Last updated:** [January 21, 2024, 2:44am UTC](https://meta.discourse.org/t/how-do-i-suppress-a-subcategory-from-appearing-on-the-category-list/172178 "2024-01-21T02:44:44Z")

</div>

I can’t figure out how to get a subcategory (“Build your own teen innovation challenge” in this case) to stop showing up (the arrow) on the main category page. I’ve tried several things. Can you help?

---

## [Help with asdf and bundle](https://meta.discourse.org/t/help-with-asdf-and-bundle/292287)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 1\
**Last updated:** [January 20, 2024, 3:21pm UTC](https://meta.discourse.org/t/help-with-asdf-and-bundle/292287 "2024-01-20T15:21:13Z")

</div>

This isn’t really a Discourse problem, but I have it only with Discourse. I’ve done some other searching to no avail, so I’m here now. If I run bundle install in a freshly cloned discourse directory, I get this: (main)…

---

## [Add Banner/HTML (Widget) before reply button](https://meta.discourse.org/t/add-banner-html-widget-before-reply-button/291404)

<div class="topic-metadata">

**Author:** [@OrkoGrayskull](https://meta.discourse.org/u/OrkoGrayskull)\
**Replies:** 4\
**Last updated:** [January 19, 2024, 6:55am UTC](https://meta.discourse.org/t/add-banner-html-widget-before-reply-button/291404 "2024-01-19T06:55:52Z")

</div>

I currently use the following widget to display a banner/link after the first post of a thread. This works fine so far: \<script type="text/discourse-plugin" version="0.8"\> const { iconNode } = require("discourse-com…

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

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