# Development

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

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

**Page:** 88

---

## [How to insert something right after \<head\>?](https://meta.discourse.org/t/how-to-insert-something-right-after-head/160260)

<div class="topic-metadata">

**Author:** [@Terrapop](https://meta.discourse.org/u/Terrapop)\
**Replies:** 3\
**Last updated:** [August 9, 2020, 5:35pm UTC](https://meta.discourse.org/t/how-to-insert-something-right-after-head/160260 "2020-08-09T17:35:48Z")

</div>

For a GDPR solution, I need to insert a script tag right after the opening \<head\> tag. Is there a simple way to achieve that? Building a component only allows me to insert it before the closing \</head\> tag.

---

## [How to have upload image to plugin folder, and use this image in css](https://meta.discourse.org/t/how-to-have-upload-image-to-plugin-folder-and-use-this-image-in-css/160211)

<div class="topic-metadata">

**Author:** [@Dev\_Work](https://meta.discourse.org/u/Dev_Work)\
**Replies:** 1\
**Last updated:** [August 8, 2020, 8:47pm UTC](https://meta.discourse.org/t/how-to-have-upload-image-to-plugin-folder-and-use-this-image-in-css/160211 "2020-08-08T20:47:33Z")

</div>

Suggest code examples? background-image: url(/plugins/MY\_PLUGIN/images/bg.png); And manage the styles of this image from the admin-panel example background-position-x, etc

---

## [How do custom emoji URLs work?](https://meta.discourse.org/t/how-do-custom-emoji-urls-work/160185)

<div class="topic-metadata">

**Author:** [@Boost](https://meta.discourse.org/u/Boost)\
**Replies:** 0\
**Last updated:** [August 8, 2020, 9:33am UTC](https://meta.discourse.org/t/how-do-custom-emoji-urls-work/160185 "2020-08-08T09:33:33Z")

</div>

So after reporting this: Custom emoji don't use CDN for S3 stored assets in a few pages - #6 by Falco and finding out after a bit of research what I think to be a missing feature / bug in discourse: Custom emoji don't us…

---

## [Endpoint for User Information](https://meta.discourse.org/t/endpoint-for-user-information/160145)

<div class="topic-metadata">

**Author:** [@Alexander](https://meta.discourse.org/u/Alexander)\
**Replies:** 5\
**Last updated:** [August 7, 2020, 10:55pm UTC](https://meta.discourse.org/t/endpoint-for-user-information/160145 "2020-08-07T22:55:00Z")

</div>

Hi all! I would like to know if there is currently (or could be implemented) an endpoint that contains information about the user I am making an application that uses the User API Keys, everything works perfectly, but …

---

## [API upload via url inconsistent results](https://meta.discourse.org/t/api-upload-via-url-inconsistent-results/84016)

<div class="topic-metadata">

**Author:** [@michael.smith](https://meta.discourse.org/u/michael.smith)\
**Replies:** 6\
**Last updated:** [April 3, 2018, 11:49pm UTC](https://meta.discourse.org/t/api-upload-via-url-inconsistent-results/84016 "2018-04-03T23:49:45Z")

</div>

Hi All, Looking for some insight into this one. I am trying to get uploads to work via API and I keep getting the error {"errors"=\>\["Sorry, you must provide a file to upload."\]} This happens when I try to upload a ge…

---

## [Post anonymously via API?](https://meta.discourse.org/t/post-anonymously-via-api/159759)

<div class="topic-metadata">

**Author:** [@Orachun\_Udomkasemsub](https://meta.discourse.org/u/Orachun_Udomkasemsub)\
**Replies:** 4\
**Last updated:** [August 6, 2020, 3:25pm UTC](https://meta.discourse.org/t/post-anonymously-via-api/159759 "2020-08-06T15:25:03Z")

</div>

Hi, Is it possible to post anonymously via API? I’m browsing through API doc but can’t find how to do so. Thanks.

---

## [Creating user via API](https://meta.discourse.org/t/creating-user-via-api/36133)

<div class="topic-metadata">

**Author:** [@nadermx](https://meta.discourse.org/u/nadermx)\
**Replies:** 10\
**Last updated:** [August 5, 2020, 2:06pm UTC](https://meta.discourse.org/t/creating-user-via-api/36133 "2020-08-05T14:06:49Z")

</div>

Right now on my discourse set up, I have it set up to invite only, admin must approve users, and allow new registrations. The issue I am having though is when I create a user via my API I still have to log in and approv…

---

## [Disable account confirm emails when creating users via API](https://meta.discourse.org/t/disable-account-confirm-emails-when-creating-users-via-api/68663)

<div class="topic-metadata">

**Author:** [@Valya\_Barboy](https://meta.discourse.org/u/Valya_Barboy)\
**Replies:** 26\
**Last updated:** [August 5, 2020, 2:03pm UTC](https://meta.discourse.org/t/disable-account-confirm-emails-when-creating-users-via-api/68663 "2020-08-05T14:03:31Z")

</div>

@team Continuing the discussion from Disable Welcome Emails - Can it be done?: Hello. I’ve tried disabling these in a bunch of ways: I’ve tried both choices for “discourse narrativ…

---

## [Creating Active Users via the API gem](https://meta.discourse.org/t/creating-active-users-via-the-api-gem/33133)

<div class="topic-metadata">

**Author:** [@jmatsuba](https://meta.discourse.org/u/jmatsuba)\
**Replies:** 39\
**Last updated:** [August 5, 2020, 1:57pm UTC](https://meta.discourse.org/t/creating-active-users-via-the-api-gem/33133 "2020-08-05T13:57:50Z")

</div>

I have the API gem up and running and I am trying to create a active user on our discourse site via the api. I am creating accounts using information that I have already verified, so a email confirmation is no required. …

---

## [What's the fastest and easiest way to add a persistent javascript file or snippet](https://meta.discourse.org/t/whats-the-fastest-and-easiest-way-to-add-a-persistent-javascript-file-or-snippet/159888)

<div class="topic-metadata">

**Author:** [@nate\_x](https://meta.discourse.org/u/nate_x)\
**Replies:** 4\
**Last updated:** [August 5, 2020, 10:40am UTC](https://meta.discourse.org/t/whats-the-fastest-and-easiest-way-to-add-a-persistent-javascript-file-or-snippet/159888 "2020-08-05T10:40:10Z")

</div>

I’m a total noob and have just been granted admin rights to a discourse instance. I’d like to run a jQuery snippet on page load sitewide. What is the easiest and fastest way for me to do that? I’m a web developer, so I …

---

## [Pandoc integration](https://meta.discourse.org/t/pandoc-integration/149265)

<div class="topic-metadata">

**Author:** [@sunjam](https://meta.discourse.org/u/sunjam)\
**Replies:** 12\
**Last updated:** [August 2, 2020, 2:22pm UTC](https://meta.discourse.org/t/pandoc-integration/149265 "2020-08-02T14:22:44Z")

</div>

Continuing the discussion from Converting links from raw markdown to HTML: I’m for Pandoc integration. I see there is this web app available with a REST API. Looking for a way to automate drafting out mediawiki docume…

---

## [Is it possible to remove the dates of posts on the forum?](https://meta.discourse.org/t/is-it-possible-to-remove-the-dates-of-posts-on-the-forum/84122)

<div class="topic-metadata">

**Author:** [@Scott\_G\_Overend](https://meta.discourse.org/u/Scott_G_Overend)\
**Replies:** 2\
**Last updated:** [March 30, 2018, 7:12am UTC](https://meta.discourse.org/t/is-it-possible-to-remove-the-dates-of-posts-on-the-forum/84122 "2018-03-30T07:12:36Z")

</div>

Is there a way to remove the dates on forum posts? My forum has a lot of content, but posts are more sporadic… I don’t want to scare people away instantly

---

## [Issues with creating a post and locking the topic via the API](https://meta.discourse.org/t/issues-with-creating-a-post-and-locking-the-topic-via-the-api/159003)

<div class="topic-metadata">

**Author:** [@AstonJ](https://meta.discourse.org/u/AstonJ)\
**Replies:** 9\
**Last updated:** [July 31, 2020, 2:06am UTC](https://meta.discourse.org/t/issues-with-creating-a-post-and-locking-the-topic-via-the-api/159003 "2020-07-31T02:06:35Z")

</div>

I’m locking a topic via the API (gem) and am able to lock it and unlock if that is the only command in the chain, but when I create a post in the topic beforehand, and the next command is to lock it - it makes the post, …

---

## [Integrating registered users notifications+avatar into static website](https://meta.discourse.org/t/integrating-registered-users-notifications-avatar-into-static-website/159245)

<div class="topic-metadata">

**Author:** [@Monkey](https://meta.discourse.org/u/Monkey)\
**Replies:** 1\
**Last updated:** [July 30, 2020, 3:39am UTC](https://meta.discourse.org/t/integrating-registered-users-notifications-avatar-into-static-website/159245 "2020-07-30T03:39:25Z")

</div>

Hello everyone, I have a website and I use Embedded discourse comments. Rather than using the standard method below of creating the thread when a user visits the webpage. I use the api to create the threads and attach t…

---

## [Subcategory Name API](https://meta.discourse.org/t/subcategory-name-api/159199)

<div class="topic-metadata">

**Author:** [@Gaurav\_Sardana](https://meta.discourse.org/u/Gaurav_Sardana)\
**Replies:** 1\
**Last updated:** [July 29, 2020, 7:08pm UTC](https://meta.discourse.org/t/subcategory-name-api/159199 "2020-07-29T19:08:59Z")

</div>

Hey, Can anyone please help me to get subcategories name through the API. I get all the details of categories but i only get subcategory id. I want name of the subcategory. One more thing - color and text color of a s…

---

## [How to set Browser Cache for Avatar Flair Image of Group?](https://meta.discourse.org/t/how-to-set-browser-cache-for-avatar-flair-image-of-group/158760)

<div class="topic-metadata">

**Author:** [@Gulshan\_Kumar](https://meta.discourse.org/u/Gulshan_Kumar)\
**Replies:** 2\
**Last updated:** [July 28, 2020, 6:35am UTC](https://meta.discourse.org/t/how-to-set-browser-cache-for-avatar-flair-image-of-group/158760 "2020-07-28T06:35:02Z")

</div>

Why? Image render slowly with cache-control: no-cache, no-store Affected URL https://example.com/uploads/short-url/file-name.png

---

## [Plugin to sync LDAP distribution lists with Discourse groups](https://meta.discourse.org/t/plugin-to-sync-ldap-distribution-lists-with-discourse-groups/158932)

<div class="topic-metadata">

**Author:** [@Cyrine](https://meta.discourse.org/u/Cyrine)\
**Replies:** 0\
**Last updated:** [July 27, 2020, 10:53am UTC](https://meta.discourse.org/t/plugin-to-sync-ldap-distribution-lists-with-discourse-groups/158932 "2020-07-27T10:53:14Z")

</div>

Hello, I want to develop a plugin to sync LDAP Distribution lists with Discourse groups, but I am not sure how to go about writing the discourse side script for it. I’m wondering if it’s possible to directly use the Gro…

---

## [Efficiency of getting the number of search results via AJAX](https://meta.discourse.org/t/efficiency-of-getting-the-number-of-search-results-via-ajax/158866)

<div class="topic-metadata">

**Author:** [@martinmodrak](https://meta.discourse.org/u/martinmodrak)\
**Replies:** 0\
**Last updated:** [July 26, 2020, 9:39pm UTC](https://meta.discourse.org/t/efficiency-of-getting-the-number-of-search-results-via-ajax/158866 "2020-07-26T21:39:13Z")

</div>

For a Discourse I am managing, I want to highlight topics that need community attention. Currently those are retrieved via a somewhat complex search query (single user, not solved, older than two days). I’ve successfully…

---

## [Message Bus, API and Documentation](https://meta.discourse.org/t/message-bus-api-and-documentation/158823)

<div class="topic-metadata">

**Author:** [@Sonu](https://meta.discourse.org/u/Sonu)\
**Replies:** 2\
**Last updated:** [July 26, 2020, 9:32am UTC](https://meta.discourse.org/t/message-bus-api-and-documentation/158823 "2020-07-26T09:32:14Z")

</div>

Is there any official api or documentation for Message Bus What are the Message Bus Poll Request end points

---

## [/search/query response body changes for unknown reason](https://meta.discourse.org/t/search-query-response-body-changes-for-unknown-reason/158536)

<div class="topic-metadata">

**Author:** [@th3coop](https://meta.discourse.org/u/th3coop)\
**Replies:** 5\
**Last updated:** [July 24, 2020, 3:32pm UTC](https://meta.discourse.org/t/search-query-response-body-changes-for-unknown-reason/158536 "2020-07-24T15:32:36Z")

</div>

Hey there! We’ve built a feature in our website that queries our hosted Discourse forums and displays information about found topics. It was all working nicely last week when we deployed but it stopped over the weekend…

---

## [Changing avatar\_url while sso\_overrides\_avatar is set?](https://meta.discourse.org/t/changing-avatar-url-while-sso-overrides-avatar-is-set/158513)

<div class="topic-metadata">

**Author:** [@charl](https://meta.discourse.org/u/charl)\
**Replies:** 1\
**Last updated:** [July 22, 2020, 4:34pm UTC](https://meta.discourse.org/t/changing-avatar-url-while-sso-overrides-avatar-is-set/158513 "2020-07-22T16:34:01Z")

</div>

Is it possible to change avatar\_url per user while sso\_overrides\_avatar is true? I understand it’s possible to set avatar\_url in the login process (and use avatar\_force\_update), but is there any other way I could go abo…

---

## [Making filters work without reload](https://meta.discourse.org/t/making-filters-work-without-reload/58049)

<div class="topic-metadata">

**Author:** [@david](https://meta.discourse.org/u/david)\
**Replies:** 4\
**Last updated:** [July 22, 2020, 8:47am UTC](https://meta.discourse.org/t/making-filters-work-without-reload/58049 "2020-07-22T08:47:49Z")

</div>

I’ve just done some work on discourse-solved, and added some filters. These work fine if you visit the URLs directly, but if you follow a link from within the site then it doesn’t work. If I click on this link, it doesn…

---

## [Connecting to an external source of avatars?](https://meta.discourse.org/t/connecting-to-an-external-source-of-avatars/158432)

<div class="topic-metadata">

**Author:** [@charl](https://meta.discourse.org/u/charl)\
**Replies:** 1\
**Last updated:** [July 21, 2020, 7:04pm UTC](https://meta.discourse.org/t/connecting-to-an-external-source-of-avatars/158432 "2020-07-21T19:04:14Z")

</div>

I already know about gravatars and external system avatars, but would it be possible to assign a user’s avatar to some other external image? In my case, the user should not be able to change their avatar, instead their a…

---

## [Add Callback to the "Create Topic" OnClick in new topic composer window](https://meta.discourse.org/t/add-callback-to-the-create-topic-onclick-in-new-topic-composer-window/158433)

<div class="topic-metadata">

**Author:** [@iansp](https://meta.discourse.org/u/iansp)\
**Replies:** 0\
**Last updated:** [July 21, 2020, 7:06pm UTC](https://meta.discourse.org/t/add-callback-to-the-create-topic-onclick-in-new-topic-composer-window/158433 "2020-07-21T19:06:05Z")

</div>

Hi, Is it possible to add a callback to the create topic button in the new topic composer window such that I can fire an event and wait for its completion before I actually create the topic? With webhooks I can fire an …

---

## [Handle search event](https://meta.discourse.org/t/handle-search-event/158176)

<div class="topic-metadata">

**Author:** [@gar1t](https://meta.discourse.org/u/gar1t)\
**Replies:** 0\
**Last updated:** [July 19, 2020, 3:44pm UTC](https://meta.discourse.org/t/handle-search-event/158176 "2020-07-19T15:44:09Z")

</div>

I’d like to run some code when Discourse performs a search given a search term. This would include both when Discourse performs a search on an entry in the search input (e.g. after a pause in typing) as well as from the …

---

## [Specify Running Container on Backup Page from Env Vars in yml file](https://meta.discourse.org/t/specify-running-container-on-backup-page-from-env-vars-in-yml-file/157669)

<div class="topic-metadata">

**Author:** [@neounix](https://meta.discourse.org/u/neounix)\
**Replies:** 4\
**Last updated:** [July 14, 2020, 8:42am UTC](https://meta.discourse.org/t/specify-running-container-on-backup-page-from-env-vars-in-yml-file/157669 "2020-07-14T08:42:49Z")

</div>

Proposed Plugin: discourse-container-names.git What would you like done? I would like a simple plugin which displays the container name(s) on the backups page, as follows (example): The name of the container sh…

---

## [API for changing category groups](https://meta.discourse.org/t/api-for-changing-category-groups/99857)

<div class="topic-metadata">

**Author:** [@Edwin\_Silva](https://meta.discourse.org/u/Edwin_Silva)\
**Replies:** 16\
**Last updated:** [July 19, 2020, 6:41pm UTC](https://meta.discourse.org/t/api-for-changing-category-groups/99857 "2020-07-19T18:41:56Z")

</div>

I´m trying to add a group to a category via the api using postman. Is there a way to do that ?

---

## [Requesting to expose an api to change the default schema.org data](https://meta.discourse.org/t/requesting-to-expose-an-api-to-change-the-default-schema-org-data/158173)

<div class="topic-metadata">

**Author:** [@fzngagan](https://meta.discourse.org/u/fzngagan)\
**Replies:** 0\
**Last updated:** [July 19, 2020, 3:21pm UTC](https://meta.discourse.org/t/requesting-to-expose-an-api-to-change-the-default-schema-org-data/158173 "2020-07-19T15:21:48Z")

</div>

Continuing the discussion from Different schema type for Topics and Posts: I was recently requested by a client to change the schema.org metadata for topics of a particular category to Article. The sense behind it is, t…

---

## [(Ruby) Selecting only posts that are made by non-original posters](https://meta.discourse.org/t/ruby-selecting-only-posts-that-are-made-by-non-original-posters/157996)

<div class="topic-metadata">

**Author:** [@ghgoodreau](https://meta.discourse.org/u/ghgoodreau)\
**Replies:** 2\
**Last updated:** [July 18, 2020, 10:36pm UTC](https://meta.discourse.org/t/ruby-selecting-only-posts-that-are-made-by-non-original-posters/157996 "2020-07-18T22:36:07Z")

</div>

Hey everyone! I have started volunteering for a community recently and I am tasked with updating an existing plugin. This plugin currently changes a topics tag when it reaches a certain word count threshold. I am suppos…

---

## [How to create a custom button?](https://meta.discourse.org/t/how-to-create-a-custom-button/157717)

<div class="topic-metadata">

**Author:** [@AntiMetaman](https://meta.discourse.org/u/AntiMetaman)\
**Replies:** 5\
**Last updated:** [July 18, 2020, 12:36pm UTC](https://meta.discourse.org/t/how-to-create-a-custom-button/157717 "2020-07-18T12:36:01Z")

</div>

Hi, I’m new to Discourse. I’ve installed it already and am playing around with it. There is one feature I’d really like and maybe this is already possible which is why I’d like to ask. I want to create a category in my…

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

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