# Development

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

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

**Page:** 38

---

## [How to create a data explorer query with the APIs?](https://meta.discourse.org/t/how-to-create-a-data-explorer-query-with-the-apis/284776)

<div class="topic-metadata">

**Author:** [@Tanay\_Suthar](https://meta.discourse.org/u/Tanay_Suthar)\
**Replies:** 6\
**Last updated:** [November 9, 2023, 3:42pm UTC](https://meta.discourse.org/t/how-to-create-a-data-explorer-query-with-the-apis/284776 "2023-11-09T15:42:19Z")

</div>

I’m in process of creating a query with data explorer with the APIs. I’m having a hard time finding the actual API call to create a query. There is an endpoint to run the query /admin/plugins/explorer/queries/\<query\_id\>/…

---

## [How do I activate a user account via console?](https://meta.discourse.org/t/how-do-i-activate-a-user-account-via-console/286191)

<div class="topic-metadata">

**Author:** [@meglio](https://meta.discourse.org/u/meglio)\
**Replies:** 1\
**Last updated:** [November 21, 2023, 2:15pm UTC](https://meta.discourse.org/t/how-do-i-activate-a-user-account-via-console/286191 "2023-11-21T14:15:46Z")

</div>

I need to activate a user via console so that they do not have to click on the activation link in an email. What would be the commands in console to do so? Old methods found in older topics do not seem to work anymore.

---

## [CSS quotes - general styling](https://meta.discourse.org/t/css-quotes-general-styling/113373)

<div class="topic-metadata">

**Author:** [@agemo](https://meta.discourse.org/u/agemo)\
**Replies:** 5\
**Last updated:** [January 16, 2020, 10:03am UTC](https://meta.discourse.org/t/css-quotes-general-styling/113373 "2020-01-16T10:03:52Z")

</div>

The standard quote styling in Discourse, what are the exact CSS classes etc. that control this. I’ve played with .blockquote but what is creating the left circa 4/6 px line and the bg colour, well actually in the user q…

---

## [API connections with IPv6](https://meta.discourse.org/t/api-connections-with-ipv6/285921)

<div class="topic-metadata">

**Author:** [@hrishikeshk](https://meta.discourse.org/u/hrishikeshk)\
**Replies:** 12\
**Last updated:** [November 20, 2023, 5:13pm UTC](https://meta.discourse.org/t/api-connections-with-ipv6/285921 "2023-11-20T17:13:08Z")

</div>

Follow-up of: API connection via ipv6 vs. ipv4 - support - Discourse Meta I recently upgraded Node.js from 18 to 20 and my application suddenly stopped getting API response back from Discourse. It took me a while to fig…

---

## [Feedback on "on-discourse" javascript for setting up custom JS for each page?](https://meta.discourse.org/t/feedback-on-on-discourse-javascript-for-setting-up-custom-js-for-each-page/285647)

<div class="topic-metadata">

**Author:** [@Chris\_Dawson](https://meta.discourse.org/u/Chris_Dawson)\
**Replies:** 15\
**Last updated:** [November 19, 2023, 6:29pm UTC](https://meta.discourse.org/t/feedback-on-on-discourse-javascript-for-setting-up-custom-js-for-each-page/285647 "2023-11-19T18:29:33Z")

</div>

I’ve been writing a Svelte app that needs to install itself on each page. I figured out how to add my JS file into the head section and get it to load on the first page load. However, as I experimented, I realized that d…

---

## [Most efficient way to use Discourse for comments on Shopify blog posts?](https://meta.discourse.org/t/most-efficient-way-to-use-discourse-for-comments-on-shopify-blog-posts/279051)

<div class="topic-metadata">

**Author:** [@MarximusMG](https://meta.discourse.org/u/MarximusMG)\
**Replies:** 6\
**Last updated:** [November 18, 2023, 9:18pm UTC](https://meta.discourse.org/t/most-efficient-way-to-use-discourse-for-comments-on-shopify-blog-posts/279051 "2023-11-18T21:18:54Z")

</div>

Hey everyone! I’ve done some searching around here for this specific application, but it seems that most questions are related to using Discourse for comments on Wordpress posts. Aside from this how-to (Embed Discourse…

---

## [Create dev container](https://meta.discourse.org/t/create-dev-container/285941)

<div class="topic-metadata">

**Author:** [@SinisterSpatula](https://meta.discourse.org/u/SinisterSpatula)\
**Replies:** 1\
**Last updated:** [November 18, 2023, 4:49pm UTC](https://meta.discourse.org/t/create-dev-container/285941 "2023-11-18T16:49:28Z")

</div>

Hi, I’ve noticed VS code now supports “dev containers” where you can specify the exact development environment using docker. Their dev containers extension seems to make perfect sense to use for discourse development si…

---

## [LibreTranslate Plugin -- Free and Open Source Translation API](https://meta.discourse.org/t/libretranslate-plugin-free-and-open-source-translation-api/207891)

<div class="topic-metadata">

**Author:** [@sunjam](https://meta.discourse.org/u/sunjam)\
**Replies:** 9\
**Last updated:** [November 18, 2023, 2:40pm UTC](https://meta.discourse.org/t/libretranslate-plugin-free-and-open-source-translation-api/207891 "2023-11-18T14:40:41Z")

</div>

Continuing the discussion from Discourse Translator: LibreTranslate - Github project page Project discussion at https://community.libretranslate.com/ Free and Open Source Machine Translation API. 100% self-hosted, off…

---

## [Get an API key's scopes and user level via the API](https://meta.discourse.org/t/get-an-api-keys-scopes-and-user-level-via-the-api/285649)

<div class="topic-metadata">

**Author:** [@simon](https://meta.discourse.org/u/simon)\
**Replies:** 0\
**Last updated:** [November 16, 2023, 4:52am UTC](https://meta.discourse.org/t/get-an-api-keys-scopes-and-user-level-via-the-api/285649 "2023-11-16T04:52:57Z")

</div>

I was going to post this as a feature request, but figured I should confirm that it doesn’t already exist before doing that. Does Discourse provide a route that can be used to get the scopes and user level of a given AP…

---

## [Ability to set topic external URL next to the title through the API](https://meta.discourse.org/t/ability-to-set-topic-external-url-next-to-the-title-through-the-api/285769)

<div class="topic-metadata">

**Author:** [@reggi](https://meta.discourse.org/u/reggi)\
**Replies:** 2\
**Last updated:** [November 16, 2023, 6:59pm UTC](https://meta.discourse.org/t/ability-to-set-topic-external-url-next-to-the-title-through-the-api/285769 "2023-11-16T18:59:57Z")

</div>

I just started to create posts via the API looking at the docs I tried a bunch of configurations to get the URL to show the url via the API, but nothing works. I’d assume that “embed\_url” is what I was looking for…

---

## [CSS trick to change color of icons?](https://meta.discourse.org/t/css-trick-to-change-color-of-icons/285704)

<div class="topic-metadata">

**Author:** [@Jagster](https://meta.discourse.org/u/Jagster)\
**Replies:** 1\
**Last updated:** [November 16, 2023, 3:50pm UTC](https://meta.discourse.org/t/css-trick-to-change-color-of-icons/285704 "2023-11-16T15:50:09Z")

</div>

After we got single category style thingy colors of my category icons are now following background color of category settings and that is… not so nice. Screenshot could explain a bit better my/theirs pain: (Almost) …

---

## [Mapping Topics to referring pages?](https://meta.discourse.org/t/mapping-topics-to-referring-pages/285492)

<div class="topic-metadata">

**Author:** [@bombledmonk](https://meta.discourse.org/u/bombledmonk)\
**Replies:** 0\
**Last updated:** [November 14, 2023, 11:07pm UTC](https://meta.discourse.org/t/mapping-topics-to-referring-pages/285492 "2023-11-14T23:07:31Z")

</div>

I’m investigating (ab)using Discourse to allow users to ask questions from a call-to-action button on another website. The main issue I’m trying to solve is to find a way retain a link to the sending page so that the po…

---

## [Hiding the Search bar elements](https://meta.discourse.org/t/hiding-the-search-bar-elements/285547)

<div class="topic-metadata">

**Author:** [@thaidb](https://meta.discourse.org/u/thaidb)\
**Replies:** 1\
**Last updated:** [November 14, 2023, 9:33pm UTC](https://meta.discourse.org/t/hiding-the-search-bar-elements/285547 "2023-11-14T21:33:52Z")

</div>

How hide search\_banner.subhead? Can you add feature Hide on mobile?

---

## [Pull or quote content from within the revision history](https://meta.discourse.org/t/pull-or-quote-content-from-within-the-revision-history/285477)

<div class="topic-metadata">

**Author:** [@michellefs](https://meta.discourse.org/u/michellefs)\
**Replies:** 1\
**Last updated:** [November 14, 2023, 8:36pm UTC](https://meta.discourse.org/t/pull-or-quote-content-from-within-the-revision-history/285477 "2023-11-14T20:36:12Z")

</div>

Is there a way to view or access revision history other than within the popup? For example, we built some code to call the Discourse API and pull the HTML of a topic into our product. Could something similar be done to …

---

## [Hide small\_action posts when listing/unlisting topics](https://meta.discourse.org/t/hide-small-action-posts-when-listing-unlisting-topics/284448)

<div class="topic-metadata">

**Author:** [@GaurangBlaze](https://meta.discourse.org/u/GaurangBlaze)\
**Replies:** 11\
**Last updated:** [November 14, 2023, 4:10pm UTC](https://meta.discourse.org/t/hide-small-action-posts-when-listing-unlisting-topics/284448 "2023-11-14T16:10:06Z")

</div>

We recently upgraded to 3.2.0.beta3-dev. Since the upgrade, the “small\_action” posts have become visibly too large for unlisted/listed events: Earlier they used to be hidden. Is there a way to hide them again? I coul…

---

## [How can I hide the new topic button on the home page?](https://meta.discourse.org/t/how-can-i-hide-the-new-topic-button-on-the-home-page/285409)

<div class="topic-metadata">

**Author:** [@Ahmed26](https://meta.discourse.org/u/Ahmed26)\
**Replies:** 3\
**Last updated:** [November 14, 2023, 12:33pm UTC](https://meta.discourse.org/t/how-can-i-hide-the-new-topic-button-on-the-home-page/285409 "2023-11-14T12:33:56Z")

</div>

How can I hide the new topic button on the home page? When creating a new topic, I want it to be created only from the category. The list seems very long since there are so many subforums.

---

## [Fetching rate limit rules](https://meta.discourse.org/t/fetching-rate-limit-rules/285407)

<div class="topic-metadata">

**Author:** [@ales](https://meta.discourse.org/u/ales)\
**Replies:** 0\
**Last updated:** [November 14, 2023, 9:32am UTC](https://meta.discourse.org/t/fetching-rate-limit-rules/285407 "2023-11-14T09:32:59Z")

</div>

Does Discourse provide a way to get rate limit rules for a particular instance? Either via a particular web or API endpoint?

---

## [Trying to replace / auto-format strings in user posts](https://meta.discourse.org/t/trying-to-replace-auto-format-strings-in-user-posts/285326)

<div class="topic-metadata">

**Author:** [@hemes](https://meta.discourse.org/u/hemes)\
**Replies:** 3\
**Last updated:** [November 13, 2023, 5:18pm UTC](https://meta.discourse.org/t/trying-to-replace-auto-format-strings-in-user-posts/285326 "2023-11-13T17:18:51Z")

</div>

Hello, I am new to Discourse and have my site up and am trying to get a critical piece of functionality I need for a major portion of the community figured out. Users have software that can export magic strings that rep…

---

## [Need help integrating code wrote on Edittext to the Discourse](https://meta.discourse.org/t/need-help-integrating-code-wrote-on-edittext-to-the-discourse/285204)

<div class="topic-metadata">

**Author:** [@Plabforum](https://meta.discourse.org/u/Plabforum)\
**Replies:** 16\
**Last updated:** [November 13, 2023, 5:13pm UTC](https://meta.discourse.org/t/need-help-integrating-code-wrote-on-edittext-to-the-discourse/285204 "2023-11-13T17:13:38Z")

</div>

I created this timer using the following code, it’s working locally but I having trouble integrating it on my forum. Can someone please help? \<!-- HTML (Add this to the Header section) --\> \<style\> button { padding…

---

## [Overriding poll default so "public=true"](https://meta.discourse.org/t/overriding-poll-default-so-public-true/279722)

<div class="topic-metadata">

**Author:** [@elRicharde](https://meta.discourse.org/u/elRicharde)\
**Replies:** 9\
**Last updated:** [November 13, 2023, 7:46am UTC](https://meta.discourse.org/t/overriding-poll-default-so-public-true/279722 "2023-11-13T07:46:32Z")

</div>

i was wondering how many sites struggling with this as well. I also would love to have it Public by Standard. I also think the UI could be better. You can make single Vote Polls from MultiVote Polls, so there is no …

---

## [Add topic notifications button next to topic title](https://meta.discourse.org/t/add-topic-notifications-button-next-to-topic-title/253471)

<div class="topic-metadata">

**Author:** [@attalbialami](https://meta.discourse.org/u/attalbialami)\
**Replies:** 1\
**Last updated:** [November 12, 2023, 9:56pm UTC](https://meta.discourse.org/t/add-topic-notifications-button-next-to-topic-title/253471 "2023-11-12T21:56:49Z")

</div>

Hi all, Is there any way to add the “topic notifications button” next to every topic title on the homepage ? Thank you in advance.

---

## [How to install npm packages in custom themes/plugins](https://meta.discourse.org/t/how-to-install-npm-packages-in-custom-themes-plugins/142695)

<div class="topic-metadata">

**Author:** [@eatcodetravel](https://meta.discourse.org/u/eatcodetravel)\
**Replies:** 6\
**Last updated:** [November 11, 2023, 5:01pm UTC](https://meta.discourse.org/t/how-to-install-npm-packages-in-custom-themes-plugins/142695 "2023-11-11T17:01:54Z")

</div>

Hello! Is it possible to install npm packages (via package.json or similar) in Discourse Themes/Plugins? We are looking to reuse some components across apps and this can be a blocker if it’s not possible. Thanks!

---

## [Imgur images not rendering because server is rate limited](https://meta.discourse.org/t/imgur-images-not-rendering-because-server-is-rate-limited/285179)

<div class="topic-metadata">

**Author:** [@winston-yallow](https://meta.discourse.org/u/winston-yallow)\
**Replies:** 7\
**Last updated:** [November 11, 2023, 3:14pm UTC](https://meta.discourse.org/t/imgur-images-not-rendering-because-server-is-rate-limited/285179 "2023-11-11T15:14:45Z")

</div>

I have added a post via the API. It contains the following snippet: !\[Here is an example\](https://i.imgur.com/LaUXRKW.png) As visible here, it is correctly rendered in the editor: Initially after saving, it is corr…

---

## [How do I use rails runner with the Gemfile in /var/www/discourse](https://meta.discourse.org/t/how-do-i-use-rails-runner-with-the-gemfile-in-var-www-discourse/285034)

<div class="topic-metadata">

**Author:** [@Chris\_Dawson](https://meta.discourse.org/u/Chris_Dawson)\
**Replies:** 1\
**Last updated:** [November 10, 2023, 8:25pm UTC](https://meta.discourse.org/t/how-do-i-use-rails-runner-with-the-gemfile-in-var-www-discourse/285034 "2023-11-10T20:25:56Z")

</div>

I’ve got a script that needs to load some data from a sqlite3 and then import into discourse. rails runner I assumed I could use something like this in /shared/add\_in\_reverse.rb: require "sqlite3" # Open a database db…

---

## [How best to handle custom fields defaults and category setting logs](https://meta.discourse.org/t/how-best-to-handle-custom-fields-defaults-and-category-setting-logs/283063)

<div class="topic-metadata">

**Author:** [@angus](https://meta.discourse.org/u/angus)\
**Replies:** 2\
**Last updated:** [November 10, 2023, 12:27pm UTC](https://meta.discourse.org/t/how-best-to-handle-custom-fields-defaults-and-category-setting-logs/283063 "2023-11-10T12:27:41Z")

</div>

Some context The reason this occurs is because The activity pub plugin sets some defaults for those fields on the client (here). All category custom field changes are logged as category setting changes in core (h…

---

## [How to change the response default\_limit in data explorer?](https://meta.discourse.org/t/how-to-change-the-response-default-limit-in-data-explorer/214150)

<div class="topic-metadata">

**Author:** [@Donavan\_Martin1](https://meta.discourse.org/u/Donavan_Martin1)\
**Replies:** 14\
**Last updated:** [November 9, 2023, 4:10pm UTC](https://meta.discourse.org/t/how-to-change-the-response-default-limit-in-data-explorer/214150 "2023-11-09T16:10:27Z")

</div>

Hi, What is the best way to set the default\_limit to something like 12345678 ? Suppose that I need and I want more than 1000 rows.

---

## [How can forum admins edit the colour of topics that have been read?](https://meta.discourse.org/t/how-can-forum-admins-edit-the-colour-of-topics-that-have-been-read/284946)

<div class="topic-metadata">

**Author:** [@Gavin\_Hudson](https://meta.discourse.org/u/Gavin_Hudson)\
**Replies:** 1\
**Last updated:** [November 9, 2023, 3:14pm UTC](https://meta.discourse.org/t/how-can-forum-admins-edit-the-colour-of-topics-that-have-been-read/284946 "2023-11-09T15:14:05Z")

</div>

Topics that have been read or interacted with are grey whereas unread topics are black. Can we edit these colours?

---

## [I want to use the Discourse search bar from an external site so users arrive at the search page in my forum](https://meta.discourse.org/t/i-want-to-use-the-discourse-search-bar-from-an-external-site-so-users-arrive-at-the-search-page-in-my-forum/231752)

<div class="topic-metadata">

**Author:** [@Drew-ART](https://meta.discourse.org/u/Drew-ART)\
**Replies:** 2\
**Last updated:** [November 9, 2023, 4:07am UTC](https://meta.discourse.org/t/i-want-to-use-the-discourse-search-bar-from-an-external-site-so-users-arrive-at-the-search-page-in-my-forum/231752 "2023-11-09T04:07:01Z")

</div>

Looking for advice on how to go about this task. We have a landing page for our site built in Reactjs and our Discourse forum is one half of the total platform. I want users to be able to search the forums from that lan…

---

## [How do I go about making a very customized theme?](https://meta.discourse.org/t/how-do-i-go-about-making-a-very-customized-theme/284772)

<div class="topic-metadata">

**Author:** [@SinisterSpatula](https://meta.discourse.org/u/SinisterSpatula)\
**Replies:** 3\
**Last updated:** [November 8, 2023, 5:14am UTC](https://meta.discourse.org/t/how-do-i-go-about-making-a-very-customized-theme/284772 "2023-11-08T05:14:39Z")

</div>

Hi, I’m new to Discourse and really love it’s features and function. I’m wanting to heavily customize it’s appearance and the way it presents content. I’ve been reading through various threads and posts trying to under…

---

## [Change Sign Up Button](https://meta.discourse.org/t/change-sign-up-button/280755)

<div class="topic-metadata">

**Author:** [@maketolearn](https://meta.discourse.org/u/maketolearn)\
**Replies:** 0\
**Last updated:** [October 2, 2023, 3:46pm UTC](https://meta.discourse.org/t/change-sign-up-button/280755 "2023-10-02T15:46:19Z")

</div>

We have curators for three different collections on our forum in Math, Science, and Engineering. We would like requests for accounts to be directed to the appropriate curator for review. Can we revise the default “Sign U…

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

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