# Development

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

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

**Page:** 23

---

## [Cannot add user to discourse group](https://meta.discourse.org/t/cannot-add-user-to-discourse-group/320036)

<div class="topic-metadata">

**Author:** [@Haseeb\_Ahmed](https://meta.discourse.org/u/Haseeb_Ahmed)\
**Replies:** 3\
**Last updated:** [August 8, 2024, 1:43pm UTC](https://meta.discourse.org/t/cannot-add-user-to-discourse-group/320036 "2024-08-08T13:43:27Z")

</div>

Hi i am using wp discourse plugin in order to sync user between wordpress website and discourse community form so here i am using a code in order to add user into the discourse group when user register on the website fu…

---

## [Change search endpoint](https://meta.discourse.org/t/change-search-endpoint/320698)

<div class="topic-metadata">

**Author:** [@Jukebo](https://meta.discourse.org/u/Jukebo)\
**Replies:** 2\
**Last updated:** [August 8, 2024, 10:31am UTC](https://meta.discourse.org/t/change-search-endpoint/320698 "2024-08-08T10:31:04Z")

</div>

Hi! What would be the easiest way to change the endpoint in the google-search https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/components/google-search.hbs I would need to route th…

---

## [Marking multiple account as Suspended account](https://meta.discourse.org/t/marking-multiple-account-as-suspended-account/320525)

<div class="topic-metadata">

**Author:** [@Jaskaran](https://meta.discourse.org/u/Jaskaran)\
**Replies:** 5\
**Last updated:** [August 7, 2024, 3:40pm UTC](https://meta.discourse.org/t/marking-multiple-account-as-suspended-account/320525 "2024-08-07T15:40:46Z")

</div>

When a user is marked as suspended from the UI, the backend updates the suspended\_at and suspended\_till fields in the user table. I have 500 users whose profiles need to be marked as suspended. I’m planning to retrieve t…

---

## [Set Topic Timer not working in Discourse v3.1.5](https://meta.discourse.org/t/set-topic-timer-not-working-in-discourse-v3-1-5/320436)

<div class="topic-metadata">

**Author:** [@Tanvir\_Singh](https://meta.discourse.org/u/Tanvir_Singh)\
**Replies:** 1\
**Last updated:** [August 6, 2024, 7:54pm UTC](https://meta.discourse.org/t/set-topic-timer-not-working-in-discourse-v3-1-5/320436 "2024-08-06T19:54:55Z")

</div>

I was previously using Discourse v2.3.0 and I have recently upgraded to v3.1.5. In the recent version, I am not able to use Set Topic Timer functionality. When I click the button to do so, I get an warning in the consol…

---

## [Custom field data not saving/updating for file upload](https://meta.discourse.org/t/custom-field-data-not-saving-updating-for-file-upload/320152)

<div class="topic-metadata">

**Author:** [@Harshit\_Dave](https://meta.discourse.org/u/Harshit_Dave)\
**Replies:** 0\
**Last updated:** [August 5, 2024, 12:03pm UTC](https://meta.discourse.org/t/custom-field-data-not-saving-updating-for-file-upload/320152 "2024-08-05T12:03:44Z")

</div>

Hello, I have added custom field to upload file in topic. I want to upload file on create topic/save edit button clicked. file is getting uploaded successfully using /uploads.json api but somehow I am not able to update…

---

## [How to apply ‘new’ graphic to new topics](https://meta.discourse.org/t/how-to-apply-new-graphic-to-new-topics/319983)

<div class="topic-metadata">

**Author:** [@oga](https://meta.discourse.org/u/oga)\
**Replies:** 6\
**Last updated:** [August 4, 2024, 11:16pm UTC](https://meta.discourse.org/t/how-to-apply-new-graphic-to-new-topics/319983 "2024-08-04T23:16:37Z")

</div>

When I logged in the community today, I Noticed, a Red “New” flag as shown here. How was the RED “New !” flag achieved? Being that we will be publishing articles daily, I would like to use it to flag new Topics. How …

---

## [Get topic in print format without print dialog](https://meta.discourse.org/t/get-topic-in-print-format-without-print-dialog/123059)

<div class="topic-metadata">

**Author:** [@adopilot](https://meta.discourse.org/u/adopilot)\
**Replies:** 2\
**Last updated:** [August 3, 2024, 12:32pm UTC](https://meta.discourse.org/t/get-topic-in-print-format-without-print-dialog/123059 "2024-08-03T12:32:13Z")

</div>

Is there a way to call some Discourse URI to get topic content in printable format whiteout printing dialog open. If you call Discourse url with print param eg: https://meta.discourse.org/t/get-topic-in-print-format-wit…

---

## [Insert a div into the specified html code to wrap it](https://meta.discourse.org/t/insert-a-div-into-the-specified-html-code-to-wrap-it/319942)

<div class="topic-metadata">

**Author:** [@sheng\_hualuo](https://meta.discourse.org/u/sheng_hualuo)\
**Replies:** 5\
**Last updated:** [August 3, 2024, 10:17am UTC](https://meta.discourse.org/t/insert-a-div-into-the-specified-html-code-to-wrap-it/319942 "2024-08-03T10:17:44Z")

</div>

Detects the IMG tags of all user avatars and creates a div to wrap the IMG tags of all users Does anyone know how? I insert the div to the img tag of the user’s avatar, and then I can set the inserted div as the avatar …

---

## [Is it possible to re-order the topic list columns (Front Page)?](https://meta.discourse.org/t/is-it-possible-to-re-order-the-topic-list-columns-front-page/87092)

<div class="topic-metadata">

**Author:** [@ibee](https://meta.discourse.org/u/ibee)\
**Replies:** 3\
**Last updated:** [August 3, 2024, 9:28am UTC](https://meta.discourse.org/t/is-it-possible-to-re-order-the-topic-list-columns-front-page/87092 "2024-08-03T09:28:06Z")

</div>

Hello, Is there any way to reorder columns as shown in the screenshot below? Note: I switched the order of elements (users first instead of topics) on my browser and changed a few properties on Mozilla’s installatio…

---

## [Show author instead of last poster](https://meta.discourse.org/t/show-author-instead-of-last-poster/319938)

<div class="topic-metadata">

**Author:** [@yekta](https://meta.discourse.org/u/yekta)\
**Replies:** 2\
**Last updated:** [August 3, 2024, 7:41am UTC](https://meta.discourse.org/t/show-author-instead-of-last-poster/319938 "2024-08-03T07:41:21Z")

</div>

hey there I want to show my posts writer instead of the last poster right next to the post. help me please.

---

## [How to fire on every footer load (or page load?)](https://meta.discourse.org/t/how-to-fire-on-every-footer-load-or-page-load/195404)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 7\
**Last updated:** [August 3, 2024, 7:20am UTC](https://meta.discourse.org/t/how-to-fire-on-every-footer-load-or-page-load/195404 "2024-08-03T07:20:18Z")

</div>

I’m trying to load a javascript form in a footer. I have thise in the header: \<script type="text/discourse-plugin" version="0.8"\> let loadScript = require("discourse/lib/load-script").default; api.onPageChange(() …

---

## [Does Discourse have API that allows articles Consumption?](https://meta.discourse.org/t/does-discourse-have-api-that-allows-articles-consumption/319904)

<div class="topic-metadata">

**Author:** [@oga](https://meta.discourse.org/u/oga)\
**Replies:** 3\
**Last updated:** [August 3, 2024, 6:34am UTC](https://meta.discourse.org/t/does-discourse-have-api-that-allows-articles-consumption/319904 "2024-08-03T06:34:03Z")

</div>

Hello, I have seen API documented in Discourse. So my question is this. Can a website that is not running Discourse Consume our Forum articles? That is, we publish an article on our Discourse instance. Xyz.com that is…

---

## [Adding to user serializer does not work for the current user object](https://meta.discourse.org/t/adding-to-user-serializer-does-not-work-for-the-current-user-object/319809)

<div class="topic-metadata">

**Author:** [@Harshit\_Dave](https://meta.discourse.org/u/Harshit_Dave)\
**Replies:** 4\
**Last updated:** [August 2, 2024, 10:26am UTC](https://meta.discourse.org/t/adding-to-user-serializer-does-not-work-for-the-current-user-object/319809 "2024-08-02T10:26:51Z")

</div>

I have added custom field in user model but when I tried to fetch in current user object I did not get the custom field. how can I fetch the custom field? I tried below code require\_dependency 'user\_serializer' class …

---

## [What is this code add\_to\_serializer in all these plugins](https://meta.discourse.org/t/what-is-this-code-add-to-serializer-in-all-these-plugins/58913)

<div class="topic-metadata">

**Author:** [@net\_deamon](https://meta.discourse.org/u/net_deamon)\
**Replies:** 25\
**Last updated:** [April 3, 2023, 5:15pm UTC](https://meta.discourse.org/t/what-is-this-code-add-to-serializer-in-all-these-plugins/58913 "2023-04-03T17:15:11Z")

</div>

I have seen this code in discourse\_signatures plugin User.register\_custom\_field\_type('see\_signatures', :boolean) User.register\_custom\_field\_type('signature\_url', :text) User.register\_custom\_field\_type('signature\_raw', :…

---

## [I cannot add user to the discouse forum from a wordpress website when user added in a membership](https://meta.discourse.org/t/i-cannot-add-user-to-the-discouse-forum-from-a-wordpress-website-when-user-added-in-a-membership/300025)

<div class="topic-metadata">

**Author:** [@Haseeb\_Ahmed](https://meta.discourse.org/u/Haseeb_Ahmed)\
**Replies:** 24\
**Last updated:** [July 31, 2024, 6:33pm UTC](https://meta.discourse.org/t/i-cannot-add-user-to-the-discouse-forum-from-a-wordpress-website-when-user-added-in-a-membership/300025 "2024-07-31T18:33:19Z")

</div>

Hello there i have a problem with discourse forum which is https://community.over40connect.com/ that is connected with my website https://over40connect.com/staging/ using wp discourse plugin and i have created a function…

---

## [Trouble with eslint](https://meta.discourse.org/t/trouble-with-eslint/318178)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 7\
**Last updated:** [July 30, 2024, 3:25pm UTC](https://meta.discourse.org/t/trouble-with-eslint/318178 "2024-07-30T15:25:39Z")

</div>

I’ve got a new plugin that’s failing lint tests: Run if test -f .prettierrc.cjs; then yarn run v1.22.22 $ /home/runner/work/discourse-multi-rating/discourse-multi-rating/node\_modules/.bin/eslint --ext .js,.gjs,.js.es6 -…

---

## [Help with new serialization protections](https://meta.discourse.org/t/help-with-new-serialization-protections/316864)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 1\
**Last updated:** [July 29, 2024, 9:57pm UTC](https://meta.discourse.org/t/help-with-new-serialization-protections/316864 "2024-07-29T21:57:14Z")

</div>

Should something like this work? render\_json\_dump(ServerSerializer.new(@server, scope: guardian), is\_index: false) Here are all of my renders: # render json: servers, each\_serializer: ServerIndexSerializer…

---

## [Guardian before and after checks api](https://meta.discourse.org/t/guardian-before-and-after-checks-api/307241)

<div class="topic-metadata">

**Author:** [@angus](https://meta.discourse.org/u/angus)\
**Replies:** 4\
**Last updated:** [July 29, 2024, 2:20pm UTC](https://meta.discourse.org/t/guardian-before-and-after-checks-api/307241 "2024-07-29T14:20:03Z")

</div>

Something I’ve come across a few times when building plugins is the need to modify the outcome of Guardian can\_\* checks. I’ve come across it again in the ActivityPub Plugin: https://github.com/discourse/discourse-activi…

---

## [How to use Tailwind to theme Discourse](https://meta.discourse.org/t/how-to-use-tailwind-to-theme-discourse/227326)

<div class="topic-metadata">

**Author:** [@mksafi](https://meta.discourse.org/u/mksafi)\
**Replies:** 6\
**Last updated:** [July 27, 2024, 10:12pm UTC](https://meta.discourse.org/t/how-to-use-tailwind-to-theme-discourse/227326 "2024-07-27T22:12:52Z")

</div>

Initially I thought I would have to replace entire templates in order add Tailwind’s utility classes to the HTML. Replacing Discourse templates wholesale is a bad idea, I was informed. Fortunately, Tailwind also allows y…

---

## [User card template or widget?](https://meta.discourse.org/t/user-card-template-or-widget/318657)

<div class="topic-metadata">

**Author:** [@Farhan\_Hossen](https://meta.discourse.org/u/Farhan_Hossen)\
**Replies:** 1\
**Last updated:** [July 27, 2024, 4:47am UTC](https://meta.discourse.org/t/user-card-template-or-widget/318657 "2024-07-27T04:47:21Z")

</div>

Is the user card a widget or template? I can’t find it anywhere. How can I modify its content?

---

## [How to add a class to category tr to optionally apply CSS](https://meta.discourse.org/t/how-to-add-a-class-to-category-tr-to-optionally-apply-css/318438)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 2\
**Last updated:** [July 26, 2024, 6:06pm UTC](https://meta.discourse.org/t/how-to-add-a-class-to-category-tr-to-optionally-apply-css/318438 "2024-07-26T18:06:38Z")

</div>

I’m adding some stuff to the in the topic list. I need to apply CSS only to the categories that I’m supposed to be affecting. I think I need to do that by adding a “can-rate” class to the \<tr\> of I the categories that …

---

## [Cannot yarn or run ember-cli on MacOS Sonoma 14.5](https://meta.discourse.org/t/cannot-yarn-or-run-ember-cli-on-macos-sonoma-14-5/318621)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**Replies:** 1\
**Last updated:** [July 26, 2024, 5:00pm UTC](https://meta.discourse.org/t/cannot-yarn-or-run-ember-cli-on-macos-sonoma-14-5/318621 "2024-07-26T17:00:53Z")

</div>

Cannot yarn or run ember-cli on Sonoma 14.5 for main Getting an error/stuck here: ⠁ squoosh@discourse/squoosh#dc9649d which eventually leads to error Couldn't find match for "dc9649d" in "refs/heads/abortable-task,re…

---

## [Is there a way to limit objects type settings length?](https://meta.discourse.org/t/is-there-a-way-to-limit-objects-type-settings-length/318352)

<div class="topic-metadata">

**Author:** [@aslangm](https://meta.discourse.org/u/aslangm)\
**Replies:** 0\
**Last updated:** [July 25, 2024, 1:21pm UTC](https://meta.discourse.org/t/is-there-a-way-to-limit-objects-type-settings-length/318352 "2024-07-25T13:21:11Z")

</div>

I’m wondering if there is a way to to limit objects type settings length. I have this settings: custom\_header\_links: type: objects default: \[\] schema: name: "link" identifier: text properties: te…

---

## [Wrench no longer working due to old theme](https://meta.discourse.org/t/wrench-no-longer-working-due-to-old-theme/318165)

<div class="topic-metadata">

**Author:** [@Joseph\_Tucker1](https://meta.discourse.org/u/Joseph_Tucker1)\
**Replies:** 6\
**Last updated:** [July 24, 2024, 10:02pm UTC](https://meta.discourse.org/t/wrench-no-longer-working-due-to-old-theme/318165 "2024-07-24T22:02:56Z")

</div>

About mid-May, the wrench stopped working for our admins. I’d really like to get this working again. \*\* \*\* We also have a navbar that uses jquery for dropdown options and now those aren’t working anymore after upd…

---

## [How to override the site-header.hbs file from custom theme?](https://meta.discourse.org/t/how-to-override-the-site-header-hbs-file-from-custom-theme/318065)

<div class="topic-metadata">

**Author:** [@aslangm](https://meta.discourse.org/u/aslangm)\
**Replies:** 10\
**Last updated:** [July 24, 2024, 7:45pm UTC](https://meta.discourse.org/t/how-to-override-the-site-header-hbs-file-from-custom-theme/318065 "2024-07-24T19:45:42Z")

</div>

I’m trying to override site-header.hbs in my custom theme. The path in Discourse to that file is plugins/styleguide/assets/javascripts/discourse/components/sections/organisms/site-header.hbs. I tried to add in my theme’…

---

## [Live updates of components](https://meta.discourse.org/t/live-updates-of-components/318126)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 1\
**Last updated:** [July 24, 2024, 4:55pm UTC](https://meta.discourse.org/t/live-updates-of-components/318126 "2024-07-24T16:55:11Z")

</div>

I have a component that looks like this: \<td class="topic-rating"\> \<span class="rating-title"\>{{ratingName}}\</span\> \<form\> \<input type="hidden" name="topic\_id" value="{{topic.id}}"\> {{#unless use…

---

## [Showing the security status in all external link using Google Safe Browsing Lookup API](https://meta.discourse.org/t/showing-the-security-status-in-all-external-link-using-google-safe-browsing-lookup-api/313015)

<div class="topic-metadata">

**Author:** [@kokoloman001](https://meta.discourse.org/u/kokoloman001)\
**Replies:** 13\
**Last updated:** [July 23, 2024, 7:39pm UTC](https://meta.discourse.org/t/showing-the-security-status-in-all-external-link-using-google-safe-browsing-lookup-api/313015 "2024-07-23T19:39:57Z")

</div>

A while ago, I was looking for a strategy to protect my website from external links provided by forum members. I’m trying to create my own database of harmful URLs. But it’s harder than you think. The sheer volume of lin…

---

## [How to override a template.hbs from a plugin](https://meta.discourse.org/t/how-to-override-a-template-hbs-from-a-plugin/155556)

<div class="topic-metadata">

**Author:** [@oca](https://meta.discourse.org/u/oca)\
**Replies:** 5\
**Last updated:** [July 23, 2024, 2:45pm UTC](https://meta.discourse.org/t/how-to-override-a-template-hbs-from-a-plugin/155556 "2024-07-23T14:45:09Z")

</div>

Dear all, Let’s say I’d like to override a hbs template from a plugin, like the amazing Events plugin. I’ve tried the following scripts: \<script type="text/x-handlebars" data-template-name="components/events-calendar-…

---

## [Why hasn't Discourse been rewritten in Rust?](https://meta.discourse.org/t/why-hasnt-discourse-been-rewritten-in-rust/316333)

<div class="topic-metadata">

**Author:** [@tsk](https://meta.discourse.org/u/tsk)\
**Replies:** 22\
**Last updated:** [July 23, 2024, 2:28pm UTC](https://meta.discourse.org/t/why-hasnt-discourse-been-rewritten-in-rust/316333 "2024-07-23T14:28:25Z")

</div>

Would memory safety greatly benefit the platform? Performance could also see an improvement. I also think the never ending discourse bugs could be reduced with Rust. Will discourse as a modern platform survive without…

---

## [How hide Login button in header](https://meta.discourse.org/t/how-hide-login-button-in-header/317637)

<div class="topic-metadata">

**Author:** [@thaidb](https://meta.discourse.org/u/thaidb)\
**Replies:** 2\
**Last updated:** [July 22, 2024, 5:33pm UTC](https://meta.discourse.org/t/how-hide-login-button-in-header/317637 "2024-07-22T17:33:01Z")

</div>

How can we hide login button in header and display them in other, example Hamburger menu?

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

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