# Development

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

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

**Page:** 52

---

## [How to split the categories into sections with titles?](https://meta.discourse.org/t/how-to-split-the-categories-into-sections-with-titles/199494)

<div class="topic-metadata">

**Author:** [@Drew-ART](https://meta.discourse.org/u/Drew-ART)\
**Replies:** 3\
**Last updated:** [March 14, 2023, 1:03pm UTC](https://meta.discourse.org/t/how-to-split-the-categories-into-sections-with-titles/199494 "2023-03-14T13:03:38Z")

</div>

I feel someone must have done this previously but i can’t find it mentioned anywhere here. I felt we needed three sub-categories so i made that fix, but honestly its not worth it with the bugs caused to other plugins. W…

---

## [How do you set alternating colors in the list of topics](https://meta.discourse.org/t/how-do-you-set-alternating-colors-in-the-list-of-topics/46768)

<div class="topic-metadata">

**Author:** [@Greg11](https://meta.discourse.org/u/Greg11)\
**Replies:** 14\
**Last updated:** [March 14, 2023, 9:43am UTC](https://meta.discourse.org/t/how-do-you-set-alternating-colors-in-the-list-of-topics/46768 "2023-03-14T09:43:54Z")

</div>

How do you set alternating colors in the list of topics? It helps usability a lot, but it is all white by default. example:

---

## [Need to create custom static page as home page](https://meta.discourse.org/t/need-to-create-custom-static-page-as-home-page/200821)

<div class="topic-metadata">

**Author:** [@Rajeev](https://meta.discourse.org/u/Rajeev)\
**Replies:** 8\
**Last updated:** [March 11, 2023, 8:59am UTC](https://meta.discourse.org/t/need-to-create-custom-static-page-as-home-page/200821 "2023-03-11T08:59:07Z")

</div>

Hi, I need a way by which I can create a custom static page, use jquery over it for calling third-party API and use it as a home page for my site. I have already used two plugins which are as follows: procourse-stati…

---

## [PWA Not Work When Add Code In head\_tag.html](https://meta.discourse.org/t/pwa-not-work-when-add-code-in-head-tag-html/257606)

<div class="topic-metadata">

**Author:** [@hoangphuctran93](https://meta.discourse.org/u/hoangphuctran93)\
**Replies:** 6\
**Last updated:** [March 11, 2023, 6:36am UTC](https://meta.discourse.org/t/pwa-not-work-when-add-code-in-head-tag-html/257606 "2023-03-11T06:36:39Z")

</div>

Dear development team, I would like to provide feedback regarding an issue I faced with the Progressive Web Application (PWA) feature on my website. When I added the code to the ‘head\_tag.html’ file from common, the PWA…

---

## [Modifying DirectoryTables](https://meta.discourse.org/t/modifying-directorytables/255156)

<div class="topic-metadata">

**Author:** [@mfrakesSIC](https://meta.discourse.org/u/mfrakesSIC)\
**Replies:** 7\
**Last updated:** [March 10, 2023, 8:28pm UTC](https://meta.discourse.org/t/modifying-directorytables/255156 "2023-03-10T20:28:15Z")

</div>

I know this is dumb before I ask but I accept that I too am dumb. How do I modify this in a custom theme: \<DirectoryTable @items={{this.model}} @columns={{this.columns}} @showT…

---

## [Is there an API scope which covers operations relating to groups?](https://meta.discourse.org/t/is-there-an-api-scope-which-covers-operations-relating-to-groups/249710)

<div class="topic-metadata">

**Author:** [@mattdm](https://meta.discourse.org/u/mattdm)\
**Replies:** 9\
**Last updated:** [March 10, 2023, 6:54pm UTC](https://meta.discourse.org/t/is-there-an-api-scope-which-covers-operations-relating-to-groups/249710 "2023-03-10T18:54:36Z")

</div>

I am making a bot which syncs our SSO group information into Discourse when that information changes in our directory service. There is a granular API scope for user operations, but there doesn’t seem to be one for group…

---

## [Notification menu: more space between anonymized and logout?](https://meta.discourse.org/t/notification-menu-more-space-between-anonymized-and-logout/257704)

<div class="topic-metadata">

**Author:** [@Jagster](https://meta.discourse.org/u/Jagster)\
**Replies:** 2\
**Last updated:** [March 10, 2023, 4:27pm UTC](https://meta.discourse.org/t/notification-menu-more-space-between-anonymized-and-logout/257704 "2023-03-10T16:27:52Z")

</div>

I’m using a lot anonymized user (was it that in discourse lingo?) when I’m writing docs to my users and I need screeshots or just checking out places. When I’m coming back I constantly log myself out because missed icon…

---

## [Requested url error in 'Get a user by id'](https://meta.discourse.org/t/requested-url-error-in-get-a-user-by-id/257571)

<div class="topic-metadata">

**Author:** [@Kushalghosh9899](https://meta.discourse.org/u/Kushalghosh9899)\
**Replies:** 1\
**Last updated:** [March 9, 2023, 11:03am UTC](https://meta.discourse.org/t/requested-url-error-in-get-a-user-by-id/257571 "2023-03-09T11:03:00Z")

</div>

I was trying to get user details by following this docs (Discourse API Docs ), but getting this below error in postman console. Note- id variable has got proper value and api key has set to all users and global value…

---

## [Can't change font colour of 'log in' and 'sign up' buttons in theme?](https://meta.discourse.org/t/cant-change-font-colour-of-log-in-and-sign-up-buttons-in-theme/257522)

<div class="topic-metadata">

**Author:** [@Discoursenaut](https://meta.discourse.org/u/Discoursenaut)\
**Replies:** 4\
**Last updated:** [March 9, 2023, 4:21pm UTC](https://meta.discourse.org/t/cant-change-font-colour-of-log-in-and-sign-up-buttons-in-theme/257522 "2023-03-09T16:21:55Z")

</div>

I don’t see an option to change the text or background color for the log in/sign up buttons, is there a way to do this? (using dark/light toggle GitHub - discourse/discourse-color-scheme-toggle: Color Scheme Toggler to …

---

## [Is there a way to create a footer on the home with icons? (Only for mobile users, and overlapping the topics)](https://meta.discourse.org/t/is-there-a-way-to-create-a-footer-on-the-home-with-icons-only-for-mobile-users-and-overlapping-the-topics/257541)

<div class="topic-metadata">

**Author:** [@danielabc](https://meta.discourse.org/u/danielabc)\
**Replies:** 4\
**Last updated:** [March 9, 2023, 3:26pm UTC](https://meta.discourse.org/t/is-there-a-way-to-create-a-footer-on-the-home-with-icons-only-for-mobile-users-and-overlapping-the-topics/257541 "2023-03-09T15:26:23Z")

</div>

I was thinking of a method of creating a footer on the home page (and on all pages) and in that footer having icons for accessing other options, is there a way to do this with a script? css? or some component theme?

---

## [How to put the Header at the bottom and leave it fixed for all cell phones?](https://meta.discourse.org/t/how-to-put-the-header-at-the-bottom-and-leave-it-fixed-for-all-cell-phones/257420)

<div class="topic-metadata">

**Author:** [@danielabc](https://meta.discourse.org/u/danielabc)\
**Replies:** 1\
**Last updated:** [March 8, 2023, 9:06pm UTC](https://meta.discourse.org/t/how-to-put-the-header-at-the-bottom-and-leave-it-fixed-for-all-cell-phones/257420 "2023-03-08T21:06:49Z")

</div>

when I put the header at the bottom of the site (in Mobile mode) it appears in different psocials for different cell phones, in some cell phones it appears higher, others more to the side, others further down and so on …

---

## [Cannot find an element via JavaScript which does exist](https://meta.discourse.org/t/cannot-find-an-element-via-javascript-which-does-exist/257174)

<div class="topic-metadata">

**Author:** [@darkpixlz](https://meta.discourse.org/u/darkpixlz)\
**Replies:** 3\
**Last updated:** [March 6, 2023, 10:38pm UTC](https://meta.discourse.org/t/cannot-find-an-element-via-javascript-which-does-exist/257174 "2023-03-06T22:38:21Z")

</div>

Hello, I tried making a script to grab the background-image attribute from the profile header, then save it as a root variable. However, my code does not work. I tried many solutions, some of them included AI, which jus…

---

## [Add images to API posts](https://meta.discourse.org/t/add-images-to-api-posts/204651)

<div class="topic-metadata">

**Author:** [@FunnySmile](https://meta.discourse.org/u/FunnySmile)\
**Replies:** 12\
**Last updated:** [March 6, 2023, 4:54am UTC](https://meta.discourse.org/t/add-images-to-api-posts/204651 "2023-03-06T04:54:50Z")

</div>

How to add pictures or file to an upcoming topic?

---

## [API key creation](https://meta.discourse.org/t/api-key-creation/257074)

<div class="topic-metadata">

**Author:** [@manojm321](https://meta.discourse.org/u/manojm321)\
**Replies:** 2\
**Last updated:** [March 5, 2023, 9:21pm UTC](https://meta.discourse.org/t/api-key-creation/257074 "2023-03-05T21:21:51Z")

</div>

IIUC, today only ADMINs can create API key, I don’t see a reason why I shouldn’t allow user to do it for themselves for their corresponding trust\_level. is there a setting I can toggle?

---

## [Discouse Connect avatar\_url with S3](https://meta.discourse.org/t/discouse-connect-avatar-url-with-s3/257094)

<div class="topic-metadata">

**Author:** [@cookieman768](https://meta.discourse.org/u/cookieman768)\
**Replies:** 0\
**Last updated:** [March 5, 2023, 2:14am UTC](https://meta.discourse.org/t/discouse-connect-avatar-url-with-s3/257094 "2023-03-05T02:14:01Z")

</div>

Hi :wave: - I am using Discourse Connect to authorize users on a third-party site using their Discourse credentials. The one issue I’m running into is my avatars are using S3, but those URLs are access controlled. Is the…

---

## [How to mark Topic or Notification as "Read = true"](https://meta.discourse.org/t/how-to-mark-topic-or-notification-as-read-true/109730)

<div class="topic-metadata">

**Author:** [@Edwin\_Mhoy\_Silva](https://meta.discourse.org/u/Edwin_Mhoy_Silva)\
**Replies:** 12\
**Last updated:** [March 4, 2023, 5:52pm UTC](https://meta.discourse.org/t/how-to-mark-topic-or-notification-as-read-true/109730 "2023-03-04T17:52:13Z")

</div>

I´m working with the Discourse API. The website I’m working on gets all the data from the Discourse API. I’m having the issue that because I’m actually not viewing the Topics and Notification, and only getting data thro…

---

## [Override quoteState opts?](https://meta.discourse.org/t/override-quotestate-opts/256612)

<div class="topic-metadata">

**Author:** [@asc](https://meta.discourse.org/u/asc)\
**Replies:** 1\
**Last updated:** [March 3, 2023, 7:46pm UTC](https://meta.discourse.org/t/override-quotestate-opts/256612 "2023-03-03T19:46:32Z")

</div>

I’m trying to make anonymous posts more anonymous by overriding how quotes are displayed in categories where only anonymous posting is enabled. So instead of the default anonymous4302934 some quoted text what I wan…

---

## [Isn't there a way to style CSS tiktok and instagram embed?](https://meta.discourse.org/t/isnt-there-a-way-to-style-css-tiktok-and-instagram-embed/256962)

<div class="topic-metadata">

**Author:** [@danielabc](https://meta.discourse.org/u/danielabc)\
**Replies:** 7\
**Last updated:** [March 3, 2023, 4:19pm UTC](https://meta.discourse.org/t/isnt-there-a-way-to-style-css-tiktok-and-instagram-embed/256962 "2023-03-03T16:19:28Z")

</div>

when I use the inspect element option on the browser page and move it to the CSS of the tiktok and instagram embed, the css works, but when I put this CSS code in the discourse, it doesn’t change anything I was removing…

---

## [Sass variables are not being read in code](https://meta.discourse.org/t/sass-variables-are-not-being-read-in-code/256588)

<div class="topic-metadata">

**Author:** [@darkpixlz](https://meta.discourse.org/u/darkpixlz)\
**Replies:** 7\
**Last updated:** [March 2, 2023, 11:33pm UTC](https://meta.discourse.org/t/sass-variables-are-not-being-read-in-code/256588 "2023-03-02T23:33:24Z")

</div>

Hello, When adding more settings to my theme, it started to become apparent Discourse was ignoring them. Code: #main-outlet-wrapper .sidebar-wrapper { @if $Full\_Width == true { left: 10px; } } @if $Full\_Widt…

---

## [Advice on a hide admin from about page theme component--is this going to slow things down?](https://meta.discourse.org/t/advice-on-a-hide-admin-from-about-page-theme-component-is-this-going-to-slow-things-down/256877)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 5\
**Last updated:** [March 2, 2023, 11:22pm UTC](https://meta.discourse.org/t/advice-on-a-hide-admin-from-about-page-theme-component-is-this-going-to-slow-things-down/256877 "2023-03-02T23:22:32Z")

</div>

I’m wanting to remove my user from the about page of some sites I manage. I’m not the one who’s going to delete your account, or anything else. . . One way is this: But a plugin seems a bit heavy-handed these days, s…

---

## [Generating and retrieving user API keys](https://meta.discourse.org/t/generating-and-retrieving-user-api-keys/256874)

<div class="topic-metadata">

**Author:** [@BlockchainMan](https://meta.discourse.org/u/BlockchainMan)\
**Replies:** 0\
**Last updated:** [March 2, 2023, 7:38pm UTC](https://meta.discourse.org/t/generating-and-retrieving-user-api-keys/256874 "2023-03-02T19:38:50Z")

</div>

Hi, We’re rolling out an self-hosted Discourse server, using the frontend internally as a CMS and serving up various user features via the API. We’re a web3 company, so we are going to build a crypto-wallet authenticati…

---

## [Is there a way to get a top topic list with different formula multiplier?](https://meta.discourse.org/t/is-there-a-way-to-get-a-top-topic-list-with-different-formula-multiplier/253628)

<div class="topic-metadata">

**Author:** [@Yuki](https://meta.discourse.org/u/Yuki)\
**Replies:** 1\
**Last updated:** [March 2, 2023, 4:03pm UTC](https://meta.discourse.org/t/is-there-a-way-to-get-a-top-topic-list-with-different-formula-multiplier/253628 "2023-03-02T16:03:59Z")

</div>

I notice there’s a API to get a the top topic list. Discourse API Docs And I can define what is the “top” list by changing the formula multiplier in the admin panel. My question is that, is there a way I can query for …

---

## [Controlling Theme Components via API?](https://meta.discourse.org/t/controlling-theme-components-via-api/256511)

<div class="topic-metadata">

**Author:** [@kinetiksoft](https://meta.discourse.org/u/kinetiksoft)\
**Replies:** 5\
**Last updated:** [March 1, 2023, 11:56pm UTC](https://meta.discourse.org/t/controlling-theme-components-via-api/256511 "2023-03-01T23:56:46Z")

</div>

Hey everyone, Just wondering if it’s possible to enable/disable theme components via API. It seems like there was a way to do it, but there is no mention of it in current Discourse API Documentation. The clue of such po…

---

## [Discourse dev install script may need upgrade](https://meta.discourse.org/t/discourse-dev-install-script-may-need-upgrade/253031)

<div class="topic-metadata">

**Author:** [@GameDungeon](https://meta.discourse.org/u/GameDungeon)\
**Replies:** 13\
**Last updated:** [March 1, 2023, 4:37am UTC](https://meta.discourse.org/t/discourse-dev-install-script-may-need-upgrade/253031 "2023-03-01T04:37:29Z")

</div>

In the install guide It tells you to run: bash \<(wget -qO- https://raw.githubusercontent.com/discourse/install-rails/master/linux) On Ubuntu 22.04.1 the install fails with: E: Unable to locate package libwebp6 The …

---

## [Tests for plugin that requires a plugin](https://meta.discourse.org/t/tests-for-plugin-that-requires-a-plugin/255406)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 1\
**Last updated:** [February 28, 2023, 4:10pm UTC](https://meta.discourse.org/t/tests-for-plugin-that-requires-a-plugin/255406 "2023-02-28T16:10:36Z")

</div>

I see that the discourse-plugin-skeleton now has this: uses: discourse/.github/.github/workflows/discourse-plugin.yml@v1 so we don’t have to keep updating stuff. But I have a plugin that requires the subscription…

---

## [Best way to update or create existing user, via API, from connected client?](https://meta.discourse.org/t/best-way-to-update-or-create-existing-user-via-api-from-connected-client/256528)

<div class="topic-metadata">

**Author:** [@aaronbauman](https://meta.discourse.org/u/aaronbauman)\
**Replies:** 1\
**Last updated:** [February 28, 2023, 8:14pm UTC](https://meta.discourse.org/t/best-way-to-update-or-create-existing-user-via-api-from-connected-client/256528 "2023-02-28T20:14:31Z")

</div>

Here’s the use case, which I’m sure many people have faced: Have bunch of users in Discourse Have an external system (service provider, Drupal) which uses API create Discourse users and manage group memberships Drupal …

---

## [How to override the buildQuote function?](https://meta.discourse.org/t/how-to-override-the-buildquote-function/164355)

<div class="topic-metadata">

**Author:** [@Canapin](https://meta.discourse.org/u/Canapin)\
**Replies:** 6\
**Last updated:** [February 28, 2023, 2:16pm UTC](https://meta.discourse.org/t/how-to-override-the-buildquote-function/164355 "2023-02-28T14:16:47Z")

</div>

Hi! I’d like to try to modify the buildQuote function so it adds a new line before the opening \[quote\] tag. Basically, modifying this: return \`\[quote="${params.join(", ")}"\]\\n${contents.trim()}\\n\[/quote\]\\n\\n\`; to t…

---

## [Use API to get topics for a period using js](https://meta.discourse.org/t/use-api-to-get-topics-for-a-period-using-js/256355)

<div class="topic-metadata">

**Author:** [@per\_coh](https://meta.discourse.org/u/per_coh)\
**Replies:** 2\
**Last updated:** [February 28, 2023, 9:51am UTC](https://meta.discourse.org/t/use-api-to-get-topics-for-a-period-using-js/256355 "2023-02-28T09:51:17Z")

</div>

I was wondering if anyone has a simple javascript get example, to get topics from a certain category within a certain timeframe? I’m looking to pull data into Google sheets and I’m a bit rusty (and new to the Discourse r…

---

## [Prevent users from moving topics in other categories](https://meta.discourse.org/t/prevent-users-from-moving-topics-in-other-categories/255933)

<div class="topic-metadata">

**Author:** [@Crius](https://meta.discourse.org/u/Crius)\
**Replies:** 18\
**Last updated:** [February 27, 2023, 4:55pm UTC](https://meta.discourse.org/t/prevent-users-from-moving-topics-in-other-categories/255933 "2023-02-27T16:55:29Z")

</div>

I’m looking for an option to disable this feature as it may cause some complexity in managing threads when you have different moderators teams for different categories and suddenly they find themselves with a big or cont…

---

## [Can you change a Plugin's JS filename or add a prefix to it?](https://meta.discourse.org/t/can-you-change-a-plugins-js-filename-or-add-a-prefix-to-it/255652)

<div class="topic-metadata">

**Author:** [@lcestou](https://meta.discourse.org/u/lcestou)\
**Replies:** 1\
**Last updated:** [February 20, 2023, 11:23am UTC](https://meta.discourse.org/t/can-you-change-a-plugins-js-filename-or-add-a-prefix-to-it/255652 "2023-02-20T11:23:51Z")

</div>

Never mind, I think I figured it out. Thanks!

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

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