# Development

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

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

**Page:** 41

---

## [Reset password with custom ruby file](https://meta.discourse.org/t/reset-password-with-custom-ruby-file/280184)

<div class="topic-metadata">

**Author:** [@Hitesh\_Sharma](https://meta.discourse.org/u/Hitesh_Sharma)\
**Replies:** 9\
**Last updated:** [September 27, 2023, 7:06am UTC](https://meta.discourse.org/t/reset-password-with-custom-ruby-file/280184 "2023-09-27T07:06:28Z")

</div>

Custom function for password update in discourse Can we use this code to update the password? e.g:- User.find\_by(username: ‘gollum’).update!(password: ‘shiiiire!-BAGGINS!’) Or Can we create a custom plugin and use a…

---

## [Markdown, BBCode, and Emoji Not Rendering In API Post](https://meta.discourse.org/t/markdown-bbcode-and-emoji-not-rendering-in-api-post/279636)

<div class="topic-metadata">

**Author:** [@BeefofAges](https://meta.discourse.org/u/BeefofAges)\
**Replies:** 4\
**Last updated:** [September 23, 2023, 10:19pm UTC](https://meta.discourse.org/t/markdown-bbcode-and-emoji-not-rendering-in-api-post/279636 "2023-09-23T22:19:29Z")

</div>

I’m using the Discourse API to update a post via PUT; the updates are made, but only accepted HTML tags are parsed. Markdown, BBCode, and emojis are not rendered correctly. I’m passing the PUT request with a content type…

---

## [Want to set internal forum on our reactjs member's platform](https://meta.discourse.org/t/want-to-set-internal-forum-on-our-reactjs-members-platform/279775)

<div class="topic-metadata">

**Author:** [@Mukesh\_Naraniya](https://meta.discourse.org/u/Mukesh_Naraniya)\
**Replies:** 2\
**Last updated:** [September 23, 2023, 3:26pm UTC](https://meta.discourse.org/t/want-to-set-internal-forum-on-our-reactjs-members-platform/279775 "2023-09-23T15:26:13Z")

</div>

I have 1 specific requirement: On my reactjs platform for our internal members, we have a proposal where conversations need to happen through Discourse forum. For each proposal there are multiple people involved who sho…

---

## [Forum inside Android app - cannot access gallery to add pictures to post](https://meta.discourse.org/t/forum-inside-android-app-cannot-access-gallery-to-add-pictures-to-post/279679)

<div class="topic-metadata">

**Author:** [@Oohyeah88](https://meta.discourse.org/u/Oohyeah88)\
**Replies:** 1\
**Last updated:** [September 21, 2023, 10:05am UTC](https://meta.discourse.org/t/forum-inside-android-app-cannot-access-gallery-to-add-pictures-to-post/279679 "2023-09-21T10:05:47Z")

</div>

We are creating an mobile app which includes our forum, accessed through one of the tabs on the app. All seems to work fine, but I can’t seem to post a picture. Using a normal browser, pressing this would access the pho…

---

## [Why does markdown do this? (whitespace trimming and other features)](https://meta.discourse.org/t/why-does-markdown-do-this-whitespace-trimming-and-other-features/279437)

<div class="topic-metadata">

**Author:** [@Rhababo](https://meta.discourse.org/u/Rhababo)\
**Replies:** 6\
**Last updated:** [September 20, 2023, 7:16pm UTC](https://meta.discourse.org/t/why-does-markdown-do-this-whitespace-trimming-and-other-features/279437 "2023-09-20T19:16:48Z")

</div>

Apologies for the vague title, I’m in the process of modifying some of the functionality with markdown on discourse to better suit the needs of my community which is coming over from a mybb forum. Discourse is my first…

---

## [Create an advertising page](https://meta.discourse.org/t/create-an-advertising-page/279349)

<div class="topic-metadata">

**Author:** [@Shatabdi\_Dash](https://meta.discourse.org/u/Shatabdi_Dash)\
**Replies:** 3\
**Last updated:** [September 18, 2023, 10:38pm UTC](https://meta.discourse.org/t/create-an-advertising-page/279349 "2023-09-18T22:38:21Z")

</div>

I want to create a page called admin/advertise. and the advertise button is present inside the navpill. nav nav-pills section. but whenever i try to make this there is a routing error is there. how can I solve this.

---

## [Own fixed while scrolling Navbar](https://meta.discourse.org/t/own-fixed-while-scrolling-navbar/279396)

<div class="topic-metadata">

**Author:** [@fuchs](https://meta.discourse.org/u/fuchs)\
**Replies:** 1\
**Last updated:** [September 18, 2023, 3:06pm UTC](https://meta.discourse.org/t/own-fixed-while-scrolling-navbar/279396 "2023-09-18T15:06:02Z")

</div>

Hello Discourse Community, I have a question. I want to add my own fixed while scrolling Navbar on top of the Discourse Navigation. So I added this part to the Customize Section in Header: \<div class="navbar"\> \<di…

---

## [Simple steps to modify video player](https://meta.discourse.org/t/video/279149)

<div class="topic-metadata">

**Author:** [@zengyunsi](https://meta.discourse.org/u/zengyunsi)\
**Replies:** 9\
**Last updated:** [September 17, 2023, 8:45am UTC](https://meta.discourse.org/t/video/279149 "2023-09-17T08:45:46Z")

</div>

The mp4 player in discourse is ugly, I was thinking about how to improve it and found this. It feels quite minimalist and the configuration method is also relatively simple, only requiring the inclusion of CSS and JS. Add the JS and CSS to the theme header

---

## [How to embed JavaScript script in front of ,\</body\> tag](https://meta.discourse.org/t/how-to-embed-javascript-script-in-front-of-body-tag/279159)

<div class="topic-metadata">

**Author:** [@zengyunsi](https://meta.discourse.org/u/zengyunsi)\
**Replies:** 7\
**Last updated:** [September 16, 2023, 4:15pm UTC](https://meta.discourse.org/t/how-to-embed-javascript-script-in-front-of-body-tag/279159 "2023-09-16T16:15:10Z")

</div>

I want to change a style for video in discourse, how to embed JavaScript script before ,\</body\> tag Tried editing it in the HEAD, it doesn’t work perfectly! Thanks! \<script src="/plyr.js"\>\</script\> \<scrip…

---

## [How to Change Header Icon Color?](https://meta.discourse.org/t/how-to-change-header-icon-color/106098)

<div class="topic-metadata">

**Author:** [@Sentinelrv](https://meta.discourse.org/u/Sentinelrv)\
**Replies:** 19\
**Last updated:** [September 16, 2023, 3:06pm UTC](https://meta.discourse.org/t/how-to-change-header-icon-color/106098 "2023-09-16T15:06:21Z")

</div>

This is currently what our forum looks like… We are going to rebrand our color scheme. The header will be green with a white header logo. I am having trouble figuring out how to change the colors of the magnifying g…

---

## [Adding a sticky header & footer](https://meta.discourse.org/t/adding-a-sticky-header-footer/273017)

<div class="topic-metadata">

**Author:** [@Shaneod](https://meta.discourse.org/u/Shaneod)\
**Replies:** 12\
**Last updated:** [September 16, 2023, 7:58am UTC](https://meta.discourse.org/t/adding-a-sticky-header-footer/273017 "2023-09-16T07:58:58Z")

</div>

Hi Guys, Looking into hosting some ads, I am using the official ad plugin which is great in that it allows you to add assets to various points on the site. However talking to ad agency and it seems to get the best ad …

---

## [How to make "toggle whisper" reply using API and POST request](https://meta.discourse.org/t/how-to-make-toggle-whisper-reply-using-api-and-post-request/279192)

<div class="topic-metadata">

**Author:** [@audrey\_jin](https://meta.discourse.org/u/audrey_jin)\
**Replies:** 1\
**Last updated:** [September 15, 2023, 10:13pm UTC](https://meta.discourse.org/t/how-to-make-toggle-whisper-reply-using-api-and-post-request/279192 "2023-09-15T22:13:40Z")

</div>

I was looking at Discourse API Docs this to create a new post, but I didn’t see a field to make the whisper reply (only visible to some users), can anyone help me with this? Thanks!!

---

## [2nd message not posted to Discourse server](https://meta.discourse.org/t/2nd-message-not-posted-to-discourse-server/279094)

<div class="topic-metadata">

**Author:** [@lenny1](https://meta.discourse.org/u/lenny1)\
**Replies:** 5\
**Last updated:** [September 15, 2023, 5:03pm UTC](https://meta.discourse.org/t/2nd-message-not-posted-to-discourse-server/279094 "2023-09-15T17:03:37Z")

</div>

Im trying to send more than one message to my Discourse forum server using this API: My java codes: public void test() throws UnirestException, JsonMappingException, JsonProcessingException, InterruptedException { …

---

## [Create staged users via API?](https://meta.discourse.org/t/create-staged-users-via-api/279052)

<div class="topic-metadata">

**Author:** [@mattdm](https://meta.discourse.org/u/mattdm)\
**Replies:** 8\
**Last updated:** [September 15, 2023, 2:36pm UTC](https://meta.discourse.org/t/create-staged-users-via-api/279052 "2023-09-15T14:36:26Z")

</div>

I’m kicking around the idea of building a webhook+api bridge service to connect given categories on two different discourse forums. The rough idea would be: A webhook on each server for Topic and Post events\[1\] A liste…

---

## [How to Add Mailchimp Subscriber Popup?](https://meta.discourse.org/t/how-to-add-mailchimp-subscriber-popup/127994)

<div class="topic-metadata">

**Author:** [@swamidass](https://meta.discourse.org/u/swamidass)\
**Replies:** 6\
**Last updated:** [September 14, 2023, 2:57pm UTC](https://meta.discourse.org/t/how-to-add-mailchimp-subscriber-popup/127994 "2023-09-14T14:57:53Z")

</div>

Does anyone know how to add this to a theme? I imagine it is supposed to be in the customization for the theme, but adding the code there doesn’t seem to do the trick.

---

## [How to change search banner headline font size?](https://meta.discourse.org/t/how-to-change-search-banner-headline-font-size/278993)

<div class="topic-metadata">

**Author:** [@Aaron\_Pang](https://meta.discourse.org/u/Aaron_Pang)\
**Replies:** 2\
**Last updated:** [September 14, 2023, 12:29pm UTC](https://meta.discourse.org/t/how-to-change-search-banner-headline-font-size/278993 "2023-09-14T12:29:32Z")

</div>

How to change: search\_banner.headline Font size, for example set to 24

---

## [Architecture Diagram](https://meta.discourse.org/t/architecture-diagram/278910)

<div class="topic-metadata">

**Author:** [@mikessmt](https://meta.discourse.org/u/mikessmt)\
**Replies:** 1\
**Last updated:** [September 13, 2023, 7:45pm UTC](https://meta.discourse.org/t/architecture-diagram/278910 "2023-09-13T19:45:17Z")

</div>

Has anyone put together an architecture diagram for their Discourse forum? If so, and you wouldn’t mind sharing it(even if you blank out the site particulars), I’d appreciate it. If someone’s already made a wheel, I’d …

---

## [How to add separator lines to the Welcome Banner sections?](https://meta.discourse.org/t/how-to-add-separator-lines-to-the-welcome-banner-sections/278903)

<div class="topic-metadata">

**Author:** [@kynic](https://meta.discourse.org/u/kynic)\
**Replies:** 4\
**Last updated:** [September 13, 2023, 3:35pm UTC](https://meta.discourse.org/t/how-to-add-separator-lines-to-the-welcome-banner-sections/278903 "2023-09-13T15:35:44Z")

</div>

Okay, np :slight\_smile: By the way, can you tell me the CSS to add the separator lines?

---

## [Correct scope for Set Notification Level API endpoint](https://meta.discourse.org/t/correct-scope-for-set-notification-level-api-endpoint/263163)

<div class="topic-metadata">

**Author:** [@Gooman](https://meta.discourse.org/u/Gooman)\
**Replies:** 3\
**Last updated:** [September 13, 2023, 11:52am UTC](https://meta.discourse.org/t/correct-scope-for-set-notification-level-api-endpoint/263163 "2023-09-13T11:52:52Z")

</div>

What’s the correct scope to limit an API Key to just the Set Notification Level endpoint? My external service needs to set the notification level on a given topic, for any given user. So I guess I need User Level to be …

---

## [How to put an add every 2 posts?](https://meta.discourse.org/t/how-to-put-an-add-every-2-posts/278826)

<div class="topic-metadata">

**Author:** [@Shatabdi\_Dash](https://meta.discourse.org/u/Shatabdi_Dash)\
**Replies:** 2\
**Last updated:** [September 13, 2023, 8:14am UTC](https://meta.discourse.org/t/how-to-put-an-add-every-2-posts/278826 "2023-09-13T08:14:54Z")

</div>

I want to add one type of ad box but in my topic session in between 2 articles. How can I add this using plugin kindly check the issue there

---

## [Issue installing plugin](https://meta.discourse.org/t/issue-installing-plugin/278514)

<div class="topic-metadata">

**Author:** [@Shatabdi\_Dash](https://meta.discourse.org/u/Shatabdi_Dash)\
**Replies:** 27\
**Last updated:** [September 13, 2023, 8:07am UTC](https://meta.discourse.org/t/issue-installing-plugin/278514 "2023-09-13T08:07:47Z")

</div>

I am facing an issue. my plugin is installed and enabled perfectly. but not working.

---

## [Content box](https://meta.discourse.org/t/content-box/278684)

<div class="topic-metadata">

**Author:** [@Shatabdi\_Dash](https://meta.discourse.org/u/Shatabdi_Dash)\
**Replies:** 3\
**Last updated:** [September 13, 2023, 7:05am UTC](https://meta.discourse.org/t/content-box/278684 "2023-09-13T07:05:52Z")

</div>

I want to create a plugin that should put a content box in between the my topics. After each 2 topic i want a content box.

---

## [How to keep line breaks on excerpts?](https://meta.discourse.org/t/how-to-keep-line-breaks-on-excerpts/278755)

<div class="topic-metadata">

**Author:** [@Óscar\_David\_Sánchez](https://meta.discourse.org/u/%C3%93scar_David_S%C3%A1nchez)\
**Replies:** 1\
**Last updated:** [September 12, 2023, 1:53pm UTC](https://meta.discourse.org/t/how-to-keep-line-breaks-on-excerpts/278755 "2023-09-12T13:53:27Z")

</div>

Hi! I’m using this theme component for a poetry community and I would like that the excerpts do not escape new lines (so verses are still in separated lines, even in the excerpt). I assume I must create some kind of sim…

---

## [Trouble with linting workflow in a plugin](https://meta.discourse.org/t/trouble-with-linting-workflow-in-a-plugin/278724)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 0\
**Last updated:** [September 12, 2023, 1:42pm UTC](https://meta.discourse.org/t/trouble-with-linting-workflow-in-a-plugin/278724 "2023-09-12T13:42:21Z")

</div>

Trouble with robocop and linting? I’ve got this in my workflow, that is mostly copied from name: Discourse Plugin on: push: branches: - main - master schedule: - cron: 22 05 \* \* \* jobs…

---

## [SCSS color property variable headaches](https://meta.discourse.org/t/scss-color-property-variable-headaches/278711)

<div class="topic-metadata">

**Author:** [@Lilly](https://meta.discourse.org/u/Lilly)\
**Replies:** 6\
**Last updated:** [September 12, 2023, 1:59pm UTC](https://meta.discourse.org/t/scss-color-property-variable-headaches/278711 "2023-09-12T13:59:51Z")

</div>

Can some knowledgeable code guru explain why this seems to always throw an error (regardless of the settings.yaml file contents): .d-header { background: rgba($header\_color, $transparency); } but this does not? .d…

---

## [Differentiate contents from the topic list rows using different colors](https://meta.discourse.org/t/differentiate-contents-from-the-topic-list-rows-using-different-colors/278710)

<div class="topic-metadata">

**Author:** [@Renato\_Mendes](https://meta.discourse.org/u/Renato_Mendes)\
**Replies:** 1\
**Last updated:** [September 12, 2023, 12:42pm UTC](https://meta.discourse.org/t/differentiate-contents-from-the-topic-list-rows-using-different-colors/278710 "2023-09-12T12:42:59Z")

</div>

Hey, guys! This is an interesting solution. I was wondering if it would be possible to set a slightly different background color for title and tags, so it gets easier to identify the next topic. As it is now, I feel it’s…

---

## [Hide description in subcategory boxes \[how edit css?\]](https://meta.discourse.org/t/hide-description-in-subcategory-boxes-how-edit-css/278691)

<div class="topic-metadata">

**Author:** [@360Creators](https://meta.discourse.org/u/360Creators)\
**Replies:** 2\
**Last updated:** [September 12, 2023, 10:04am UTC](https://meta.discourse.org/t/hide-description-in-subcategory-boxes-how-edit-css/278691 "2023-09-12T10:04:19Z")

</div>

I read this post and it mentioned to customize the CSS. I just wonder: how to do this more specifically? I’m able to get this far: And get to the code editor: But from there on..?

---

## [Have you already done a redesign and want to share?](https://meta.discourse.org/t/have-you-already-done-a-redesign-and-want-to-share/271509)

<div class="topic-metadata">

**Author:** [@per\_coh](https://meta.discourse.org/u/per_coh)\
**Replies:** 0\
**Last updated:** [July 13, 2023, 7:14am UTC](https://meta.discourse.org/t/have-you-already-done-a-redesign-and-want-to-share/271509 "2023-07-13T07:14:11Z")

</div>

Hi folks, looking at doing some redesign. Would anyone happen to have done some pre-work? Basically just looking to list the different pages we’ll need to look at, prioritize which ones to do first. Generate frames for …

---

## [Permissions for 3rd party analytics](https://meta.discourse.org/t/permissions-for-3rd-party-analytics/270374)

<div class="topic-metadata">

**Author:** [@daniel-ospina](https://meta.discourse.org/u/daniel-ospina)\
**Replies:** 0\
**Last updated:** [July 3, 2023, 11:48am UTC](https://meta.discourse.org/t/permissions-for-3rd-party-analytics/270374 "2023-07-03T11:48:36Z")

</div>

We’re developing an analytics Plug-in. What permissions do we need from a client who’s using Discourse Hosting? (we want to extract message content, sender, category, etc. rather thorough extraction of data to create ne…

---

## [Re-Activate a suspended User via API](https://meta.discourse.org/t/re-activate-a-suspended-user-via-api/197360)

<div class="topic-metadata">

**Author:** [@Simone\_Torrisi](https://meta.discourse.org/u/Simone_Torrisi)\
**Replies:** 2\
**Last updated:** [July 16, 2021, 4:27pm UTC](https://meta.discourse.org/t/re-activate-a-suspended-user-via-api/197360 "2021-07-16T16:27:10Z")

</div>

I might be wrong, but I didn’t find anything here related to how to reactivate a previously suspended user, using APIs. I’ve successfully suspended a user because the subscription to a service they purchased is ended. B…

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

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