# Development

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

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

**Page:** 110

---

## [Any way to get user's last IP and IP when registered via API?](https://meta.discourse.org/t/any-way-to-get-users-last-ip-and-ip-when-registered-via-api/55146)

<div class="topic-metadata">

**Author:** [@maigaard](https://meta.discourse.org/u/maigaard)\
**Replies:** 1\
**Last updated:** [January 4, 2017, 12:34pm UTC](https://meta.discourse.org/t/any-way-to-get-users-last-ip-and-ip-when-registered-via-api/55146 "2017-01-04T12:34:11Z")

</div>

In an effort to create a nice visual of where on the planet our users are from, I wanted to extract the last IP address (and the IP address the user had when he first registered) for our users via API. However, in the /…

---

## [Adding support for stl models to github\_blob engine](https://meta.discourse.org/t/adding-support-for-stl-models-to-github-blob-engine/113808)

<div class="topic-metadata">

**Author:** [@Neotinker](https://meta.discourse.org/u/Neotinker)\
**Replies:** 8\
**Last updated:** [April 16, 2019, 2:44pm UTC](https://meta.discourse.org/t/adding-support-for-stl-models-to-github-blob-engine/113808 "2019-04-16T14:44:57Z")

</div>

I’ve modified the onebox github\_blob engine to display the stl model file using github’s render url. https://github.com/discourse/onebox/pull/401 This is my first attempt at modifying onebox. Feedback is welcome. I’m …

---

## [Unable to use \<script\> with plugin outlets](https://meta.discourse.org/t/unable-to-use-script-with-plugin-outlets/113637)

<div class="topic-metadata">

**Author:** [@barreeeiroo](https://meta.discourse.org/u/barreeeiroo)\
**Replies:** 5\
**Last updated:** [April 15, 2019, 3:56pm UTC](https://meta.discourse.org/t/unable-to-use-script-with-plugin-outlets/113637 "2019-04-15T15:56:29Z")

</div>

I am trying to make a theme component to display Carbon Ads in my Discourse forum Carbon Ads are called by inserting the following code where they should be loaded: \<script src="//cdn.carbonads.com/carbon.js?serve=CK7D…

---

## [I would like to change the template completely](https://meta.discourse.org/t/i-would-like-to-change-the-template-completely/115096)

<div class="topic-metadata">

**Author:** [@shaco](https://meta.discourse.org/u/shaco)\
**Replies:** 1\
**Last updated:** [April 15, 2019, 1:09pm UTC](https://meta.discourse.org/t/i-would-like-to-change-the-template-completely/115096 "2019-04-15T13:09:47Z")

</div>

I would like to change the template completely. Where can I edit it? How do I access these files? Which ones are they? I mean the default template I don’t want to edit it from the admin panel because I can only add ad…

---

## [Can't find the Discourse folder inside virtual box via ssh](https://meta.discourse.org/t/cant-find-the-discourse-folder-inside-virtual-box-via-ssh/54810)

<div class="topic-metadata">

**Author:** [@Sudaraka](https://meta.discourse.org/u/Sudaraka)\
**Replies:** 4\
**Last updated:** [December 28, 2016, 6:02am UTC](https://meta.discourse.org/t/cant-find-the-discourse-folder-inside-virtual-box-via-ssh/54810 "2016-12-28T06:02:00Z")

</div>

Hi, I’m new to discourse and i am excited to contribute to the project as a developer. I did everything according the the following blog article , But i cant find Discourse folder inside the virtual machine . i tried …

---

## [Disable rich data (dates)](https://meta.discourse.org/t/disable-rich-data-dates/114848)

<div class="topic-metadata">

**Author:** [@goingoutofbusiness](https://meta.discourse.org/u/goingoutofbusiness)\
**Replies:** 1\
**Last updated:** [April 12, 2019, 11:34am UTC](https://meta.discourse.org/t/disable-rich-data-dates/114848 "2019-04-12T11:34:12Z")

</div>

Hi, Question: for a forum that was recently moved from BBPress to Discourse we would like to disable the rich data (especially on dates). The forum is pretty old, and a lot of posts are pretty old .. but the information…

---

## [Plugin route-map loaded even when it’s disabled](https://meta.discourse.org/t/plugin-route-map-loaded-even-when-it-s-disabled/114725)

<div class="topic-metadata">

**Author:** [@kleinfreund](https://meta.discourse.org/u/kleinfreund)\
**Replies:** 1\
**Last updated:** [April 11, 2019, 7:30am UTC](https://meta.discourse.org/t/plugin-route-map-loaded-even-when-it-s-disabled/114725 "2019-04-11T07:30:13Z")

</div>

I noticed that a plugin’s client-side routes are loaded even if the plugin is disabled. Is this to be expected? One still has access to the site settings via this.site.siteSettings and can load routes dynamically like t…

---

## [Validation failed: Primary email is not allowed](https://meta.discourse.org/t/validation-failed-primary-email-is-not-allowed/113958)

<div class="topic-metadata">

**Author:** [@pankajsharma](https://meta.discourse.org/u/pankajsharma)\
**Replies:** 0\
**Last updated:** [April 10, 2019, 12:05pm UTC](https://meta.discourse.org/t/validation-failed-primary-email-is-not-allowed/113958 "2019-04-10T12:05:27Z")

</div>

Hi, using this method to update users email ID. Getting this error in integration. Do you have any idea? any suggestion?

---

## [Discourse API developers docker-compose basic image](https://meta.discourse.org/t/discourse-api-developers-docker-compose-basic-image/113886)

<div class="topic-metadata">

**Author:** [@alank](https://meta.discourse.org/u/alank)\
**Replies:** 3\
**Last updated:** [April 9, 2019, 8:55pm UTC](https://meta.discourse.org/t/discourse-api-developers-docker-compose-basic-image/113886 "2019-04-09T20:55:47Z")

</div>

Hey guys, I’ve been working on getting a basic Discourse setup for simply doing API development to Discourse API, I’m sure others would need it when developing SSO (Single Sign On) or Discourse API based calls. So I’m wa…

---

## [Poor Notifications API documentation](https://meta.discourse.org/t/poor-notifications-api-documentation/113698)

<div class="topic-metadata">

**Author:** [@objc](https://meta.discourse.org/u/objc)\
**Replies:** 4\
**Last updated:** [April 8, 2019, 4:54am UTC](https://meta.discourse.org/t/poor-notifications-api-documentation/113698 "2019-04-08T04:54:44Z")

</div>

I’m trying to write an API wrapper for the Swift Forums, which is a Discourse instance. I’m looking at the Discourse API documentation, and it only lists one endpoint under Notifications. For one, why doesn’t it have an…

---

## [/posts.json API endpoint doesn't list more than 4 posts](https://meta.discourse.org/t/posts-json-api-endpoint-doesnt-list-more-than-4-posts/113504)

<div class="topic-metadata">

**Author:** [@mikecreighton](https://meta.discourse.org/u/mikecreighton)\
**Replies:** 4\
**Last updated:** [April 7, 2019, 6:05pm UTC](https://meta.discourse.org/t/posts-json-api-endpoint-doesnt-list-more-than-4-posts/113504 "2019-04-07T18:05:26Z")

</div>

I think this is a recent bug that popped up. My client uses the Discourse as a service hosted by the lovely Discourse folks. We use the /posts.json API endpoint to list the 5 most recent posts from the forum on the websi…

---

## [Keyboard on webview goes over Reply](https://meta.discourse.org/t/keyboard-on-webview-goes-over-reply/113620)

<div class="topic-metadata">

**Author:** [@Hanzo1](https://meta.discourse.org/u/Hanzo1)\
**Replies:** 11\
**Last updated:** [April 7, 2019, 9:49am UTC](https://meta.discourse.org/t/keyboard-on-webview-goes-over-reply/113620 "2019-04-07T09:49:17Z")

</div>

This is the only other remotely relevant thread I’ve found: https://meta.discourse.org/t/mobile-landscape-keyboard-hiding-input-text/98809/2 Perhaps it is easier to explain and then attach pics. Basically, I am wanting…

---

## [Android webview automatic login](https://meta.discourse.org/t/android-webview-automatic-login/57323)

<div class="topic-metadata">

**Author:** [@furszy](https://meta.discourse.org/u/furszy)\
**Replies:** 3\
**Last updated:** [April 6, 2019, 10:08pm UTC](https://meta.discourse.org/t/android-webview-automatic-login/57323 "2019-04-06T22:08:24Z")

</div>

Hi, i’m using my java api to make topics, posts, get post and so on, and now i integrate a webview to go to the forum. so i have the username and password of the person and i need to login on the webview automatic. Do …

---

## [Mark notifications as read from Discourse API](https://meta.discourse.org/t/mark-notifications-as-read-from-discourse-api/113420)

<div class="topic-metadata">

**Author:** [@duranmla](https://meta.discourse.org/u/duranmla)\
**Replies:** 4\
**Last updated:** [April 6, 2019, 5:36pm UTC](https://meta.discourse.org/t/mark-notifications-as-read-from-discourse-api/113420 "2019-04-06T17:36:43Z")

</div>

Hi all, I am working in a project that has discourse integrated with several apps, by now, I need to be able to allow one of those external apps to mark notifications from discourse as read but of course, consuming the …

---

## [Cannot trigger new AdminUser action in plugin](https://meta.discourse.org/t/cannot-trigger-new-adminuser-action-in-plugin/113603)

<div class="topic-metadata">

**Author:** [@Dannii](https://meta.discourse.org/u/Dannii)\
**Replies:** 0\
**Last updated:** [April 6, 2019, 3:07am UTC](https://meta.discourse.org/t/cannot-trigger-new-adminuser-action-in-plugin/113603 "2019-04-06T03:07:21Z")

</div>

I’m working on my first plugin, and am having trouble triggering an action. I have this template in the after-user-details connector: I then have this initialize script: So the template uses action=(action "mergeIn…

---

## [Load a SCSS image in \<img\> tag](https://meta.discourse.org/t/load-a-scss-image-in-img-tag/113519)

<div class="topic-metadata">

**Author:** [@epalley](https://meta.discourse.org/u/epalley)\
**Replies:** 1\
**Last updated:** [April 5, 2019, 4:44pm UTC](https://meta.discourse.org/t/load-a-scss-image-in-img-tag/113519 "2019-04-05T16:44:40Z")

</div>

Hello folks, I’m creating a theme for my community those few days, and I have a little problem. I would like to put a banner on the top of my Discourse. And my problem occurs when I want to put an already uploaded imag…

---

## [Choose the user PUID and PGID inside the container](https://meta.discourse.org/t/choose-the-user-puid-and-pgid-inside-the-container/113309)

<div class="topic-metadata">

**Author:** [@vitorl](https://meta.discourse.org/u/vitorl)\
**Replies:** 4\
**Last updated:** [April 5, 2019, 11:48am UTC](https://meta.discourse.org/t/choose-the-user-puid-and-pgid-inside-the-container/113309 "2019-04-05T11:48:20Z")

</div>

Why isn’t there a way to choose the user PUID and PGID to avoid permission issues? Also discourse is a public facing software, with user uploaded content so are stuff running as root by default? There are many ways to …

---

## [How to make auto-lock time more specific?](https://meta.discourse.org/t/how-to-make-auto-lock-time-more-specific/113435)

<div class="topic-metadata">

**Author:** [@Ellibereth](https://meta.discourse.org/u/Ellibereth)\
**Replies:** 5\
**Last updated:** [April 5, 2019, 8:27am UTC](https://meta.discourse.org/t/how-to-make-auto-lock-time-more-specific/113435 "2019-04-05T08:27:57Z")

</div>

Is there a way to make the times in the text that appears for auto-locking more detailed? Right now it’ll say something like this: How could I go about making it say days + hours when \> 24 hours and hours + minutes o…

---

## [Issues with adding menu panels](https://meta.discourse.org/t/issues-with-adding-menu-panels/113499)

<div class="topic-metadata">

**Author:** [@angus](https://meta.discourse.org/u/angus)\
**Replies:** 1\
**Last updated:** [April 5, 2019, 5:52am UTC](https://meta.discourse.org/t/issues-with-adding-menu-panels/113499 "2019-04-05T05:52:23Z")

</div>

Since the addition of the Full Height Swipable Menus, getting a custom menu panel to work properly has become a bit tricky, particularly on mobile. The addHeaderPanel api method still adds the menu in the correct place …

---

## [Hide Brand Header completely on mobiles](https://meta.discourse.org/t/hide-brand-header-completely-on-mobiles/312639)

<div class="topic-metadata">

**Author:** [@SMx](https://meta.discourse.org/u/SMx)\
**Replies:** 2\
**Last updated:** [April 4, 2019, 4:50pm UTC](https://meta.discourse.org/t/hide-brand-header-completely-on-mobiles/312639 "2019-04-04T16:50:37Z")

</div>

Hi there, an awesome component which makes a corporate forum so much better. One question, can this be hidden completely on mobile browsers from css? The double burger menus seems confusing for some users. Thank you.

---

## [Replicating the page load/transition in the Graceful theme](https://meta.discourse.org/t/replicating-the-page-load-transition-in-the-graceful-theme/314571)

<div class="topic-metadata">

**Author:** [@agemo](https://meta.discourse.org/u/agemo)\
**Replies:** 2\
**Last updated:** [April 2, 2019, 6:15pm UTC](https://meta.discourse.org/t/replicating-the-page-load-transition-in-the-graceful-theme/314571 "2019-04-02T18:15:27Z")

</div>

This is a very inspiring theme. I like it a lot. Many elements are highly adaptable within other themes. One thing I’m trying to replicate, is how the page load/transition has been handled. I need to remove the white f…

---

## [Missing /shared folder inside my container](https://meta.discourse.org/t/missing-shared-folder-inside-my-container/112841)

<div class="topic-metadata">

**Author:** [@Muthukkumar](https://meta.discourse.org/u/Muthukkumar)\
**Replies:** 4\
**Last updated:** [April 2, 2019, 1:11pm UTC](https://meta.discourse.org/t/missing-shared-folder-inside-my-container/112841 "2019-04-02T13:11:14Z")

</div>

Hi Team, I need one information, I have created new image with working discourse image, and deployed into other server. But when I entered into the container there is no /shared folder available inside the container bec…

---

## [Use Dependabot for dependency updates?](https://meta.discourse.org/t/use-dependabot-for-dependency-updates/98823)

<div class="topic-metadata">

**Author:** [@greysteil](https://meta.discourse.org/u/greysteil)\
**Replies:** 4\
**Last updated:** [November 2, 2018, 8:22am UTC](https://meta.discourse.org/t/use-dependabot-for-dependency-updates/98823 "2018-11-02T08:22:57Z")

</div>

First of all, thanks for Discourse and thanks for making it open source :heart:. I’ve got a suggestion / request: would you be up for using Dependabot to automatically create dependency update PRs? I built it and would …

---

## [Active user after changing email](https://meta.discourse.org/t/active-user-after-changing-email/65719)

<div class="topic-metadata">

**Author:** [@gautampatadiya](https://meta.discourse.org/u/gautampatadiya)\
**Replies:** 1\
**Last updated:** [March 29, 2019, 8:51pm UTC](https://meta.discourse.org/t/active-user-after-changing-email/65719 "2019-03-29T20:51:28Z")

</div>

Hi there, I am using discourse API to change email of the user with master API key. API address something like : /users/:username/preferences/email.json In parameters I am passing new-email, api\_key, and api\_username.…

---

## [Adding Dynamic Routes in a Plugin](https://meta.discourse.org/t/adding-dynamic-routes-in-a-plugin/93200)

<div class="topic-metadata">

**Author:** [@tjaco](https://meta.discourse.org/u/tjaco)\
**Replies:** 3\
**Last updated:** [July 26, 2018, 1:06pm UTC](https://meta.discourse.org/t/adding-dynamic-routes-in-a-plugin/93200 "2018-07-26T13:06:43Z")

</div>

Hi Everyone, to start of, I am pretty new at Ember and Discourse so excuse anything I ask that should be self explanatory… :slight\_smile: I am creating a plugin for a client and need to define some dynamic routes. I ha…

---

## [No unique index on site\_settings name column](https://meta.discourse.org/t/no-unique-index-on-site-settings-name-column/112047)

<div class="topic-metadata">

**Author:** [@LeoMcA](https://meta.discourse.org/u/LeoMcA)\
**Replies:** 3\
**Last updated:** [March 25, 2019, 4:33pm UTC](https://meta.discourse.org/t/no-unique-index-on-site-settings-name-column/112047 "2019-03-25T16:33:02Z")

</div>

When updating today, this migration failed: PG::CardinalityViolation: ERROR: more than one row returned by a subquery used as an expression : INSERT INTO site\_settings(name, data\_type, value, created\_at, updated\_at) SE…

---

## [System File Override](https://meta.discourse.org/t/system-file-override/112513)

<div class="topic-metadata">

**Author:** [@Yauheni33](https://meta.discourse.org/u/Yauheni33)\
**Replies:** 1\
**Last updated:** [March 25, 2019, 4:28pm UTC](https://meta.discourse.org/t/system-file-override/112513 "2019-03-25T16:28:11Z")

</div>

Hello. Climbed the entire forum, but did not find the answer to your question. Essence: I am writing a plugin on the Ruby, I need to override the file from the root Discourse app/ controllers/search.rb, how is all this …

---

## [Mousetrap.js doesn’t properly stop callbacks for events originating from a shadow DOM](https://meta.discourse.org/t/mousetrap-js-doesn-t-properly-stop-callbacks-for-events-originating-from-a-shadow-dom/102757)

<div class="topic-metadata">

**Author:** [@kleinfreund](https://meta.discourse.org/u/kleinfreund)\
**Replies:** 8\
**Last updated:** [March 25, 2019, 2:13pm UTC](https://meta.discourse.org/t/mousetrap-js-doesn-t-properly-stop-callbacks-for-events-originating-from-a-shadow-dom/102757 "2019-03-25T14:13:47Z")

</div>

I’m experimenting with shadow DOM in a Discourse plugin I’m writing and noticed that mousetrap.js is not stopping callbacks for events that originate in the shadow DOM. For example, pressing u in an input element trigger…

---

## [Multiple instances. Visiting the second instance signs out the logged in account on the running instance](https://meta.discourse.org/t/multiple-instances-visiting-the-second-instance-signs-out-the-logged-in-account-on-the-running-instance/112393)

<div class="topic-metadata">

**Author:** [@Young\_Nam](https://meta.discourse.org/u/Young_Nam)\
**Replies:** 6\
**Last updated:** [March 25, 2019, 7:11am UTC](https://meta.discourse.org/t/multiple-instances-visiting-the-second-instance-signs-out-the-logged-in-account-on-the-running-instance/112393 "2019-03-25T07:11:33Z")

</div>

EDIT after resolved: This happened when I open the second Discourse instance, not when I start the server. I have two Discourse directories. I followed the following guide to install it.: So, the first one, say, cd…

---

## [Hide '+ New Topic' button from home screen](https://meta.discourse.org/t/hide-new-topic-button-from-home-screen/52359)

<div class="topic-metadata">

**Author:** [@irshad\_discource](https://meta.discourse.org/u/irshad_discource)\
**Replies:** 5\
**Last updated:** [November 2, 2016, 1:15pm UTC](https://meta.discourse.org/t/hide-new-topic-button-from-home-screen/52359 "2016-11-02T13:15:24Z")

</div>

How can I hide the ‘+ New Topic’ button hide from home screen only as it is already there in category pages. Please help me with css/html so that I can put in customize admin section.

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

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