# Development

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

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

**Page:** 77

---

## [I want to use custom params in plugin-outlet](https://meta.discourse.org/t/i-want-to-use-custom-params-in-plugin-outlet/190381)

<div class="topic-metadata">

**Author:** [@Programer-D](https://meta.discourse.org/u/Programer-D)\
**Replies:** 0\
**Last updated:** [May 14, 2021, 7:15am UTC](https://meta.discourse.org/t/i-want-to-use-custom-params-in-plugin-outlet/190381 "2021-05-14T07:15:27Z")

</div>

In my plugin “SearchUserWithUserFilelds”. ~javascript/template/my\_plugin.hbs \<div id="search-result" class="search-result"\> {{#each filtered\_users as |user|}} {{user-info user=user}} {{/each}} \</div\> …

---

## [Attach Hidden Data to Topics or Posts via API](https://meta.discourse.org/t/attach-hidden-data-to-topics-or-posts-via-api/190332)

<div class="topic-metadata">

**Author:** [@stujo](https://meta.discourse.org/u/stujo)\
**Replies:** 2\
**Last updated:** [May 14, 2021, 4:39am UTC](https://meta.discourse.org/t/attach-hidden-data-to-topics-or-posts-via-api/190332 "2021-05-14T04:39:01Z")

</div>

Is there a way to attach (hidden) extra data to a topic or post that can be read and written via the API We’re looking to sync information about posts to another system and want to ‘tag’ topics and posts with a unique i…

---

## [Discourse Local setup](https://meta.discourse.org/t/discourse-local-setup/171271)

<div class="topic-metadata">

**Author:** [@Anusri](https://meta.discourse.org/u/Anusri)\
**Replies:** 6\
**Last updated:** [May 14, 2021, 4:20am UTC](https://meta.discourse.org/t/discourse-local-setup/171271 "2021-05-14T04:20:36Z")

</div>

hi, I have installed discourse in my local using ubuntu software. i cannot run my url its showing below error, plz can any one help me? Error: An error has occurred, all later migrations canceled: PG::SyntaxError: ER…

---

## [API Endpoint to Retrieve Community Emails Addresses](https://meta.discourse.org/t/api-endpoint-to-retrieve-community-emails-addresses/79113)

<div class="topic-metadata">

**Author:** [@dgallegos](https://meta.discourse.org/u/dgallegos)\
**Replies:** 6\
**Last updated:** [May 14, 2021, 12:44am UTC](https://meta.discourse.org/t/api-endpoint-to-retrieve-community-emails-addresses/79113 "2021-05-14T00:44:54Z")

</div>

I was hoping somebody can point me to where I can set my endpoint to retrieve via API callout users email addresses associate with my organizations specific community. I can hit the end point of active users, new users …

---

## [Customizing Subscription Plugin pages](https://meta.discourse.org/t/customizing-subscription-plugin-pages/175305)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 5\
**Last updated:** [May 11, 2021, 7:46pm UTC](https://meta.discourse.org/t/customizing-subscription-plugin-pages/175305 "2021-05-11T19:46:22Z")

</div>

I’m getting closer to having PfaffManager be a product. My MVP is to just have Discourse replace https://www.literatecomputing.com/discourse-installation-packages/ so that people can purchase an installation (as they do …

---

## [Facing issues while using binstubs](https://meta.discourse.org/t/facing-issues-while-using-binstubs/190017)

<div class="topic-metadata">

**Author:** [@fzngagan](https://meta.discourse.org/u/fzngagan)\
**Replies:** 1\
**Last updated:** [May 11, 2021, 10:22am UTC](https://meta.discourse.org/t/facing-issues-while-using-binstubs/190017 "2021-05-11T10:22:18Z")

</div>

Recently, I’ve been getting errors while using binstubs on MacOS. My workflow is completely dependent on them. env: ruby\\r: No such file or directory Looks like there’s some problem with line endings? My temporary wor…

---

## ["Get a user by id" can't get email](https://meta.discourse.org/t/get-a-user-by-id-cant-get-email/189913)

<div class="topic-metadata">

**Author:** [@Programer-D](https://meta.discourse.org/u/Programer-D)\
**Replies:** 2\
**Last updated:** [May 10, 2021, 12:22pm UTC](https://meta.discourse.org/t/get-a-user-by-id-cant-get-email/189913 "2021-05-10T12:22:47Z")

</div>

I want to use the “Get a user by id” API to get the email of a user. I can get the user information, but the email is not included in the response. There is also no parameter to be given. Is there any other setting I…

---

## [How to refresh a particular widget after getting data from ajax](https://meta.discourse.org/t/how-to-refresh-a-particular-widget-after-getting-data-from-ajax/189616)

<div class="topic-metadata">

**Author:** [@sachin\_kumar](https://meta.discourse.org/u/sachin_kumar)\
**Replies:** 2\
**Last updated:** [May 8, 2021, 11:59am UTC](https://meta.discourse.org/t/how-to-refresh-a-particular-widget-after-getting-data-from-ajax/189616 "2021-05-08T11:59:22Z")

</div>

Hello I have been trying to implement a custom navigation bar for my discourse website and below is my code now $.ajax("/categories.json").then( (data) =\> { data.category\_list.categories.map((val)=\>{ …

---

## [Add JS code to post?](https://meta.discourse.org/t/add-js-code-to-post/189747)

<div class="topic-metadata">

**Author:** [@Paul\_King1](https://meta.discourse.org/u/Paul_King1)\
**Replies:** 1\
**Last updated:** [May 8, 2021, 9:23am UTC](https://meta.discourse.org/t/add-js-code-to-post/189747 "2021-05-08T09:23:44Z")

</div>

Is there anyway that I can add a chat link button to my post. I don’t know exactly what code it is, I suppose JS. Thank you

---

## [Using a theme component instead of an iframe to create a topic timer](https://meta.discourse.org/t/using-a-theme-component-instead-of-an-iframe-to-create-a-topic-timer/189635)

<div class="topic-metadata">

**Author:** [@tshenry](https://meta.discourse.org/u/tshenry)\
**Replies:** 7\
**Last updated:** [March 27, 2018, 7:42am UTC](https://meta.discourse.org/t/using-a-theme-component-instead-of-an-iframe-to-create-a-topic-timer/189635 "2018-03-27T07:42:04Z")

</div>

It’s probably best to ditch the iframe altogether. For a fun personal challenge, I came up with a rough proof of concept that applies the timer via a theme component. Right now, it adds a timer to the first post of a top…

---

## [Not able to hit the docker installation of Discourse from a different computer's web browser](https://meta.discourse.org/t/not-able-to-hit-the-docker-installation-of-discourse-from-a-different-computers-web-browser/189625)

<div class="topic-metadata">

**Author:** [@virat\_sagar](https://meta.discourse.org/u/virat_sagar)\
**Replies:** 0\
**Last updated:** [May 7, 2021, 11:46am UTC](https://meta.discourse.org/t/not-able-to-hit-the-docker-installation-of-discourse-from-a-different-computers-web-browser/189625 "2021-05-07T11:46:33Z")

</div>

Hello, I have installed the discourse on docker on a Redhat Virtual machine. When I do a curl -v http://localhost:9292, I get the HTML response back. But when I try to hit the application from my PC’s broswer, the pag…

---

## [Does Discourse have more testing except automated ones & how to ensure no bugs? (Question when learning software engineering & testing)](https://meta.discourse.org/t/does-discourse-have-more-testing-except-automated-ones-how-to-ensure-no-bugs-question-when-learning-software-engineering-testing/189593)

<div class="topic-metadata">

**Author:** [@fzyzcjy](https://meta.discourse.org/u/fzyzcjy)\
**Replies:** 0\
**Last updated:** [May 7, 2021, 5:48am UTC](https://meta.discourse.org/t/does-discourse-have-more-testing-except-automated-ones-how-to-ensure-no-bugs-question-when-learning-software-engineering-testing/189593 "2021-05-07T05:48:46Z")

</div>

I am learning software engineering and testing recently, and want to see some examples - how a successful product does these - in order to enhance my understanding. Then Discourse immediately comes to my mind. It is defi…

---

## [Javascript assets in a theme component](https://meta.discourse.org/t/javascript-assets-in-a-theme-component/189109)

<div class="topic-metadata">

**Author:** [@Hubbe](https://meta.discourse.org/u/Hubbe)\
**Replies:** 15\
**Last updated:** [May 7, 2021, 3:22am UTC](https://meta.discourse.org/t/javascript-assets-in-a-theme-component/189109 "2021-05-07T03:22:49Z")

</div>

I’m trying to build an STL preview theme component. There is an excellent javascript library for this, but I’m not sure how to make it work in a theme component. It’s regular javascript, not es6, which I think means I …

---

## [Retrieve topic excerpt via API](https://meta.discourse.org/t/retrieve-topic-excerpt-via-api/189388)

<div class="topic-metadata">

**Author:** [@hollyw](https://meta.discourse.org/u/hollyw)\
**Replies:** 1\
**Last updated:** [May 6, 2021, 3:39pm UTC](https://meta.discourse.org/t/retrieve-topic-excerpt-via-api/189388 "2021-05-06T15:39:22Z")

</div>

We’re currently using the endpoint tag/tag-name.json to retrieve topic data based on a tag we provide. Some of the data we’re using is topic title, created\_at, and like\_count, but we’d also like to have the topic excerpt…

---

## [How to find the post id inside a topic](https://meta.discourse.org/t/how-to-find-the-post-id-inside-a-topic/189132)

<div class="topic-metadata">

**Author:** [@Nareshh\_Raja](https://meta.discourse.org/u/Nareshh_Raja)\
**Replies:** 3\
**Last updated:** [May 5, 2021, 3:57pm UTC](https://meta.discourse.org/t/how-to-find-the-post-id-inside-a-topic/189132 "2021-05-05T15:57:32Z")

</div>

We are planning to add permalinks to our old forum links inside discourse. We know how to get the category Id and the Topic Id. But how can we write a permalink for the post using the Post Id. Where can we find the po…

---

## [Query parameters in permalinks not being supported while redirecting](https://meta.discourse.org/t/query-parameters-in-permalinks-not-being-supported-while-redirecting/189371)

<div class="topic-metadata">

**Author:** [@Nareshh\_Raja](https://meta.discourse.org/u/Nareshh_Raja)\
**Replies:** 0\
**Last updated:** [May 5, 2021, 2:50pm UTC](https://meta.discourse.org/t/query-parameters-in-permalinks-not-being-supported-while-redirecting/189371 "2021-05-05T14:50:37Z")

</div>

In our old forums we are having URLs for our posts like. www.somesite.com/12/title-of-the-topic/topicid.aspx#123 In the above link #123 was the post id. When we are creating a permalink for the post using the above ur…

---

## [Unable setup development enviroment(docker) as DiscourseConnect provider](https://meta.discourse.org/t/unable-setup-development-enviroment-docker-as-discourseconnect-provider/188886)

<div class="topic-metadata">

**Author:** [@hawm](https://meta.discourse.org/u/hawm)\
**Replies:** 5\
**Last updated:** [May 5, 2021, 7:17am UTC](https://meta.discourse.org/t/unable-setup-development-enviroment-docker-as-discourseconnect-provider/188886 "2021-05-05T07:17:43Z")

</div>

When the consumer redirect to Discourse: Logs: I was test fine on my production Discourse instance. I guess it’s a Ember CLI problem? My development enviroment installaction step: Install Discourse for developme…

---

## [Migrating from telligent to discourse](https://meta.discourse.org/t/migrating-from-telligent-to-discourse/188513)

<div class="topic-metadata">

**Author:** [@Nareshh\_Raja](https://meta.discourse.org/u/Nareshh_Raja)\
**Replies:** 2\
**Last updated:** [April 30, 2021, 5:20am UTC](https://meta.discourse.org/t/migrating-from-telligent-to-discourse/188513 "2021-04-30T05:20:19Z")

</div>

In our website we used Telligent as forums. Now we are planning to migrate forums from Telligent to Discourse. In Telligent we are having around 4500 topics to migrate. We know the permalinks feature in discourse. But it…

---

## [Latest topics JSON - How to load paginated data?](https://meta.discourse.org/t/latest-topics-json-how-to-load-paginated-data/24864)

<div class="topic-metadata">

**Author:** [@kkershaw](https://meta.discourse.org/u/kkershaw)\
**Replies:** 3\
**Last updated:** [February 8, 2015, 4:59pm UTC](https://meta.discourse.org/t/latest-topics-json-how-to-load-paginated-data/24864 "2015-02-08T16:59:04Z")

</div>

When scrolling down the ‘latest’ view in Discourse, the page lazy loads more topics as one scrolls down. Is there any way to load more topics via the latest.json endpoint? Is there a pagination parameter that can be pass…

---

## [Is the generated local docker image secure to be hosted publicly?](https://meta.discourse.org/t/is-the-generated-local-docker-image-secure-to-be-hosted-publicly/188562)

<div class="topic-metadata">

**Author:** [@rui1](https://meta.discourse.org/u/rui1)\
**Replies:** 1\
**Last updated:** [April 29, 2021, 2:56pm UTC](https://meta.discourse.org/t/is-the-generated-local-docker-image-secure-to-be-hosted-publicly/188562 "2021-04-29T14:56:47Z")

</div>

I noticed during docker setup, it will generate an image local\_discourse/app, just wonder is that safe to be hosted publicly? Or will that contain secret information? Are all the secrets stored on disk and not in the ima…

---

## [How can an API user create posts as another user?](https://meta.discourse.org/t/how-can-an-api-user-create-posts-as-another-user/45968)

<div class="topic-metadata">

**Author:** [@cappslock](https://meta.discourse.org/u/cappslock)\
**Replies:** 11\
**Last updated:** [October 16, 2020, 7:53pm UTC](https://meta.discourse.org/t/how-can-an-api-user-create-posts-as-another-user/45968 "2020-10-16T19:53:54Z")

</div>

I’m using the API of Discourse with a custom UI. I’m attempting to integrate this behind an orchestration layer that already authenticates users. I’d like to be able to more or less bypass authentication on the Discourse…

---

## [Cooking with C++](https://meta.discourse.org/t/cooking-with-c/187974)

<div class="topic-metadata">

**Author:** [@Hubbe](https://meta.discourse.org/u/Hubbe)\
**Replies:** 7\
**Last updated:** [April 27, 2021, 6:11am UTC](https://meta.discourse.org/t/cooking-with-c/187974 "2021-04-27T06:11:55Z")

</div>

(First post, so bear with me…) I recently set up my own Discourse forum: https://crucible.hubbe.net/ for the most part I’ve been very happy with it. The community is for an arduino-type board used mostly for prop maker…

---

## [Fakebook, selected tab background color](https://meta.discourse.org/t/fakebook-selected-tab-background-color/188068)

<div class="topic-metadata">

**Author:** [@daniyal](https://meta.discourse.org/u/daniyal)\
**Replies:** 0\
**Last updated:** [April 25, 2021, 5:08pm UTC](https://meta.discourse.org/t/fakebook-selected-tab-background-color/188068 "2021-04-25T17:08:47Z")

</div>

Selected tab’s text is unreadable in the invitation panel when using Fakebook theme. Is anyone else having this issue? I have submitted a pull request regarding this https://github.com/discourse/Fakebook/pull/2

---

## [Is there a better way to make an ajax request from a theme component?](https://meta.discourse.org/t/is-there-a-better-way-to-make-an-ajax-request-from-a-theme-component/186111)

<div class="topic-metadata">

**Author:** [@wilson29thid](https://meta.discourse.org/u/wilson29thid)\
**Replies:** 2\
**Last updated:** [April 24, 2021, 12:48pm UTC](https://meta.discourse.org/t/is-there-a-better-way-to-make-an-ajax-request-from-a-theme-component/186111 "2021-04-24T12:48:50Z")

</div>

I’ve built a theme component that renders when you’re viewing a user’s profile. It makes an ajax request to a separate website (which I control) to check whether the discourse user has an account there (sending the disco…

---

## [Leak of stylesheet\_cache targets?](https://meta.discourse.org/t/leak-of-stylesheet-cache-targets/187957)

<div class="topic-metadata">

**Author:** [@riking](https://meta.discourse.org/u/riking)\
**Replies:** 0\
**Last updated:** [April 24, 2021, 12:09am UTC](https://meta.discourse.org/t/leak-of-stylesheet-cache-targets/187957 "2021-04-24T00:09:27Z")

</div>

Continuing the discussion from PostgreSQL 13 update: Huh, that feels a little high. Meta has 33k rows. Taking a look at this query: select count(\*), target, max(updated\_at) from stylesheet\_cache group by target order …

---

## [How to check if the topic tags include tag id is abczxyz?](https://meta.discourse.org/t/how-to-check-if-the-topic-tags-include-tag-id-is-abczxyz/187891)

<div class="topic-metadata">

**Author:** [@Bcat](https://meta.discourse.org/u/Bcat)\
**Replies:** 11\
**Last updated:** [April 23, 2021, 2:17pm UTC](https://meta.discourse.org/t/how-to-check-if-the-topic-tags-include-tag-id-is-abczxyz/187891 "2021-04-23T14:17:41Z")

</div>

This my code: \<% if ( @topic\_view.topic.tags.length \> 0 and @topic\_view.topic.tags.include? "abcxyza" ) %\> SOME THING \<% else %\> Full code: here And is it wrong to make the site inaccessible? Can you give me the corr…

---

## [My script is not working](https://meta.discourse.org/t/my-script-is-not-working/187902)

<div class="topic-metadata">

**Author:** [@Mikhail\_Tyuftyaev](https://meta.discourse.org/u/Mikhail_Tyuftyaev)\
**Replies:** 6\
**Last updated:** [April 23, 2021, 1:30pm UTC](https://meta.discourse.org/t/my-script-is-not-working/187902 "2021-04-23T13:30:49Z")

</div>

I changed the template upload-selector.hbs Before After The template works well, but my script refuses to work I inserted this code in the “Header” tab Please tell me what could be the problem?

---

## [How to get more posts from posts.json](https://meta.discourse.org/t/how-to-get-more-posts-from-posts-json/84472)

<div class="topic-metadata">

**Author:** [@rmens](https://meta.discourse.org/u/rmens)\
**Replies:** 8\
**Last updated:** [April 22, 2021, 4:19pm UTC](https://meta.discourse.org/t/how-to-get-more-posts-from-posts-json/84472 "2021-04-22T16:19:47Z")

</div>

Hi guys, I’m trying to integrate Discourse in another front-end and would like to show the latest posts on the frontpage. Im querying the API with for example https://meta.discourse.org/posts.json but don’t get a consis…

---

## [Unwanted characters inside the meta description tags](https://meta.discourse.org/t/unwanted-characters-inside-the-meta-description-tags/187780)

<div class="topic-metadata">

**Author:** [@Nareshh\_Raja](https://meta.discourse.org/u/Nareshh_Raja)\
**Replies:** 0\
**Last updated:** [April 22, 2021, 3:57pm UTC](https://meta.discourse.org/t/unwanted-characters-inside-the-meta-description-tags/187780 "2021-04-22T15:57:30Z")

</div>

In meta description tag if the value’s length is greater than the mentioned limit then it is adding “&hellip” at the end. Example : (Safety concerns regarding COVID-19 and the resulting social distancing restrictions de…

---

## [How to ship javascript library with plugin?](https://meta.discourse.org/t/how-to-ship-javascript-library-with-plugin/53190)

<div class="topic-metadata">

**Author:** [@Overgrow](https://meta.discourse.org/u/Overgrow)\
**Replies:** 10\
**Last updated:** [April 22, 2021, 7:46am UTC](https://meta.discourse.org/t/how-to-ship-javascript-library-with-plugin/53190 "2021-04-22T07:46:14Z")

</div>

Hi, I’d like to ask what is recommended way to ship javascript library with some plugin? I can load it asynchronously from external url using e.g. Em.$.getScript('https://cdnjs.cloudflare.com/ajax/libs/......min.js').d…

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

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