# Development

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

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

**Page:** 28

---

## [There is a lot of code in the CSS Area. Can I make theme components?](https://meta.discourse.org/t/there-is-a-lot-of-code-in-the-css-area-can-i-make-theme-components/308594)

<div class="topic-metadata">

**Author:** [@ogulcan1787](https://meta.discourse.org/u/ogulcan1787)\
**Replies:** 3\
**Last updated:** [May 19, 2024, 1:22pm UTC](https://meta.discourse.org/t/there-is-a-lot-of-code-in-the-css-area-can-i-make-theme-components/308594 "2024-05-19T13:22:15Z")

</div>

Hey everyone. Does CSS burden the site? That’s why I wanted to ask this question. You can see the site address in my profile. Thank you.

---

## [Hide all "about the x category" topics](https://meta.discourse.org/t/hide-all-about-the-x-category-topics/308536)

<div class="topic-metadata">

**Author:** [@jordan-violet](https://meta.discourse.org/u/jordan-violet)\
**Replies:** 9\
**Last updated:** [May 19, 2024, 9:13am UTC](https://meta.discourse.org/t/hide-all-about-the-x-category-topics/308536 "2024-05-19T09:13:14Z")

</div>

I’m aware these are all always visible to admins by default. But let’s say I don’t want to see them on my personal site I’m building on Discourse, even as an admin. How could I hide all of these topics in all categor…

---

## [Top Menu Logout Button Theme Component](https://meta.discourse.org/t/top-menu-logout-button-theme-component/308492)

<div class="topic-metadata">

**Author:** [@denvergeeks](https://meta.discourse.org/u/denvergeeks)\
**Replies:** 4\
**Last updated:** [May 18, 2024, 3:30pm UTC](https://meta.discourse.org/t/top-menu-logout-button-theme-component/308492 "2024-05-18T15:30:44Z")

</div>

I’ll roll up and post a Theme Component on GitHub for adding a Logout button to the top menu if someone could please let me know how to update @pfaffman’s code here… :pray: :pray: :pray: (At the moment following thos…

---

## [List of components or PluginOutlets with explanatory documentation](https://meta.discourse.org/t/list-of-components-or-pluginoutlets-with-explanatory-documentation/308422)

<div class="topic-metadata">

**Author:** [@omppatil](https://meta.discourse.org/u/omppatil)\
**Replies:** 1\
**Last updated:** [May 17, 2024, 2:50pm UTC](https://meta.discourse.org/t/list-of-components-or-pluginoutlets-with-explanatory-documentation/308422 "2024-05-17T14:50:33Z")

</div>

Hello, I have a couple of questions regarding the documentation and functionality of components or PluginOutlets in our system: Where can we get the list of components or PluginOutlets with explanatory documentatio…

---

## [How can I remove categories from top menu](https://meta.discourse.org/t/how-can-i-remove-categories-from-top-menu/308283)

<div class="topic-metadata">

**Author:** [@ogulcan1787](https://meta.discourse.org/u/ogulcan1787)\
**Replies:** 4\
**Last updated:** [May 17, 2024, 7:32am UTC](https://meta.discourse.org/t/how-can-i-remove-categories-from-top-menu/308283 "2024-05-17T07:32:43Z")

</div>

Hi everyone. I removed with these codes. .category-breadcrumb\>li { margin-left: -.25em; } .select-kit.combo-box.category-drop .category-drop-header\[data-value=""\] { display: none; } But I saw a few mistake…

---

## [Full width header with CSS?](https://meta.discourse.org/t/full-width-header-with-css/302431)

<div class="topic-metadata">

**Author:** [@ogulcan1787](https://meta.discourse.org/u/ogulcan1787)\
**Replies:** 3\
**Last updated:** [May 16, 2024, 7:47pm UTC](https://meta.discourse.org/t/full-width-header-with-css/302431 "2024-05-16T19:47:44Z")

</div>

Hello, is there any other code apart from these codes? and apart from that GitHub - discourse/discourse-full-width-component: Make Discourse occupy the full browser width · GitHub .d-header, .drop-down-visible .d-heade…

---

## [Insert text below username?](https://meta.discourse.org/t/insert-text-below-username/308127)

<div class="topic-metadata">

**Author:** [@DonkeyKongEnjoyer](https://meta.discourse.org/u/DonkeyKongEnjoyer)\
**Replies:** 6\
**Last updated:** [May 16, 2024, 12:37am UTC](https://meta.discourse.org/t/insert-text-below-username/308127 "2024-05-16T00:37:29Z")

</div>

Is there any way to insert a line of text below usernames? Ideally, I’d like this to appear under everyone’s username. The CSS I used to achieve this is: .username::after { content: 'website.com'; font-size:…

---

## [Dev install bound to 0.0.0.0?](https://meta.discourse.org/t/dev-install-bound-to-0-0-0-0/307830)

<div class="topic-metadata">

**Author:** [@darkpixlz](https://meta.discourse.org/u/darkpixlz)\
**Replies:** 3\
**Last updated:** [May 15, 2024, 2:20am UTC](https://meta.discourse.org/t/dev-install-bound-to-0-0-0-0/307830 "2024-05-15T02:20:16Z")

</div>

Hi, I was trying to start an ubuntu dev install to work on my theme’s new version. It’s the server version of the OS so I cannot directly access Firefox. I can’t run a normal install because :80 is taken by Pi-hole (and…

---

## [My last problem before publishing the site](https://meta.discourse.org/t/my-last-problem-before-publishing-the-site/307767)

<div class="topic-metadata">

**Author:** [@ogulcan1787](https://meta.discourse.org/u/ogulcan1787)\
**Replies:** 1\
**Last updated:** [May 13, 2024, 3:30pm UTC](https://meta.discourse.org/t/my-last-problem-before-publishing-the-site/307767 "2024-05-13T15:30:12Z")

</div>

Hi everyone, I’m starting to advertise my site. I want to solve the last problem I encountered. Please help me :pray: I am using these codes. I just removed some excess. From these codes, desktop tab and Mobile tab I …

---

## [Override user methods](https://meta.discourse.org/t/override-user-methods/307768)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 0\
**Last updated:** [May 13, 2024, 3:02pm UTC](https://meta.discourse.org/t/override-user-methods/307768 "2024-05-13T15:02:59Z")

</div>

I’m trying to not save user IP addresses because that’s what someone wants. I can’t use a callback because IP addresses are saved by directly modifying the database and not through Rails ActiveRecord. I’m trying to ove…

---

## [Error when clicking on the homepage logo](https://meta.discourse.org/t/error-when-clicking-on-the-homepage-logo/306644)

<div class="topic-metadata">

**Author:** [@ogulcan1787](https://meta.discourse.org/u/ogulcan1787)\
**Replies:** 20\
**Last updated:** [May 12, 2024, 5:19pm UTC](https://meta.discourse.org/t/error-when-clicking-on-the-homepage-logo/306644 "2024-05-12T17:19:55Z")

</div>

Hi. I will show you with images. I was getting this error before the last update. After installing the update I keep getting this error. (Güncel - Current) And I removed all the code from the site and tried again,…

---

## [Add Calendar Event using REST API](https://meta.discourse.org/t/add-calendar-event-using-rest-api/307612)

<div class="topic-metadata">

**Author:** [@zikapanam](https://meta.discourse.org/u/zikapanam)\
**Replies:** 4\
**Last updated:** [May 11, 2024, 11:22am UTC](https://meta.discourse.org/t/add-calendar-event-using-rest-api/307612 "2024-05-11T11:22:27Z")

</div>

Hello, I’ve been searching for hours how to use REST API to add calendar event to a topic and unfortunately, i couldn’t find an answer. I’ve created a category calendar and could display my topic event created manually…

---

## [I would like to edit the theme rules](https://meta.discourse.org/t/i-would-like-to-edit-the-theme-rules/307623)

<div class="topic-metadata">

**Author:** [@Truest](https://meta.discourse.org/u/Truest)\
**Replies:** 2\
**Last updated:** [May 11, 2024, 7:11am UTC](https://meta.discourse.org/t/i-would-like-to-edit-the-theme-rules/307623 "2024-05-11T07:11:09Z")

</div>

I would like to edit the theme rules, but to edit this theme I need to submit my changes to the repository. is displayed. How can I solve this? 1-1.Can I edit installed themes using HTML and CSS?

---

## [Request for a plugin outlet between the editor and preview](https://meta.discourse.org/t/request-for-a-plugin-outlet-between-the-editor-and-preview/306358)

<div class="topic-metadata">

**Author:** [@Alteras](https://meta.discourse.org/u/Alteras)\
**Replies:** 1\
**Last updated:** [May 10, 2024, 10:38pm UTC](https://meta.discourse.org/t/request-for-a-plugin-outlet-between-the-editor-and-preview/306358 "2024-05-10T22:38:54Z")

</div>

I’m trying to make a theme component where the user can adjust the sizing of the preview/editor in the composer. Ideally this would be as an dragbar element that the user would drag around. For that, could a plugin outl…

---

## [Js.search.title how to change color?](https://meta.discourse.org/t/js-search-title-how-to-change-color/307450)

<div class="topic-metadata">

**Author:** [@ogulcan1787](https://meta.discourse.org/u/ogulcan1787)\
**Replies:** 4\
**Last updated:** [May 10, 2024, 4:40pm UTC](https://meta.discourse.org/t/js-search-title-how-to-change-color/307450 "2024-05-10T16:40:45Z")

</div>

Hi everyone, I checked everywhere via F12 but I couldn’t find it. How can I change the text color? When searching, the text is white. I want to change the color before searching.

---

## [In Discourse, all js and css files are presented separately. Why don't we combine them into one or two files and present them?](https://meta.discourse.org/t/in-discourse-all-js-and-css-files-are-presented-separately-why-dont-we-combine-them-into-one-or-two-files-and-present-them/306793)

<div class="topic-metadata">

**Author:** [@kuaza](https://meta.discourse.org/u/kuaza)\
**Replies:** 10\
**Last updated:** [May 9, 2024, 6:20pm UTC](https://meta.discourse.org/t/in-discourse-all-js-and-css-files-are-presented-separately-why-dont-we-combine-them-into-one-or-two-files-and-present-them/306793 "2024-05-09T18:20:00Z")

</div>

In Discourse, all js and css files are presented separately. For years I thought it was better to combine, optimize and present these files. Please warn me if I am missing some important things here, but unfortunately th…

---

## [Get last n new / updated posts using API?](https://meta.discourse.org/t/get-last-n-new-updated-posts-using-api/307427)

<div class="topic-metadata">

**Author:** [@Samir\_Sabri](https://meta.discourse.org/u/Samir_Sabri)\
**Replies:** 1\
**Last updated:** [May 9, 2024, 4:57pm UTC](https://meta.discourse.org/t/get-last-n-new-updated-posts-using-api/307427 "2024-05-09T16:57:51Z")

</div>

Hello I tried to use APIs to get last n posts using uri = URI('https://mydomain.com/forum/latest.json?ascending=false') however, I noticed the following: could not have the URL of each post could not strict result t…

---

## [Twitter-status onebox error fix](https://meta.discourse.org/t/twitter-status-onebox-error-fix/307203)

<div class="topic-metadata">

**Author:** [@dsims](https://meta.discourse.org/u/dsims)\
**Replies:** 3\
**Last updated:** [May 8, 2024, 1:30pm UTC](https://meta.discourse.org/t/twitter-status-onebox-error-fix/307203 "2024-05-08T13:30:45Z")

</div>

There is an error in the twitter onebox code if some meta tags are missing. Apparently the Twitter HTML changed at some point and Murphy’s law kicked in. I opened a PR that fixes the error and uses meta tags that exist …

---

## [Issues attempting to run discourse in GitHub Codespaces](https://meta.discourse.org/t/issues-attempting-to-run-discourse-in-github-codespaces/307189)

<div class="topic-metadata">

**Author:** [@jordan-violet](https://meta.discourse.org/u/jordan-violet)\
**Replies:** 6\
**Last updated:** [May 8, 2024, 10:45am UTC](https://meta.discourse.org/t/issues-attempting-to-run-discourse-in-github-codespaces/307189 "2024-05-08T10:45:36Z")

</div>

Following this post from @cvx on a fresh GitHub codespace install: Running bin/ember-cli -u (FYI for anyone else, you first have to cd into workspace/discourse), nets the following issue:

---

## [Adding a Column to Enhance Flag Status Reports : How to add column in flag status report?](https://meta.discourse.org/t/adding-a-column-to-enhance-flag-status-reports-how-to-add-column-in-flag-status-report/307078)

<div class="topic-metadata">

**Author:** [@omppatil](https://meta.discourse.org/u/omppatil)\
**Replies:** 3\
**Last updated:** [May 7, 2024, 4:53pm UTC](https://meta.discourse.org/t/adding-a-column-to-enhance-flag-status-reports-how-to-add-column-in-flag-status-report/307078 "2024-05-07T16:53:05Z")

</div>

Hi !, How can we add a ‘Post’ column to identify the specific post that was flagged, and is it possible to include the type of flag used, as well as the status of the flag—whether the post or topic was ignored, rejected…

---

## [Right and Left advertising space?](https://meta.discourse.org/t/right-and-left-advertising-space/306804)

<div class="topic-metadata">

**Author:** [@ogulcan1787](https://meta.discourse.org/u/ogulcan1787)\
**Replies:** 2\
**Last updated:** [May 5, 2024, 7:15pm UTC](https://meta.discourse.org/t/right-and-left-advertising-space/306804 "2024-05-05T19:15:38Z")

</div>

Hello everyone, I know my questions are endless… I looked for the codes on the internet but it didn’t work. (CSS HTML) Like that. Do we offer advertising solutions elsewhere other than these areas? I will not use …

---

## [Allow specific users to impersonate defined users](https://meta.discourse.org/t/allow-specific-users-to-impersonate-defined-users/110340)

<div class="topic-metadata">

**Author:** [@sau226](https://meta.discourse.org/u/sau226)\
**Replies:** 9\
**Last updated:** [May 5, 2024, 2:50pm UTC](https://meta.discourse.org/t/allow-specific-users-to-impersonate-defined-users/110340 "2024-05-05T14:50:38Z")

</div>

How might I go about allowing specific users to impersonate others via a plugin? For example say I have @SomeUser and @SomeUserAdmin on my instance. I want @SomeUser to be a normal user (no admin or mod) but see the imp…

---

## [Need Help updating profile info via API](https://meta.discourse.org/t/need-help-updating-profile-info-via-api/306686)

<div class="topic-metadata">

**Author:** [@Earnie\_Baird](https://meta.discourse.org/u/Earnie_Baird)\
**Replies:** 6\
**Last updated:** [May 4, 2024, 7:49pm UTC](https://meta.discourse.org/t/need-help-updating-profile-info-via-api/306686 "2024-05-04T19:49:03Z")

</div>

I’ve found a few examples in these forums of updating user info via the API but can’t get it to work. I’m a junior developer so maybe I’m missing something obvious. First I tried getting this example to work: curl -X P…

---

## [Debug help — my plugin is breaking the Select-to-Reply-with-Quote feature](https://meta.discourse.org/t/debug-help-my-plugin-is-breaking-the-select-to-reply-with-quote-feature/306709)

<div class="topic-metadata">

**Author:** [@alxndr](https://meta.discourse.org/u/alxndr)\
**Replies:** 0\
**Last updated:** [May 4, 2024, 6:29am UTC](https://meta.discourse.org/t/debug-help-my-plugin-is-breaking-the-select-to-reply-with-quote-feature/306709 "2024-05-04T06:29:31Z")

</div>

Hoping someone can help me narrow down this issue — I created a plugin but it inadvertently disables the “quote selected text” popup & keyboard shortcut. When the plugin is enabled, selecting text in a post no longer sh…

---

## [Assigning a separate link to the logo](https://meta.discourse.org/t/assigning-a-separate-link-to-the-logo/306688)

<div class="topic-metadata">

**Author:** [@ogulcan1787](https://meta.discourse.org/u/ogulcan1787)\
**Replies:** 2\
**Last updated:** [May 4, 2024, 5:51am UTC](https://meta.discourse.org/t/assigning-a-separate-link-to-the-logo/306688 "2024-05-04T05:51:34Z")

</div>

Because of the error I received, I found the solution here. Do I have the opportunity to do this?

---

## [Avatar URL changed via platform does not return complete](https://meta.discourse.org/t/avatar-url-changed-via-platform-does-not-return-complete/306685)

<div class="topic-metadata">

**Author:** [@edu\_moura](https://meta.discourse.org/u/edu_moura)\
**Replies:** 0\
**Last updated:** [May 3, 2024, 8:29pm UTC](https://meta.discourse.org/t/avatar-url-changed-via-platform-does-not-return-complete/306685 "2024-05-03T20:29:32Z")

</div>

When changing the user’s avatar via the discourse platform or via the api, it does not return the complete url with the cdn, it only returns the avatar path. ex: how to return /avatar\_test/test/…png as it should: htt…

---

## [Topic Entrance has a lot of space. How can I fix?](https://meta.discourse.org/t/topic-entrance-has-a-lot-of-space-how-can-i-fix/306481)

<div class="topic-metadata">

**Author:** [@ogulcan1787](https://meta.discourse.org/u/ogulcan1787)\
**Replies:** 6\
**Last updated:** [May 2, 2024, 6:29pm UTC](https://meta.discourse.org/t/topic-entrance-has-a-lot-of-space-how-can-i-fix/306481 "2024-05-02T18:29:53Z")

</div>

Hi everyone, how can I fix that ? please teach me

---

## [How to retrieve topic or post id from data-reviewable-id in Javascript?](https://meta.discourse.org/t/how-to-retrieve-topic-or-post-id-from-data-reviewable-id-in-javascript/306436)

<div class="topic-metadata">

**Author:** [@omppatil](https://meta.discourse.org/u/omppatil)\
**Replies:** 1\
**Last updated:** [May 2, 2024, 6:13pm UTC](https://meta.discourse.org/t/how-to-retrieve-topic-or-post-id-from-data-reviewable-id-in-javascript/306436 "2024-05-02T18:13:54Z")

</div>

Hi, I’m trying to obtain the topic ID to get the topic and the post ID to get the post from the review page; the review queue’s data-reviewable-id.Is there any way to retrieve the ‘topic ID’ and ‘post ID’ from data-revie…

---

## [The JS code stops working when the page is refreshed](https://meta.discourse.org/t/the-js-code-stops-working-when-the-page-is-refreshed/306317)

<div class="topic-metadata">

**Author:** [@ogulcan1787](https://meta.discourse.org/u/ogulcan1787)\
**Replies:** 14\
**Last updated:** [May 1, 2024, 4:56pm UTC](https://meta.discourse.org/t/the-js-code-stops-working-when-the-page-is-refreshed/306317 "2024-05-01T16:56:02Z")

</div>

Hello, How can we fix that please help me :pray: \<script\> let intervalId = setInterval(() =\> { const tags = document.querySelectorAll('.discourse-tag'); if (tags.length \> 0) { Array.prototype.forEach.call(tags,…

---

## [Discourse Offline Indicator Hack](https://meta.discourse.org/t/discourse-offline-indicator-hack/297679)

<div class="topic-metadata">

**Author:** [@Don](https://meta.discourse.org/u/Don)\
**Replies:** 2\
**Last updated:** [May 1, 2024, 11:27am UTC](https://meta.discourse.org/t/discourse-offline-indicator-hack/297679 "2024-05-01T11:27:00Z")

</div>

Hello :wave: This is a small hack (redesign) to the official offline indicator. Site Setting: enable offline indicator I’ve override the offline indicator template to add icons to it. To add the icon, I put the follow…

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

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