# Development

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

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

**Page:** 39

---

## [November 2023 - refactoring Discovery routes: how will it affect my theme/plugin?](https://meta.discourse.org/t/november-2023-refactoring-discovery-routes-how-will-it-affect-my-theme-plugin/282816)

<div class="topic-metadata">

**Author:** [@david](https://meta.discourse.org/u/david)\
**Replies:** 2\
**Last updated:** [November 6, 2023, 10:47am UTC](https://meta.discourse.org/t/november-2023-refactoring-discovery-routes-how-will-it-affect-my-theme-plugin/282816 "2023-11-06T10:47:34Z")

</div>

As part of our project to upgrade Discourse to the latest version of Ember, we’ve been working on a significant refactoring of the Discovery (a.k.a. the ‘topic list’) routes. This topic is targeted at theme/plugin devel…

---

## [How to switch image based on dark or light mode](https://meta.discourse.org/t/how-to-switch-image-based-on-dark-or-light-mode/284443)

<div class="topic-metadata">

**Author:** [@miao\_miao](https://meta.discourse.org/u/miao_miao)\
**Replies:** 1\
**Last updated:** [November 5, 2023, 6:57am UTC](https://meta.discourse.org/t/how-to-switch-image-based-on-dark-or-light-mode/284443 "2023-11-05T06:57:25Z")

</div>

I would like to custom my banner image according to what mode the os is using now. I tried to add this to my color\_definitions.scss stylesheet: $banner: url(dark-light-choose($light-banner, $dark-banner)); :root { -…

---

## [Welcome/welcome back banner code not working?](https://meta.discourse.org/t/welcome-welcome-back-banner-code-not-working/284446)

<div class="topic-metadata">

**Author:** [@kynic](https://meta.discourse.org/u/kynic)\
**Replies:** 4\
**Last updated:** [November 5, 2023, 4:55am UTC](https://meta.discourse.org/t/welcome-welcome-back-banner-code-not-working/284446 "2023-11-05T04:55:14Z")

</div>

I tried this and it not showing the user name. Can anyone take a look as why it is not working now? :slightly\_smiling\_face: I want to use it. :slightly\_smiling\_face:

---

## [Hide sidebar on a select category](https://meta.discourse.org/t/hide-sidebar-on-a-select-category/284301)

<div class="topic-metadata">

**Author:** [@Marius\_Ciepluch](https://meta.discourse.org/u/Marius_Ciepluch)\
**Replies:** 4\
**Last updated:** [November 3, 2023, 5:15pm UTC](https://meta.discourse.org/t/hide-sidebar-on-a-select-category/284301 "2023-11-03T17:15:32Z")

</div>

Hi, Would someone know how I can hide the Sidebar when a posting of select categories is open? I would show it by default, but not for posts in that category. For example, in the category “Start”.

---

## [How to change the sidebar font size?](https://meta.discourse.org/t/how-to-change-the-sidebar-font-size/284289)

<div class="topic-metadata">

**Author:** [@Frankz](https://meta.discourse.org/u/Frankz)\
**Replies:** 9\
**Last updated:** [November 3, 2023, 3:17am UTC](https://meta.discourse.org/t/how-to-change-the-sidebar-font-size/284289 "2023-11-03T03:17:07Z")

</div>

The sidebar font size is too small. How to change it?

---

## [Total Posts count instead of Post per month](https://meta.discourse.org/t/total-posts-count-instead-of-post-per-month/283992)

<div class="topic-metadata">

**Author:** [@Ashwani\_Kumar](https://meta.discourse.org/u/Ashwani_Kumar)\
**Replies:** 2\
**Last updated:** [November 1, 2023, 11:12am UTC](https://meta.discourse.org/t/total-posts-count-instead-of-post-per-month/283992 "2023-11-01T11:12:21Z")

</div>

Need to show total post count instead of posts per month/ per week do we have any option to set this from backend .

---

## [Chrome adblock extension house ads issue](https://meta.discourse.org/t/chrome-adblock-extension-house-ads-issue/284097)

<div class="topic-metadata">

**Author:** [@simon](https://meta.discourse.org/u/simon)\
**Replies:** 0\
**Last updated:** [November 1, 2023, 10:49am UTC](https://meta.discourse.org/t/chrome-adblock-extension-house-ads-issue/284097 "2023-11-01T10:49:34Z")

</div>

I’m fairly sure this is related to the issue discussed here: ServiceWorker thinks I'm offline when I'm not. Testing on the latest Chrome browser on Ubuntu with both the Adblock and Adblock Plus browser extensions, havin…

---

## [Add ignore to post menu](https://meta.discourse.org/t/add-ignore-to-post-menu/284036)

<div class="topic-metadata">

**Author:** [@Muhammed\_EKİCİ](https://meta.discourse.org/u/Muhammed_EK%C4%B0C%C4%B0)\
**Replies:** 10\
**Last updated:** [November 1, 2023, 6:36am UTC](https://meta.discourse.org/t/add-ignore-to-post-menu/284036 "2023-11-01T06:36:40Z")

</div>

We use it as a discourse web view in a part of our mobile application. In the latest update we sent, Apple wants users to have the ignore feature in a visible place. That’s why it doesn’t accept our update. Actually, th…

---

## [Plans to support Markdownit Ruler for BBCode?](https://meta.discourse.org/t/plans-to-support-markdownit-ruler-for-bbcode/283517)

<div class="topic-metadata">

**Author:** [@hawm](https://meta.discourse.org/u/hawm)\
**Replies:** 4\
**Last updated:** [October 31, 2023, 11:50pm UTC](https://meta.discourse.org/t/plans-to-support-markdownit-ruler-for-bbcode/283517 "2023-10-31T23:50:27Z")

</div>

My use case is to disable/enable bbcode rules when using the replace rule of bbcode. replace: function (state, tagInfo, content) { const source = state.push("my\_token", "div", 0); try { md.block.bbcode.ruler.dis…

---

## [Gate our community to just members of our Shopify site?](https://meta.discourse.org/t/gate-our-community-to-just-members-of-our-shopify-site/283036)

<div class="topic-metadata">

**Author:** [@treyfrancisco](https://meta.discourse.org/u/treyfrancisco)\
**Replies:** 6\
**Last updated:** [October 31, 2023, 10:23am UTC](https://meta.discourse.org/t/gate-our-community-to-just-members-of-our-shopify-site/283036 "2023-10-31T10:23:17Z")

</div>

We have a large Shopify site and we are getting ready to launch our Discourse community. We want to make it so that only members of our Shopify site (e.g. customers that have created a login on our store), can access our…

---

## [Can you customize/override core text with a theme component?](https://meta.discourse.org/t/can-you-customize-override-core-text-with-a-theme-component/283974)

<div class="topic-metadata">

**Author:** [@JonahAragon1](https://meta.discourse.org/u/JonahAragon1)\
**Replies:** 3\
**Last updated:** [October 31, 2023, 6:08am UTC](https://meta.discourse.org/t/can-you-customize-override-core-text-with-a-theme-component/283974 "2023-10-31T06:08:43Z")

</div>

I have a theme component which replaces components/google-search with a box that searches DuckDuckGo instead, simple enough. I can’t figure out how to make the theme component change/replace this text (js.search.or\_searc…

---

## [To best to create a yammer importer pm](https://meta.discourse.org/t/to-best-to-create-a-yammer-importer-pm/227849)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 6\
**Last updated:** [October 30, 2023, 9:02pm UTC](https://meta.discourse.org/t/to-best-to-create-a-yammer-importer-pm/227849 "2023-10-30T21:02:30Z")

</div>

I’ve created a yammer importer for someone and they would like for it to be publicly available. (Hey @gerhard , I think this one is in your wheelhouse.) I can’t quite make sense of yammer’s popularity and/or whether it’s…

---

## [How to set script to a theme component?](https://meta.discourse.org/t/how-to-set-script-to-a-theme-component/283860)

<div class="topic-metadata">

**Author:** [@Samir\_Sabri](https://meta.discourse.org/u/Samir_Sabri)\
**Replies:** 3\
**Last updated:** [October 30, 2023, 6:39am UTC](https://meta.discourse.org/t/how-to-set-script-to-a-theme-component/283860 "2023-10-30T06:39:24Z")

</div>

I want to add a \<script\> inside the theme, to customize the home logo hyper link, can I do this from the admin settings via browser ? or shall I dig into the files on the server? any idea ?

---

## [CSRF problem in development with 'Discourse OpenID Connect' plug-in](https://meta.discourse.org/t/csrf-problem-in-development-with-discourse-openid-connect-plug-in/282786)

<div class="topic-metadata">

**Author:** [@wayway\_way](https://meta.discourse.org/u/wayway_way)\
**Replies:** 7\
**Last updated:** [October 28, 2023, 7:34am UTC](https://meta.discourse.org/t/csrf-problem-in-development-with-discourse-openid-connect-plug-in/282786 "2023-10-28T07:34:25Z")

</div>

I spent five or six weeks setting up Discourse’s SSO, and encountered some problems during this period. Now there is a problem that is blocking me. I will record this problem in as much detail as possible. Development e…

---

## [Custom route ignore few url from discourse](https://meta.discourse.org/t/custom-route-ignore-few-url-from-discourse/283405)

<div class="topic-metadata">

**Author:** [@Hitesh\_Sharma](https://meta.discourse.org/u/Hitesh_Sharma)\
**Replies:** 4\
**Last updated:** [October 27, 2023, 10:28am UTC](https://meta.discourse.org/t/custom-route-ignore-few-url-from-discourse/283405 "2023-10-27T10:28:47Z")

</div>

Hi, I am trying to ignore specific URLs on this custom route using the code below. (routes.rb files) get '/\*path' =\> 'static#custom\_redirect', constraints: lambda { |request| !request.path.include?('/preferences/' ) |…

---

## [Accessing the Admin Panel in the Source Code](https://meta.discourse.org/t/accessing-the-admin-panel-in-the-source-code/283571)

<div class="topic-metadata">

**Author:** [@Marshably](https://meta.discourse.org/u/Marshably)\
**Replies:** 7\
**Last updated:** [October 27, 2023, 7:02am UTC](https://meta.discourse.org/t/accessing-the-admin-panel-in-the-source-code/283571 "2023-10-27T07:02:59Z")

</div>

Hi all! I wonder if anyone can help me locate where the User Info part of the Admin Panel is located in the Discourse Source Code. I need to make an edit to the Source Code that will hide User IP Addresses when a Modera…

---

## [Is it possible to use Discourse within a browser based video game?](https://meta.discourse.org/t/is-it-possible-to-use-discourse-within-a-browser-based-video-game/283615)

<div class="topic-metadata">

**Author:** [@Sylvi](https://meta.discourse.org/u/Sylvi)\
**Replies:** 1\
**Last updated:** [October 27, 2023, 2:14am UTC](https://meta.discourse.org/t/is-it-possible-to-use-discourse-within-a-browser-based-video-game/283615 "2023-10-27T02:14:44Z")

</div>

I’m new to Discourse. I’d like to know if anyone has had experience using Discourse within a browser based video game, in order to use its chat and account features. I’m hoping to use Discourse on my site as a forum, an…

---

## [Removal of Ember string prototype extensions](https://meta.discourse.org/t/removal-of-ember-string-prototype-extensions/283513)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**Replies:** 4\
**Last updated:** [October 26, 2023, 10:12am UTC](https://meta.discourse.org/t/removal-of-ember-string-prototype-extensions/283513 "2023-10-26T10:12:52Z")

</div>

Problem is @ember/string is deprecated it appears after Ember 4.x? I can’t see this package in Ember 5.x … so this would just be a bandaid until Discourse rapidly moves into 5.x (which David alluded to here: Upgrading D…

---

## [Adding number of posts in each category](https://meta.discourse.org/t/adding-number-of-posts-in-each-category/277350)

<div class="topic-metadata">

**Author:** [@OsaIsacson](https://meta.discourse.org/u/OsaIsacson)\
**Replies:** 4\
**Last updated:** [October 26, 2023, 9:40am UTC](https://meta.discourse.org/t/adding-number-of-posts-in-each-category/277350 "2023-10-26T09:40:40Z")

</div>

I am using Custom Header Links and wonder if it is possible to in it pass number of posts. Does there exist a shorthand that grabs the current nr of posts for a specific category? Like so: Current Wanted

---

## [Creating bot on discourse](https://meta.discourse.org/t/creating-bot-on-discourse/224822)

<div class="topic-metadata">

**Author:** [@seeminglee](https://meta.discourse.org/u/seeminglee)\
**Replies:** 7\
**Last updated:** [October 24, 2023, 3:11pm UTC](https://meta.discourse.org/t/creating-bot-on-discourse/224822 "2023-10-24T15:11:38Z")

</div>

Is there a way to create a bot on Discourse that would reply to my commands, in a similar way that I have built many of my Discord bots? Basically, I know that there are various plugins that I can install, but in my min…

---

## [Can someone please explain to me how the User Card pop-up works?](https://meta.discourse.org/t/can-someone-please-explain-to-me-how-the-user-card-pop-up-works/93479)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**Replies:** 7\
**Last updated:** [October 24, 2023, 9:50am UTC](https://meta.discourse.org/t/can-someone-please-explain-to-me-how-the-user-card-pop-up-works/93479 "2023-10-24T09:50:28Z")

</div>

Guys, i’m trying to work out how the code for User Card works. How does it create a pop-up and then escalate to a new page? \<a href="/u/postinguser" data-user-card="postinguser" class=""\>\<img alt="" src="/letter\_avatar…

---

## [Code-level performance testing](https://meta.discourse.org/t/code-level-performance-testing/282856)

<div class="topic-metadata">

**Author:** [@angus](https://meta.discourse.org/u/angus)\
**Replies:** 1\
**Last updated:** [October 23, 2023, 11:29pm UTC](https://meta.discourse.org/t/code-level-performance-testing/282856 "2023-10-23T23:29:59Z")

</div>

I’ve been looking at the performance of the ActivityPub plugin recently and considering the best ways to reliably test, and prove, performance for the purpose of such a project. Here’s a few initial pieces of context: …

---

## [Mobile view homepage guide](https://meta.discourse.org/t/mobile-view-homepage-guide/282904)

<div class="topic-metadata">

**Author:** [@Plabforum](https://meta.discourse.org/u/Plabforum)\
**Replies:** 6\
**Last updated:** [October 21, 2023, 1:01pm UTC](https://meta.discourse.org/t/mobile-view-homepage-guide/282904 "2023-10-21T13:01:17Z")

</div>

The two options you see \[all categories\] \[all tags\], beside Latest, below header is visible in PC view But not visible on mobile view It can be brought by tweaking around but I want that to be visible by default …

---

## [Can I disable the + Section button in the sidebar for non-admins?](https://meta.discourse.org/t/can-i-disable-the-section-button-in-the-sidebar-for-non-admins/282452)

<div class="topic-metadata">

**Author:** [@Jeff\_Gilmore](https://meta.discourse.org/u/Jeff_Gilmore)\
**Replies:** 4\
**Last updated:** [October 20, 2023, 7:07pm UTC](https://meta.discourse.org/t/can-i-disable-the-section-button-in-the-sidebar-for-non-admins/282452 "2023-10-20T19:07:37Z")

</div>

I have been asked to do a number of simplifications of the Discourse interface. One of these is to remove the + icon at the bottom of the sidebar (which is used to create new sections within the sidebar), preferably onl…

---

## [Hide some preference sub-tabs under the user profile?](https://meta.discourse.org/t/hide-some-preference-sub-tabs-under-the-user-profile/282454)

<div class="topic-metadata">

**Author:** [@Jeff\_Gilmore](https://meta.discourse.org/u/Jeff_Gilmore)\
**Replies:** 2\
**Last updated:** [October 20, 2023, 7:02pm UTC](https://meta.discourse.org/t/hide-some-preference-sub-tabs-under-the-user-profile/282454 "2023-10-20T19:02:58Z")

</div>

I’m being asked to simplify some aspects of the Discourse interface to minimize confusion for a fairly non-techy user base. I would like to disable some of the preference sub-tabs under the user profile: How might I…

---

## [Search with custom user fields](https://meta.discourse.org/t/search-with-custom-user-fields/282785)

<div class="topic-metadata">

**Author:** [@Hitesh\_Sharma](https://meta.discourse.org/u/Hitesh_Sharma)\
**Replies:** 2\
**Last updated:** [October 19, 2023, 12:56pm UTC](https://meta.discourse.org/t/search-with-custom-user-fields/282785 "2023-10-19T12:56:38Z")

</div>

Can we search for a user with custom fields in discourse API ?

---

## [Failed to post a topic](https://meta.discourse.org/t/failed-to-post-a-topic/282471)

<div class="topic-metadata">

**Author:** [@fbpbdmin](https://meta.discourse.org/u/fbpbdmin)\
**Replies:** 13\
**Last updated:** [October 18, 2023, 7:28pm UTC](https://meta.discourse.org/t/failed-to-post-a-topic/282471 "2023-10-18T19:28:02Z")

</div>

tried to post a topic with the API, it failed with this error msg: {‘action’: ‘create\_post’, ‘errors’: \[‘Body is too short (minimum is 1 character)’, ‘Body seems unclear, is it a complete sentence?’\]} the message to p…

---

## [Datepicker in a User Custom field](https://meta.discourse.org/t/datepicker-in-a-user-custom-field/83550)

<div class="topic-metadata">

**Author:** [@Vaping\_Community](https://meta.discourse.org/u/Vaping_Community)\
**Replies:** 10\
**Last updated:** [October 18, 2023, 4:19pm UTC](https://meta.discourse.org/t/datepicker-in-a-user-custom-field/83550 "2023-10-18T16:19:31Z")

</div>

Is it possible to add a class to a custom user field to use a datepicker. Thanks Edit - The Final Solution: \<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"\>\</script\> \<link rel="stylesheet" href="//code.jq…

---

## [How do I remove this blue border on homepage and category topic lists?](https://meta.discourse.org/t/how-do-i-remove-this-blue-border-on-homepage-and-category-topic-lists/282629)

<div class="topic-metadata">

**Author:** [@Dennis\_P\_Z](https://meta.discourse.org/u/Dennis_P_Z)\
**Replies:** 7\
**Last updated:** [October 18, 2023, 12:03pm UTC](https://meta.discourse.org/t/how-do-i-remove-this-blue-border-on-homepage-and-category-topic-lists/282629 "2023-10-18T12:03:49Z")

</div>

How can I remove this blue border when click topics? I tried css ::before I could not locate it nor disable it … Many thanks :grinning:

---

## [Discourse integration with medical grade apps](https://meta.discourse.org/t/discourse-integration-with-medical-grade-apps/280656)

<div class="topic-metadata">

**Author:** [@51mon](https://meta.discourse.org/u/51mon)\
**Replies:** 15\
**Last updated:** [October 17, 2023, 10:54pm UTC](https://meta.discourse.org/t/discourse-integration-with-medical-grade-apps/280656 "2023-10-17T22:54:58Z")

</div>

Hi all I’m looking for some guidance as to sources of insight. I’m having a few discussions with developers in early round venture funding Who are creating medical grade rehabilitation tools. Also some health authoriti…

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

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