# Development

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

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

**Page:** 95

---

## [How do I get the json for the each raw from topics in the category?](https://meta.discourse.org/t/how-do-i-get-the-json-for-the-each-raw-from-topics-in-the-category/148340)

<div class="topic-metadata">

**Author:** [@eextra](https://meta.discourse.org/u/eextra)\
**Replies:** 8\
**Last updated:** [April 17, 2020, 7:52pm UTC](https://meta.discourse.org/t/how-do-i-get-the-json-for-the-each-raw-from-topics-in-the-category/148340 "2020-04-17T19:52:21Z")

</div>

For example https://meta.discourse.org/c/dev/7.json displays me a list of topics for dev categories Can I similarly display the content (raw text) of each topic in this category ?

---

## [403 Error during multiple API calls](https://meta.discourse.org/t/403-error-during-multiple-api-calls/148346)

<div class="topic-metadata">

**Author:** [@Ragavan\_Pitchai](https://meta.discourse.org/u/Ragavan_Pitchai)\
**Replies:** 3\
**Last updated:** [April 17, 2020, 4:17pm UTC](https://meta.discourse.org/t/403-error-during-multiple-api-calls/148346 "2020-04-17T16:17:43Z")

</div>

We are using the following APIs to update and suspend users but we are getting 403 errors. Can you inform us what is the cause for this error. FYI, we are using API key of admin user. Suspend API \`{{base\_url}}/admin/us…

---

## [Solving "zsh: no matches found" error when running rake task](https://meta.discourse.org/t/solving-zsh-no-matches-found-error-when-running-rake-task/148011)

<div class="topic-metadata">

**Author:** [@david](https://meta.discourse.org/u/david)\
**Replies:** 4\
**Last updated:** [April 17, 2020, 1:36pm UTC](https://meta.discourse.org/t/solving-zsh-no-matches-found-error-when-running-rake-task/148011 "2020-04-17T13:36:23Z")

</div>

macOS now ships with zsh as the default shell, which means this issue comes up fairly regularly. In zsh: % bin/rake plugin:spec\[discourse-solved\] zsh: no matches found: plugin:spec\[discourse-solved\] ▶ Why does this hap…

---

## [Changes to the user card data source](https://meta.discourse.org/t/changes-to-the-user-card-data-source/139951)

<div class="topic-metadata">

**Author:** [@david](https://meta.discourse.org/u/david)\
**Replies:** 3\
**Last updated:** [April 17, 2020, 8:43am UTC](https://meta.discourse.org/t/changes-to-the-user-card-data-source/139951 "2020-04-17T08:43:44Z")

</div>

At the moment, when you click a user card, we load /u/david.json, which is exactly the same endpoint as my full profile. This is a little wasteful, since the user card doesn’t even use most of the data! Therefore, we wi…

---

## [Adding server-side plugin disabling to safe mode](https://meta.discourse.org/t/adding-server-side-plugin-disabling-to-safe-mode/148299)

<div class="topic-metadata">

**Author:** [@angus](https://meta.discourse.org/u/angus)\
**Replies:** 8\
**Last updated:** [April 17, 2020, 2:48am UTC](https://meta.discourse.org/t/adding-server-side-plugin-disabling-to-safe-mode/148299 "2020-04-17T02:48:02Z")

</div>

I find that folks often first try safe mode whenever anything breaks and they’re using 3rd party customisations. This makes sense. You don’t know where the issue is coming from. However, safe mode only disables javascri…

---

## [Heavily customized Discourse](https://meta.discourse.org/t/heavily-customized-discourse/148298)

<div class="topic-metadata">

**Author:** [@Canapin](https://meta.discourse.org/u/Canapin)\
**Replies:** 1\
**Last updated:** [April 16, 2020, 11:47pm UTC](https://meta.discourse.org/t/heavily-customized-discourse/148298 "2020-04-16T23:47:19Z")

</div>

Hi, I came across this forum: http://community.anker.com/ It’s a heavily customized Discourse and I’m very impressed by the result. A few screenshots in case the forum would be unavailable or change in the future: …

---

## [Plugin working locally But not in live](https://meta.discourse.org/t/plugin-working-locally-but-not-in-live/60316)

<div class="topic-metadata">

**Author:** [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Replies:** 8\
**Last updated:** [April 16, 2020, 8:39pm UTC](https://meta.discourse.org/t/plugin-working-locally-but-not-in-live/60316 "2020-04-16T20:39:38Z")

</div>

Continuing the discussion from Timeline - Social Network like News Feed UI in Topic List: My above plugin working perfectly on localhost as it in screenshots. But I can’t see any updates in live website. Looks like bel…

---

## [Dumb question: do I want to make a theme, plugin or component?](https://meta.discourse.org/t/dumb-question-do-i-want-to-make-a-theme-plugin-or-component/147964)

<div class="topic-metadata">

**Author:** [@pnoeric](https://meta.discourse.org/u/pnoeric)\
**Replies:** 3\
**Last updated:** [April 14, 2020, 3:04pm UTC](https://meta.discourse.org/t/dumb-question-do-i-want-to-make-a-theme-plugin-or-component/147964 "2020-04-14T15:04:14Z")

</div>

I want to make some changes to the user card .hbs file: https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/templates/components/user-card-contents.hbs I can change this .hbs file but he…

---

## [Where are post loves/reactions stored in the database?](https://meta.discourse.org/t/where-are-post-loves-reactions-stored-in-the-database/147871)

<div class="topic-metadata">

**Author:** [@007](https://meta.discourse.org/u/007)\
**Replies:** 2\
**Last updated:** [April 13, 2020, 9:32pm UTC](https://meta.discourse.org/t/where-are-post-loves-reactions-stored-in-the-database/147871 "2020-04-13T21:32:53Z")

</div>

I can’t seem to find where those heart clicks go in the Discourse database. Can somebody point me in the right direction? Thanks!

---

## [Possible to integrate with ActiveCampaign?](https://meta.discourse.org/t/possible-to-integrate-with-activecampaign/147760)

<div class="topic-metadata">

**Author:** [@007](https://meta.discourse.org/u/007)\
**Replies:** 1\
**Last updated:** [April 13, 2020, 10:59am UTC](https://meta.discourse.org/t/possible-to-integrate-with-activecampaign/147760 "2020-04-13T10:59:15Z")

</div>

I use ActiveCampaign for email marketing and am in the process of considering a move to Discourse for my membership sites. Ideally, I’d like to automatically send new members to ActiveCampaig once they confirm their emai…

---

## [Javascript onload not firing](https://meta.discourse.org/t/javascript-onload-not-firing/145763)

<div class="topic-metadata">

**Author:** [@Luke\_Clancy](https://meta.discourse.org/u/Luke_Clancy)\
**Replies:** 6\
**Last updated:** [April 13, 2020, 3:56am UTC](https://meta.discourse.org/t/javascript-onload-not-firing/145763 "2020-04-13T03:56:26Z")

</div>

Hey guys, This may be a bit of a basic question, I am more of a back-end guy. Currently I am trying to connect some java-script code to a front end element. The issue is that my window.onload (and document.onload, I tri…

---

## [How can I add custom hamburger menu](https://meta.discourse.org/t/how-can-i-add-custom-hamburger-menu/92282)

<div class="topic-metadata">

**Author:** [@bekircem](https://meta.discourse.org/u/bekircem)\
**Replies:** 7\
**Last updated:** [April 12, 2020, 7:33am UTC](https://meta.discourse.org/t/how-can-i-add-custom-hamburger-menu/92282 "2020-04-12T07:33:20Z")

</div>

Hi. I want to create new menu like Discourse’s hamburger menu and add some links to in it. What is the best way to do this? Thanks.

---

## [Customizing the Hamburger Menu](https://meta.discourse.org/t/customizing-the-hamburger-menu/147657)

<div class="topic-metadata">

**Author:** [@sunjam](https://meta.discourse.org/u/sunjam)\
**Replies:** 1\
**Last updated:** [April 12, 2020, 5:04am UTC](https://meta.discourse.org/t/customizing-the-hamburger-menu/147657 "2020-04-12T05:04:20Z")

</div>

Hi, I’m looking to customize our existing hamburger menu to be a little friendlier. ▶ Click for a picture of our hamburger menu as-is Thanks for showing me how to do this ^ @Benjamin\_D :wink: Goals are: Remove from men…

---

## [Issue with Jquery in plugin component](https://meta.discourse.org/t/issue-with-jquery-in-plugin-component/147086)

<div class="topic-metadata">

**Author:** [@Luke\_Clancy](https://meta.discourse.org/u/Luke_Clancy)\
**Replies:** 4\
**Last updated:** [April 10, 2020, 8:06pm UTC](https://meta.discourse.org/t/issue-with-jquery-in-plugin-component/147086 "2020-04-10T20:06:28Z")

</div>

Is jQuery automatically enabled for plugin components? Am I missing a setup step? I am having issues with simply accessing the html DOM through jquery (with the end goal of jquery’s autocomplete function). Here is an ex…

---

## [How to set the display order of registerConnectorClass and Lazyload image?](https://meta.discourse.org/t/how-to-set-the-display-order-of-registerconnectorclass-and-lazyload-image/147558)

<div class="topic-metadata">

**Author:** [@Bcat](https://meta.discourse.org/u/Bcat)\
**Replies:** 0\
**Last updated:** [April 10, 2020, 3:32pm UTC](https://meta.discourse.org/t/how-to-set-the-display-order-of-registerconnectorclass-and-lazyload-image/147558 "2020-04-10T15:32:12Z")

</div>

How to set the display order of registerConnectorClass and Lazyload image? Question: I inserted something into below-site-header (Call it A and B). But the B always precedes the A. How to arrange A to stand before B…

---

## [Different button for a new topic of each category?](https://meta.discourse.org/t/different-button-for-a-new-topic-of-each-category/147542)

<div class="topic-metadata">

**Author:** [@eextra](https://meta.discourse.org/u/eextra)\
**Replies:** 0\
**Last updated:** [April 10, 2020, 12:42pm UTC](https://meta.discourse.org/t/different-button-for-a-new-topic-of-each-category/147542 "2020-04-10T12:42:33Z")

</div>

Is it possible to use css to remove the new topic button and instead create another separate button, for example with a external link for different catagories?

---

## [Multi\_json and used backend](https://meta.discourse.org/t/multi-json-and-used-backend/144961)

<div class="topic-metadata">

**Author:** [@darix](https://meta.discourse.org/u/darix)\
**Replies:** 2\
**Last updated:** [April 10, 2020, 11:19am UTC](https://meta.discourse.org/t/multi-json-and-used-backend/144961 "2020-04-10T11:19:58Z")

</div>

In the light of CVE-2020-10663: Unsafe Object Creation Vulnerability in JSON (Additional fix) | Ruby, which backend are you using? If it is the json gem, shouldnt the gemfile maybe force 2.3.0 instead of the ruby stdlib …

---

## [Get user "suspension" status via API](https://meta.discourse.org/t/get-user-suspension-status-via-api/147433)

<div class="topic-metadata">

**Author:** [@pnoeric](https://meta.discourse.org/u/pnoeric)\
**Replies:** 3\
**Last updated:** [April 10, 2020, 7:30am UTC](https://meta.discourse.org/t/get-user-suspension-status-via-api/147433 "2020-04-10T07:30:28Z")

</div>

Is there any way to get a user’s “suspended” status via the API? I can’t find anything in the docs, I don’t see a specific XHR request that grabs this :wink: and I don’t see that field the user record when I just get the…

---

## [Can I update the user field automatically via API or otherwise?](https://meta.discourse.org/t/can-i-update-the-user-field-automatically-via-api-or-otherwise/147043)

<div class="topic-metadata">

**Author:** [@eextra](https://meta.discourse.org/u/eextra)\
**Replies:** 3\
**Last updated:** [April 7, 2020, 6:44pm UTC](https://meta.discourse.org/t/can-i-update-the-user-field-automatically-via-api-or-otherwise/147043 "2020-04-07T18:44:09Z")

</div>

case: I’d like to change some users’ information in the user’s fields once every 1-2 week. What’s the easiest way to do that? Post request ?

---

## [Updating the Mobile Homepage](https://meta.discourse.org/t/updating-the-mobile-homepage/147041)

<div class="topic-metadata">

**Author:** [@DSchrute](https://meta.discourse.org/u/DSchrute)\
**Replies:** 3\
**Last updated:** [April 7, 2020, 3:39pm UTC](https://meta.discourse.org/t/updating-the-mobile-homepage/147041 "2020-04-07T15:39:41Z")

</div>

Hello again! I have configured my desktop’s landing page to return categories and sub categories in one column and the latest topics in another column but the mobile landing page returns a latest topic and subcategories …

---

## [How to create new topic by API](https://meta.discourse.org/t/how-to-create-new-topic-by-api/146849)

<div class="topic-metadata">

**Author:** [@Zhang\_Frank](https://meta.discourse.org/u/Zhang_Frank)\
**Replies:** 4\
**Last updated:** [April 6, 2020, 5:30pm UTC](https://meta.discourse.org/t/how-to-create-new-topic-by-api/146849 "2020-04-06T17:30:49Z")

</div>

I want to know how to create new topic by API . If there are some DEMO or samples . Should be very helpful . Thanks

---

## [Question: Auto-mentioning when a shared topic url is posted to another Discourse](https://meta.discourse.org/t/question-auto-mentioning-when-a-shared-topic-url-is-posted-to-another-discourse/146841)

<div class="topic-metadata">

**Author:** [@sunjam](https://meta.discourse.org/u/sunjam)\
**Replies:** 7\
**Last updated:** [April 5, 2020, 7:22am UTC](https://meta.discourse.org/t/question-auto-mentioning-when-a-shared-topic-url-is-posted-to-another-discourse/146841 "2020-04-05T07:22:29Z")

</div>

I’m wondering if there is a way, possibly in modifying the shared topic url, for a link to be auto-mentioned by my system account when mentioned on this meta forum or elsewhere. Currently, we simulate this behavior by c…

---

## [How do I create a page not a topic?](https://meta.discourse.org/t/how-do-i-create-a-page-not-a-topic/58932)

<div class="topic-metadata">

**Author:** [@kudouyuzi](https://meta.discourse.org/u/kudouyuzi)\
**Replies:** 7\
**Last updated:** [April 4, 2020, 5:34am UTC](https://meta.discourse.org/t/how-do-i-create-a-page-not-a-topic/58932 "2020-04-04T05:34:12Z")

</div>

How do I create a page not a topic?

---

## [Enable Like-Button for not logged-in visitors](https://meta.discourse.org/t/enable-like-button-for-not-logged-in-visitors/146623)

<div class="topic-metadata">

**Author:** [@UlrichGreve](https://meta.discourse.org/u/UlrichGreve)\
**Replies:** 16\
**Last updated:** [April 3, 2020, 6:27am UTC](https://meta.discourse.org/t/enable-like-button-for-not-logged-in-visitors/146623 "2020-04-03T06:27:41Z")

</div>

Would it be possible, to make Like-Button not to open Login-Form? It should work without log-in in my szenario…

---

## [Is there a difference between using CDN for files on s3 and holding files on the machine?](https://meta.discourse.org/t/is-there-a-difference-between-using-cdn-for-files-on-s3-and-holding-files-on-the-machine/146573)

<div class="topic-metadata">

**Author:** [@eextra](https://meta.discourse.org/u/eextra)\
**Replies:** 0\
**Last updated:** [April 2, 2020, 11:52am UTC](https://meta.discourse.org/t/is-there-a-difference-between-using-cdn-for-files-on-s3-and-holding-files-on-the-machine/146573 "2020-04-02T11:52:29Z")

</div>

If the files are hosted together on the server and not on the outside, does this have an impact (better or worse) on cdn (cloudfront) ? I want to move the files to S3 in order to set up CDN (separate) as well. Is it wor…

---

## [Determining if the authenticated API user has liked the post in the getTopic API response](https://meta.discourse.org/t/determining-if-the-authenticated-api-user-has-liked-the-post-in-the-gettopic-api-response/146566)

<div class="topic-metadata">

**Author:** [@benbowler](https://meta.discourse.org/u/benbowler)\
**Replies:** 3\
**Last updated:** [April 2, 2020, 11:41am UTC](https://meta.discourse.org/t/determining-if-the-authenticated-api-user-has-liked-the-post-in-the-gettopic-api-response/146566 "2020-04-02T11:41:29Z")

</div>

I’ve been working on a Wordpress commenting plugin for the last week and have had great success connecting to, creating posts and updating data via the Discourse API and my fork of the discourse-php-API plugin - Work thr…

---

## [Polls plugin causing 500 error on post save](https://meta.discourse.org/t/polls-plugin-causing-500-error-on-post-save/146248)

<div class="topic-metadata">

**Author:** [@benbowler](https://meta.discourse.org/u/benbowler)\
**Replies:** 3\
**Last updated:** [April 1, 2020, 5:08pm UTC](https://meta.discourse.org/t/polls-plugin-causing-500-error-on-post-save/146248 "2020-04-01T17:08:25Z")

</div>

On the latest version of Discourse on Docker I’m having the reverse of this issue: Polls disabled caused 500 error If polls are enabled replying to a topic shows a 500 error. Trace: NoMethodError in PostsController#cre…

---

## [How to set user's location string with Discourse API](https://meta.discourse.org/t/how-to-set-users-location-string-with-discourse-api/146301)

<div class="topic-metadata">

**Author:** [@pnoeric](https://meta.discourse.org/u/pnoeric)\
**Replies:** 2\
**Last updated:** [April 1, 2020, 3:27pm UTC](https://meta.discourse.org/t/how-to-set-users-location-string-with-discourse-api/146301 "2020-04-01T15:27:03Z")

</div>

It looks like there’s an endpoint to set a user’s info, including their location. However, I can’t figure out: How to pass the user ID instead of the username? When I post a new location to mydiscourse.com/u/my\_us…

---

## [Adding external JS lib globally to all Plugins and Theme (Components)](https://meta.discourse.org/t/adding-external-js-lib-globally-to-all-plugins-and-theme-components/144823)

<div class="topic-metadata">

**Author:** [@domr109](https://meta.discourse.org/u/domr109)\
**Replies:** 2\
**Last updated:** [April 1, 2020, 7:57am UTC](https://meta.discourse.org/t/adding-external-js-lib-globally-to-all-plugins-and-theme-components/144823 "2020-04-01T07:57:58Z")

</div>

Situation We want to add this external logging JS lib to our Discourse Instance to improve the debugging workflow by using this lightweight logging wrapper that allows us for example setting up a logLevel via log.setLev…

---

## [Unable to create new topic via API](https://meta.discourse.org/t/unable-to-create-new-topic-via-api/146319)

<div class="topic-metadata">

**Author:** [@xceph](https://meta.discourse.org/u/xceph)\
**Replies:** 0\
**Last updated:** [March 31, 2020, 5:44pm UTC](https://meta.discourse.org/t/unable-to-create-new-topic-via-api/146319 "2020-03-31T17:44:54Z")

</div>

I’ve created an API token using the API, my response after the auth redirect looks so like: { api = 4; key = bd0553a26566b6ace74869ad6042fc22; nonce = “5A3D2DD2-D6E3-4539-BDE1-3F114B9EC3A1”; push = 0; } I then try…

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

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