# Development

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

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

**Page:** 146

---

## [Is there any way to increase max characters?](https://meta.discourse.org/t/is-there-any-way-to-increase-max-characters/41567)

<div class="topic-metadata">

**Author:** [@Ankhamax](https://meta.discourse.org/u/Ankhamax)\
**Replies:** 1\
**Last updated:** [March 25, 2016, 3:58pm UTC](https://meta.discourse.org/t/is-there-any-way-to-increase-max-characters/41567 "2016-03-25T15:58:34Z")

</div>

The maximum characters for the topic appears to be set at 16,000 characters. Is there any way that we can increase it 80,000 characters?

---

## [Customising the preferences page](https://meta.discourse.org/t/customising-the-preferences-page/41503)

<div class="topic-metadata">

**Author:** [@Stelmsind](https://meta.discourse.org/u/Stelmsind)\
**Replies:** 4\
**Last updated:** [March 24, 2016, 8:54am UTC](https://meta.discourse.org/t/customising-the-preferences-page/41503 "2016-03-24T08:54:21Z")

</div>

Hi, I’m trying to apply some additional customisation to the preferences page, but I’m having some difficultly. I’ve created this in the ‘’ template section: \<script type='text/x-handlebars' data-template-name='user/pr…

---

## [Updating Discourse Plugins, taking the first step](https://meta.discourse.org/t/updating-discourse-plugins-taking-the-first-step/41241)

<div class="topic-metadata">

**Author:** [@stevenpslade](https://meta.discourse.org/u/stevenpslade)\
**Replies:** 12\
**Last updated:** [March 22, 2016, 9:32pm UTC](https://meta.discourse.org/t/updating-discourse-plugins-taking-the-first-step/41241 "2016-03-22T21:32:28Z")

</div>

I have to fully read the new plugin api format but my first problem actually has to do with this error: The discourse/components/post-menu object has been removed from Discourse and your plugin needs to be updated. Pos…

---

## [Cannot view 0.0.0.0:3000 in browser, and localhost:4000 gives error](https://meta.discourse.org/t/cannot-view-0-0-0-0-3000-in-browser-and-localhost-4000-gives-error/41357)

<div class="topic-metadata">

**Author:** [@GaurangTandon](https://meta.discourse.org/u/GaurangTandon)\
**Replies:** 7\
**Last updated:** [March 22, 2016, 4:47am UTC](https://meta.discourse.org/t/cannot-view-0-0-0-0-3000-in-browser-and-localhost-4000-gives-error/41357 "2016-03-22T04:47:57Z")

</div>

This is my cmd log: intl@intl-PC /f/discourse (master) $ vagrant ssh VM must be running to open SSH connection. Run \`vagrant up\` to start the virtual machine. intl@intl-PC /f/discourse (master) $ vagrant up Bringing …

---

## [Cloaked-collection not present?](https://meta.discourse.org/t/cloaked-collection-not-present/41394)

<div class="topic-metadata">

**Author:** [@stevenpslade](https://meta.discourse.org/u/stevenpslade)\
**Replies:** 2\
**Last updated:** [March 21, 2016, 11:55pm UTC](https://meta.discourse.org/t/cloaked-collection-not-present/41394 "2016-03-21T23:55:02Z")

</div>

I’m currently working to fix some bugs in my plugins as I have just upgraded to the test-passed version of Discourse. I am currently getting this error which prevent topic threads from loading: Uncaught Error: Assertion…

---

## [Online User API?](https://meta.discourse.org/t/online-user-api/41324)

<div class="topic-metadata">

**Author:** [@Socratic\_Phoenix](https://meta.discourse.org/u/Socratic_Phoenix)\
**Replies:** 2\
**Last updated:** [March 20, 2016, 4:02pm UTC](https://meta.discourse.org/t/online-user-api/41324 "2016-03-20T16:02:27Z")

</div>

So I was looking at the api documentation, and was wondering if there was a way for normal users (non-administrative), to contact the api and make postings or reply. Reason being, I wanted to create a bot that auto-posts…

---

## [\`vagrant up\` not from command line?](https://meta.discourse.org/t/vagrant-up-not-from-command-line/41262)

<div class="topic-metadata">

**Author:** [@GaurangTandon](https://meta.discourse.org/u/GaurangTandon)\
**Replies:** 11\
**Last updated:** [March 19, 2016, 3:48pm UTC](https://meta.discourse.org/t/vagrant-up-not-from-command-line/41262 "2016-03-19T15:48:36Z")

</div>

So, I have to download, as per official discourse development guide, vagrant software and then, run vagrant up in the git shell opened from the github desktop client for dicourse’s master branch. My question is I get som…

---

## [Feasible to move autosize library to 'discourse/lib'?](https://meta.discourse.org/t/feasible-to-move-autosize-library-to-discourse-lib/41265)

<div class="topic-metadata">

**Author:** [@angus](https://meta.discourse.org/u/angus)\
**Replies:** 1\
**Last updated:** [March 18, 2016, 3:39pm UTC](https://meta.discourse.org/t/feasible-to-move-autosize-library-to-discourse-lib/41265 "2016-03-18T15:39:23Z")

</div>

@eviltrout Would it be feasible to move the useful autosize library you wrote from admin/lib to discourse/lib? I’ve come across it working on Quick Messages and would prefer to use a working existing solution in the proj…

---

## [Login - Can't verify CSRF token authenticity](https://meta.discourse.org/t/login-cant-verify-csrf-token-authenticity/41181)

<div class="topic-metadata">

**Author:** [@Steve\_Ng](https://meta.discourse.org/u/Steve_Ng)\
**Replies:** 1\
**Last updated:** [March 18, 2016, 1:32am UTC](https://meta.discourse.org/t/login-cant-verify-csrf-token-authenticity/41181 "2016-03-18T01:32:44Z")

</div>

Hi, when I am logging in, sometimes I get this error. It would result in me unable to login at all. Any idea how does this error come from? This result in the inability to even login to discourse. I, \[2016-03-17T17:05:…

---

## [The Discourse API in GraphQL](https://meta.discourse.org/t/the-discourse-api-in-graphql/41183)

<div class="topic-metadata">

**Author:** [@Sander78](https://meta.discourse.org/u/Sander78)\
**Replies:** 11\
**Last updated:** [March 17, 2016, 8:07pm UTC](https://meta.discourse.org/t/the-discourse-api-in-graphql/41183 "2016-03-17T20:07:35Z")

</div>

@sashko (Meteor developer) wrote a post om Medium about GraphQL, using Discourse as example. https://medium.com/apollo-stack/discourse-in-graphql-part-1-ee1ffd8a22df#.lqgw2pfeb

---

## [PluginStore might not always be preferred](https://meta.discourse.org/t/pluginstore-might-not-always-be-preferred/39480)

<div class="topic-metadata">

**Author:** [@piratdavid](https://meta.discourse.org/u/piratdavid)\
**Replies:** 3\
**Last updated:** [March 16, 2016, 7:24am UTC](https://meta.discourse.org/t/pluginstore-might-not-always-be-preferred/39480 "2016-03-16T07:24:10Z")

</div>

Continuing the discussion from Adding model and table with plugin: Is the idea that when someone uninstalls the plugin the plugins saved data should also be deleted? If that is the idea this is not the wanted behaviour…

---

## [Updating the smartphone user-agent of Googlebot](https://meta.discourse.org/t/updating-the-smartphone-user-agent-of-googlebot/41112)

<div class="topic-metadata">

**Author:** [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)\
**Replies:** 2\
**Last updated:** [March 15, 2016, 11:02pm UTC](https://meta.discourse.org/t/updating-the-smartphone-user-agent-of-googlebot/41112 "2016-03-15T23:02:08Z")

</div>

Next month Google will be updating the smartphone user-agent of Googlebot: https://webmasters.googleblog.com/2016/03/updating-smartphone-user-agent-of.html Reviewing the code-base it doesn’t look like it’s going to mak…

---

## [Temporary avatar/titles](https://meta.discourse.org/t/temporary-avatar-titles/40944)

<div class="topic-metadata">

**Author:** [@featheredtoast](https://meta.discourse.org/u/featheredtoast)\
**Replies:** 3\
**Last updated:** [March 12, 2016, 6:13pm UTC](https://meta.discourse.org/t/temporary-avatar-titles/40944 "2016-03-12T18:13:50Z")

</div>

EDIT: See @cpradio’s post below for the implementation. It might be nice to have the ability to set a temporary avatar or title. With April fools nearly upon us, I’m wanting for a way to decorate each member’s avatar fo…

---

## [Putting a discourse development server behind proxy seems to mess up some (but not most) URLs](https://meta.discourse.org/t/putting-a-discourse-development-server-behind-proxy-seems-to-mess-up-some-but-not-most-urls/40829)

<div class="topic-metadata">

**Author:** [@ryantm](https://meta.discourse.org/u/ryantm)\
**Replies:** 17\
**Last updated:** [March 11, 2016, 11:51pm UTC](https://meta.discourse.org/t/putting-a-discourse-development-server-behind-proxy-seems-to-mess-up-some-but-not-most-urls/40829 "2016-03-11T23:51:14Z")

</div>

I’m running nginx in front of Discourse with upstream discourse { server localhost:3000; } server { listen 80 default\_server; location / { proxy\_set\_header Host $http\_host; proxy\_set\_header X-Real-IP $re…

---

## [Changing discourse route](https://meta.discourse.org/t/changing-discourse-route/40844)

<div class="topic-metadata">

**Author:** [@Steve\_Ng](https://meta.discourse.org/u/Steve_Ng)\
**Replies:** 5\
**Last updated:** [March 11, 2016, 9:37pm UTC](https://meta.discourse.org/t/changing-discourse-route/40844 "2016-03-11T21:37:37Z")

</div>

Hi, By default /latest goes to the latest discussion forum. Is there any chance that I could set /discussions and it goes to /latest route too? Regards, Steve

---

## [Post.where() causing 500 error](https://meta.discourse.org/t/post-where-causing-500-error/40896)

<div class="topic-metadata">

**Author:** [@Andrew\_Byrne](https://meta.discourse.org/u/Andrew_Byrne)\
**Replies:** 7\
**Last updated:** [March 11, 2016, 2:33pm UTC](https://meta.discourse.org/t/post-where-causing-500-error/40896 "2016-03-11T14:33:42Z")

</div>

Noooob question (2 days ruby experience :wink: I have a plugin almost doing what I want but have a hang up here: posts = Post.where('user\_id = ? and post\_number = ?', params\["uid"\], params\["tid"\]) .order(creat…

---

## [Extending nested resource routes](https://meta.discourse.org/t/extending-nested-resource-routes/40704)

<div class="topic-metadata">

**Author:** [@joebuhlig](https://meta.discourse.org/u/joebuhlig)\
**Replies:** 1\
**Last updated:** [March 10, 2016, 5:33pm UTC](https://meta.discourse.org/t/extending-nested-resource-routes/40704 "2016-03-10T17:33:15Z")

</div>

I’m trying to learn Ember as I build for Discourse so forgive me if this is simple. I’m attempting to add a route underneath the userActivity resource. If I understand correctly, I should be able to do something along th…

---

## [Error after running Discourse development environment using Vagrant](https://meta.discourse.org/t/error-after-running-discourse-development-environment-using-vagrant/40607)

<div class="topic-metadata">

**Author:** [@a-magdy](https://meta.discourse.org/u/a-magdy)\
**Replies:** 5\
**Last updated:** [March 8, 2016, 7:15pm UTC](https://meta.discourse.org/t/error-after-running-discourse-development-environment-using-vagrant/40607 "2016-03-08T19:15:32Z")

</div>

I followed the tutorial here: https://github.com/discourse/discourse/blob/master/docs/VAGRANT.md#using-vagrant and it was straight forward, but after the dev machine is up, the app crashed and the attached error is show…

---

## [What's the best approach to access category specific settings?](https://meta.discourse.org/t/whats-the-best-approach-to-access-category-specific-settings/40728)

<div class="topic-metadata">

**Author:** [@fantasticfears](https://meta.discourse.org/u/fantasticfears)\
**Replies:** 2\
**Last updated:** [March 8, 2016, 10:45am UTC](https://meta.discourse.org/t/whats-the-best-approach-to-access-category-specific-settings/40728 "2016-03-08T10:45:55Z")

</div>

I am developing a paid plugin (don’t know whether it’s ok to public) where I need to set a category specific setting. Therefore, I compare several possible ways and proposal my suggestion. With existing convenient custo…

---

## [Discovering mention in the plugins](https://meta.discourse.org/t/discovering-mention-in-the-plugins/40659)

<div class="topic-metadata">

**Author:** [@mkucharz](https://meta.discourse.org/u/mkucharz)\
**Replies:** 2\
**Last updated:** [March 8, 2016, 10:30am UTC](https://meta.discourse.org/t/discovering-mention-in-the-plugins/40659 "2016-03-08T10:30:53Z")

</div>

I’m working on tight integration between Slack and Discourse. For now I want to extend slack notification plugin with functionality of sending special notification after mention. Can someone suggest me the right way of g…

---

## [Overwriting controllers in plugin](https://meta.discourse.org/t/overwriting-controllers-in-plugin/40675)

<div class="topic-metadata">

**Author:** [@Steve\_Ng](https://meta.discourse.org/u/Steve_Ng)\
**Replies:** 2\
**Last updated:** [March 7, 2016, 3:36pm UTC](https://meta.discourse.org/t/overwriting-controllers-in-plugin/40675 "2016-03-07T15:36:39Z")

</div>

Hi, I wanted to add additionally functionality through a plugin. I added a topic controller at plugins/xx/assets/javascripts/discourse/controllers/topic.js.es6 and I have import TopicController from 'discourse/control…

---

## [What exactly does "client.sync\_sso" do? (Discourse Ruby API)](https://meta.discourse.org/t/what-exactly-does-client-sync-sso-do-discourse-ruby-api/40612)

<div class="topic-metadata">

**Author:** [@chris\_beck](https://meta.discourse.org/u/chris_beck)\
**Replies:** 1\
**Last updated:** [March 6, 2016, 6:20am UTC](https://meta.discourse.org/t/what-exactly-does-client-sync-sso-do-discourse-ruby-api/40612 "2016-03-06T06:20:34Z")

</div>

Does it perform some sort of db query? Does it only search among currently logged in users? When I pass a table to “sync”, can that change the logged-in status or DB status? Or is it only “fill in this query with data…

---

## [Badge Creator Python Script](https://meta.discourse.org/t/badge-creator-python-script/40461)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 0\
**Last updated:** [March 2, 2016, 8:48pm UTC](https://meta.discourse.org/t/badge-creator-python-script/40461 "2016-03-02T20:48:15Z")

</div>

Continuing the discussion from What cool badge queries have you come up with?: Here is a little Python script that creates sets of bronze, silver, gold badges when Bronze: post in a certain topic with a particular ta…

---

## [Seeking a better way to organize plugin site settings](https://meta.discourse.org/t/seeking-a-better-way-to-organize-plugin-site-settings/39934)

<div class="topic-metadata">

**Author:** [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Replies:** 1\
**Last updated:** [February 26, 2016, 8:22pm UTC](https://meta.discourse.org/t/seeking-a-better-way-to-organize-plugin-site-settings/39934 "2016-02-26T20:22:14Z")

</div>

I am in the process of updating my “plugin outlet locations” plugin. AFAIK there are currently 42 plugin outlets. I could have only one setting that enables / disables them as a whole, but I would prefer to offer more …

---

## [How to add an Ember js helper?](https://meta.discourse.org/t/how-to-add-an-ember-js-helper/40214)

<div class="topic-metadata">

**Author:** [@pdx](https://meta.discourse.org/u/pdx)\
**Replies:** 1\
**Last updated:** [February 26, 2016, 5:30pm UTC](https://meta.discourse.org/t/how-to-add-an-ember-js-helper/40214 "2016-02-26T17:30:52Z")

</div>

I’m trying to add an emberjs helper to an existing plugin (discourse-tagging). According to the ember docs, you should place a helper in app/helpers, and name it helper-name.js. It can then be used like this: {{ helper…

---

## [App/models/topic\_tracking\_state - \`report\` - long response times?](https://meta.discourse.org/t/app-models-topic-tracking-state-report-long-response-times/40052)

<div class="topic-metadata">

**Author:** [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)\
**Replies:** 6\
**Last updated:** [February 26, 2016, 3:29am UTC](https://meta.discourse.org/t/app-models-topic-tracking-state-report-long-response-times/40052 "2016-02-26T03:29:43Z")

</div>

I’ve seen a long response times for this SQL query a few times (\> 5). The most recent occurrence is this one where it took 93.2ms: Executing action: show T+173.7 ms Reader 93.2 ms lib/freedom\_patches/active\_record\_base…

---

## [Behavior of iframes within oneboxes in emails](https://meta.discourse.org/t/behavior-of-iframes-within-oneboxes-in-emails/40160)

<div class="topic-metadata">

**Author:** [@fefrei](https://meta.discourse.org/u/fefrei)\
**Replies:** 2\
**Last updated:** [February 25, 2016, 6:45pm UTC](https://meta.discourse.org/t/behavior-of-iframes-within-oneboxes-in-emails/40160 "2016-02-25T18:45:08Z")

</div>

I’ve developed a small Onebox plugin that embeds an interactive element when certain links are posted. They look like this: This is implemented by inserting an iframe into the onebox: Obviously, this won’t work i…

---

## [Hook for a topic's category id?](https://meta.discourse.org/t/hook-for-a-topics-category-id/40002)

<div class="topic-metadata">

**Author:** [@stevenpslade](https://meta.discourse.org/u/stevenpslade)\
**Replies:** 3\
**Last updated:** [February 24, 2016, 10:34pm UTC](https://meta.discourse.org/t/hook-for-a-topics-category-id/40002 "2016-02-24T22:34:16Z")

</div>

I’m looking to get a topic’s category id to use in javascript. Since this info is already being pulled to grab the category tag in each topic for handlebars, I was wondering if I could use that somehow? A likely helpful…

---

## [Callback for topic\_closed and topic\_reopened](https://meta.discourse.org/t/callback-for-topic-closed-and-topic-reopened/39989)

<div class="topic-metadata">

**Author:** [@joebuhlig](https://meta.discourse.org/u/joebuhlig)\
**Replies:** 2\
**Last updated:** [February 23, 2016, 10:05pm UTC](https://meta.discourse.org/t/callback-for-topic-closed-and-topic-reopened/39989 "2016-02-23T22:05:49Z")

</div>

I need to run a sidekiq job in these two cases. My original thought was to extend the Topic model with an after\_save method, but wondered if there was a better way triggered off of these events. I searched the source cod…

---

## [Understanding mini-profiler output \`Executing action: show\`](https://meta.discourse.org/t/understanding-mini-profiler-output-executing-action-show/40055)

<div class="topic-metadata">

**Author:** [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)\
**Replies:** 3\
**Last updated:** [February 23, 2016, 10:46pm UTC](https://meta.discourse.org/t/understanding-mini-profiler-output-executing-action-show/40055 "2016-02-23T22:46:46Z")

</div>

In between SQL statements I’m seeing Executing action: show — XX.XX ms What exactly does do the Executing action: show times mean? In a MySQL client you might see two times a “duration” (execution time) “fetch” (how lo…

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

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