# Development

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

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

**Page:** 122

---

## [Cannot access to trustLevel "name"](https://meta.discourse.org/t/cannot-access-to-trustlevel-name/85541)

<div class="topic-metadata">

**Author:** [@duranmla](https://meta.discourse.org/u/duranmla)\
**Replies:** 0\
**Last updated:** [April 17, 2018, 2:34pm UTC](https://meta.discourse.org/t/cannot-access-to-trustlevel-name/85541 "2018-04-17T14:34:21Z")

</div>

Hi all, Basically I am trying to accomplish a sort of flair around all the avatars within my platform which by now it is not a problem it is somewhere similar to the work done at: GitHub - tshenry/discourse-trust-level-…

---

## [Post message with Media](https://meta.discourse.org/t/post-message-with-media/85526)

<div class="topic-metadata">

**Author:** [@SHAYHK](https://meta.discourse.org/u/SHAYHK)\
**Replies:** 0\
**Last updated:** [April 17, 2018, 10:54am UTC](https://meta.discourse.org/t/post-message-with-media/85526 "2018-04-17T10:54:10Z")

</div>

can someone send me an example for sending a post request (api) that includes media : video, images, audio .. i am trying to use Discourse API.

---

## [Possible to override a core file functionality?](https://meta.discourse.org/t/possible-to-override-a-core-file-functionality/85530)

<div class="topic-metadata">

**Author:** [@Mihir](https://meta.discourse.org/u/Mihir)\
**Replies:** 1\
**Last updated:** [April 17, 2018, 2:17pm UTC](https://meta.discourse.org/t/possible-to-override-a-core-file-functionality/85530 "2018-04-17T14:17:26Z")

</div>

Is it possible to override functions of discourse/app/assets/javascripts/discourse/lib/click-track.js.es6 with slightly modified one? I want to change line #46 I am looking for a method which won’t lose changes when di…

---

## [Page auto load on scroll JS code location](https://meta.discourse.org/t/page-auto-load-on-scroll-js-code-location/85428)

<div class="topic-metadata">

**Author:** [@discouser](https://meta.discourse.org/u/discouser)\
**Replies:** 2\
**Last updated:** [April 16, 2018, 3:54pm UTC](https://meta.discourse.org/t/page-auto-load-on-scroll-js-code-location/85428 "2018-04-16T15:54:21Z")

</div>

Hi! Can someone please tell me which JS file/code is responsible for the page auto load on scroll? Thanks.

---

## [vBulletin Forums List Page?](https://meta.discourse.org/t/vbulletin-forums-list-page/85364)

<div class="topic-metadata">

**Author:** [@ryanerwin](https://meta.discourse.org/u/ryanerwin)\
**Replies:** 4\
**Last updated:** [April 15, 2018, 9:30pm UTC](https://meta.discourse.org/t/vbulletin-forums-list-page/85364 "2018-04-15T21:30:10Z")

</div>

I’m trying to migrate an old, large vBulletin community to discourse. Personally, I can’t stand vBulletin… However, some of our VIPs absolutely love vBulletin because they’ve been using it everyday for 10+ years… Previe…

---

## [Disabling/restricting user search](https://meta.discourse.org/t/disabling-restricting-user-search/85354)

<div class="topic-metadata">

**Author:** [@jerry0](https://meta.discourse.org/u/jerry0)\
**Replies:** 3\
**Last updated:** [April 15, 2018, 6:54pm UTC](https://meta.discourse.org/t/disabling-restricting-user-search/85354 "2018-04-15T18:54:43Z")

</div>

We are using private categories for restricting access to different groups of users, so essentially keeping those users separate as they belong to different organisations and will not want to see what each other are post…

---

## [Adding extra 'opts' data to the "DiscourseEvent.on(:post\_created)" event from javascript?](https://meta.discourse.org/t/adding-extra-opts-data-to-the-discourseevent-on-post-created-event-from-javascript/84889)

<div class="topic-metadata">

**Author:** [@Vespura](https://meta.discourse.org/u/Vespura)\
**Replies:** 11\
**Last updated:** [April 14, 2018, 8:26pm UTC](https://meta.discourse.org/t/adding-extra-opts-data-to-the-discourseevent-on-post-created-event-from-javascript/84889 "2018-04-14T20:26:35Z")

</div>

I’ve been looking through the github repository and on the forums as well, but I’ve not been able to find what I’m looking for yet. Apologies if this has already been answered before. I’m trying to add some extra data (…

---

## [Adding a pulldown to the toolbar](https://meta.discourse.org/t/adding-a-pulldown-to-the-toolbar/85208)

<div class="topic-metadata">

**Author:** [@bombledmonk](https://meta.discourse.org/u/bombledmonk)\
**Replies:** 1\
**Last updated:** [April 13, 2018, 11:34am UTC](https://meta.discourse.org/t/adding-a-pulldown-to-the-toolbar/85208 "2018-04-13T11:34:57Z")

</div>

I’ve figured out how to add items to the toolbar and add functionality emulating what another theme did, but I was curious about two things. The toolbar has the ability to have some sort pulldown/hidden options. H…

---

## [Trigger a jquery function on post load](https://meta.discourse.org/t/trigger-a-jquery-function-on-post-load/85003)

<div class="topic-metadata">

**Author:** [@Olivier\_Lambert](https://meta.discourse.org/u/Olivier_Lambert)\
**Replies:** 11\
**Last updated:** [April 11, 2018, 5:49pm UTC](https://meta.discourse.org/t/trigger-a-jquery-function-on-post-load/85003 "2018-04-11T17:49:10Z")

</div>

Hi! If you access this instance of disocurse, you’ll notive I’ve added levels next to peoples pictures. Thing is, when we scroll or reload the page, users don’t have their levels displayed. I would need to run a fu…

---

## [Rails server --daemon and plugins](https://meta.discourse.org/t/rails-server-daemon-and-plugins/56291)

<div class="topic-metadata">

**Author:** [@pieceOpiland](https://meta.discourse.org/u/pieceOpiland)\
**Replies:** 4\
**Last updated:** [April 9, 2018, 1:47am UTC](https://meta.discourse.org/t/rails-server-daemon-and-plugins/56291 "2018-04-09T01:47:52Z")

</div>

I’ve followed the instructions at Install Discourse on macOS for development to install a development environment of discourse. I’ve also installed the discourse-solved plugin, and everything works when I run: bundle exe…

---

## [Search box in custom (404) page](https://meta.discourse.org/t/search-box-in-custom-404-page/48292)

<div class="topic-metadata">

**Author:** [@Overgrow](https://meta.discourse.org/u/Overgrow)\
**Replies:** 12\
**Last updated:** [April 7, 2018, 7:00pm UTC](https://meta.discourse.org/t/search-box-in-custom-404-page/48292 "2018-04-07T19:00:26Z")

</div>

Hello, is it possible to add somehow visible prominent search box to custom e.g. 404 page? I see there is google search now, but I would like to replace it with internal site search. Is there any reason why offer google…

---

## [Embed discourse nav bar/ notifications in external pages](https://meta.discourse.org/t/embed-discourse-nav-bar-notifications-in-external-pages/84738)

<div class="topic-metadata">

**Author:** [@Rob\_Jeffrey](https://meta.discourse.org/u/Rob_Jeffrey)\
**Replies:** 1\
**Last updated:** [April 7, 2018, 6:19am UTC](https://meta.discourse.org/t/embed-discourse-nav-bar-notifications-in-external-pages/84738 "2018-04-07T06:19:25Z")

</div>

Hello all! I am wanting to use discourse to replace my community site. Is it possible to embed the discourse nav bar ( notifications etc ) in an external page? So for example a user can be reading a blog on my wordpre…

---

## [No way to install markdown-it plugins?](https://meta.discourse.org/t/no-way-to-install-markdown-it-plugins/83686)

<div class="topic-metadata">

**Author:** [@wolftune](https://meta.discourse.org/u/wolftune)\
**Replies:** 6\
**Last updated:** [April 5, 2018, 2:08am UTC](https://meta.discourse.org/t/no-way-to-install-markdown-it-plugins/83686 "2018-04-05T02:08:39Z")

</div>

Continuing the discussion from Markdown-it is very powerful with its pulgin, how to achieve these on discourse: I see per that older topic that markdown-it features outside of commonmark “will not be included”, but ther…

---

## [»vagrant up« hangs](https://meta.discourse.org/t/vagrant-up-hangs/84491)

<div class="topic-metadata">

**Author:** [@superslowwindows](https://meta.discourse.org/u/superslowwindows)\
**Replies:** 5\
**Last updated:** [April 5, 2018, 12:34am UTC](https://meta.discourse.org/t/vagrant-up-hangs/84491 "2018-04-05T00:34:49Z")

</div>

So I do this vagrant up, but nothing happens. Then I simply downloaded the discourse.box by itself and added vagrant add discourse file.box and it unpacks it, thereafter nothing happens anyway. I’ve imported the vmdk int…

---

## [Plugin can't retrieve SiteSetting configured in admin ui](https://meta.discourse.org/t/plugin-cant-retrieve-sitesetting-configured-in-admin-ui/44008)

<div class="topic-metadata">

**Author:** [@KevinGlinski](https://meta.discourse.org/u/KevinGlinski)\
**Replies:** 3\
**Last updated:** [April 5, 2018, 12:00am UTC](https://meta.discourse.org/t/plugin-cant-retrieve-sitesetting-configured-in-admin-ui/44008 "2018-04-05T00:00:34Z")

</div>

I have a new plugin which has custom settings. I’m able to get the settings to show up in the UI, but when i call SiteSetting.purecloud\_client\_id it returns back only the value that is set in the yml file and never the …

---

## [Custom BBCode Help/Advice](https://meta.discourse.org/t/custom-bbcode-help-advice/84005)

<div class="topic-metadata">

**Author:** [@Ellibereth](https://meta.discourse.org/u/Ellibereth)\
**Replies:** 2\
**Last updated:** [April 4, 2018, 5:04am UTC](https://meta.discourse.org/t/custom-bbcode-help-advice/84005 "2018-04-04T05:04:24Z")

</div>

UPDATE: Figured it out! I’m trying to make make a plugin that makes a custom bbcode that maps \[vote\]name\[/vote\] to \<p\>\<span class="highlight"\>\<b\>VOTE:name\</b\>\</span\>\</p\> I’ve been reading the stuff in this topic a…

---

## [Where can I view the use of PluginStoreRow?](https://meta.discourse.org/t/where-can-i-view-the-use-of-pluginstorerow/84120)

<div class="topic-metadata">

**Author:** [@Stranik](https://meta.discourse.org/u/Stranik)\
**Replies:** 3\
**Last updated:** [April 3, 2018, 7:02am UTC](https://meta.discourse.org/t/where-can-i-view-the-use-of-pluginstorerow/84120 "2018-04-03T07:02:40Z")

</div>

I do not want to touch the main tables in the Discourse database. Interestingly, there are examples of using PluginStorRov that would add the necessary information. In my case, I want to add information to the topics. T…

---

## [Example plugin for new upload type?](https://meta.discourse.org/t/example-plugin-for-new-upload-type/84377)

<div class="topic-metadata">

**Author:** [@vibraphone](https://meta.discourse.org/u/vibraphone)\
**Replies:** 4\
**Last updated:** [April 2, 2018, 10:08pm UTC](https://meta.discourse.org/t/example-plugin-for-new-upload-type/84377 "2018-04-02T22:08:14Z")

</div>

Are there any instructions or examples to look at for writing a plugin that allows users to upload a new type of file? Specifically, I’m hoping to write a plugin that lets users upload small-ish 3D files in obj/ply/vtk f…

---

## [Issue with upload avatar during import](https://meta.discourse.org/t/issue-with-upload-avatar-during-import/84227)

<div class="topic-metadata">

**Author:** [@Cara](https://meta.discourse.org/u/Cara)\
**Replies:** 3\
**Last updated:** [April 2, 2018, 6:18am UTC](https://meta.discourse.org/t/issue-with-upload-avatar-during-import/84227 "2018-04-02T06:18:26Z")

</div>

HI, I’m trying to import avatar for users. I do this in the punbb.rb import file: create\_users(results, total: total\_count, offset: offset) do |user| { id: user\['id'\], email: user\['email'\], …

---

## [Using topic.destroy(id) to delete illegal content](https://meta.discourse.org/t/using-topic-destroy-id-to-delete-illegal-content/84239)

<div class="topic-metadata">

**Author:** [@vikaskedia](https://meta.discourse.org/u/vikaskedia)\
**Replies:** 4\
**Last updated:** [March 30, 2018, 6:52pm UTC](https://meta.discourse.org/t/using-topic-destroy-id-to-delete-illegal-content/84239 "2018-03-30T18:52:05Z")

</div>

My goal was to delete a topic from the DB due to legal reasons. so I ran the command: root@he-ps09-superstars:/var/www/discourse# echo “Topic.destroy(id)” | rails c The topic was deleted :+1: The category still thi…

---

## [Trust Level Requirements from API](https://meta.discourse.org/t/trust-level-requirements-from-api/84220)

<div class="topic-metadata">

**Author:** [@barreeeiroo](https://meta.discourse.org/u/barreeeiroo)\
**Replies:** 3\
**Last updated:** [March 30, 2018, 6:28pm UTC](https://meta.discourse.org/t/trust-level-requirements-from-api/84220 "2018-03-30T18:28:49Z")

</div>

Is possible to get the Trust Level Requirements of an user from the API?

---

## [Issue with import script](https://meta.discourse.org/t/issue-with-import-script/84211)

<div class="topic-metadata">

**Author:** [@Cara](https://meta.discourse.org/u/Cara)\
**Replies:** 1\
**Last updated:** [March 30, 2018, 12:14pm UTC](https://meta.discourse.org/t/issue-with-import-script/84211 "2018-03-30T12:14:53Z")

</div>

Hi, I’m trying to import an old punBB. I have discourse installed and running, I can launch the script but it look fort first\_post\_id and I have only the last\_post\_id… I tried to change the order of import but everythi…

---

## [window.addEventListener('load', functionName) not working properly](https://meta.discourse.org/t/window-addeventlistener-load-functionname-not-working-properly/84167)

<div class="topic-metadata">

**Author:** [@AnnaNaumova416](https://meta.discourse.org/u/AnnaNaumova416)\
**Replies:** 1\
**Last updated:** [March 30, 2018, 2:25am UTC](https://meta.discourse.org/t/window-addeventlistener-load-functionname-not-working-properly/84167 "2018-03-30T02:25:24Z")

</div>

Hello. I am making a simple script that add some function when the window loads. window.addEventListener('load', functionName); But it’s not working properly. In Chrome it’s working, but in Firefox, IE and Safari don…

---

## [Plugin using plugin-outlet only for homepage](https://meta.discourse.org/t/plugin-using-plugin-outlet-only-for-homepage/84063)

<div class="topic-metadata">

**Author:** [@adam\_CallRail](https://meta.discourse.org/u/adam_CallRail)\
**Replies:** 0\
**Last updated:** [March 28, 2018, 7:58pm UTC](https://meta.discourse.org/t/plugin-using-plugin-outlet-only-for-homepage/84063 "2018-03-28T19:58:59Z")

</div>

I am developing a plugin for our community forum. I followed the tutorials on here and have gotten pretty far. The main issue is that we really only want these added sections to show up for the homepage or index route.…

---

## [Translation of some phrases](https://meta.discourse.org/t/translation-of-some-phrases/83849)

<div class="topic-metadata">

**Author:** [@Stranik](https://meta.discourse.org/u/Stranik)\
**Replies:** 3\
**Last updated:** [March 27, 2018, 1:23pm UTC](https://meta.discourse.org/t/translation-of-some-phrases/83849 "2018-03-27T13:23:15Z")

</div>

I think the whole section (members:) not amenable to translation via the admin interface. It may be: https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/controllers/group-index.…

---

## [Is there an event for topic load?](https://meta.discourse.org/t/is-there-an-event-for-topic-load/83955)

<div class="topic-metadata">

**Author:** [@jordan1909](https://meta.discourse.org/u/jordan1909)\
**Replies:** 1\
**Last updated:** [March 27, 2018, 12:57pm UTC](https://meta.discourse.org/t/is-there-an-event-for-topic-load/83955 "2018-03-27T12:57:59Z")

</div>

I need to track if a topic was loaded to override the visibility. Is there an event similar to Discourse.on(:topic\_created) that would allow me to see when a topic is requested?

---

## [Mobile Brand Header invisible?](https://meta.discourse.org/t/mobile-brand-header-invisible/312727)

<div class="topic-metadata">

**Author:** [@icaria36](https://meta.discourse.org/u/icaria36)\
**Replies:** 3\
**Last updated:** [March 26, 2018, 9:42pm UTC](https://meta.discourse.org/t/mobile-brand-header-invisible/312727 "2018-03-26T21:42:28Z")

</div>

I am not sure I am applying CSS correctly. The UI leaves different options… I got the desktop version styled as desired: https://la.confederac.io/ However, the mobile version is not taking the styles and, in fact, i…

---

## [Getting tags from post in plugin 'addPostTransformCallback(...)' function?](https://meta.discourse.org/t/getting-tags-from-post-in-plugin-addposttransformcallback-function/83678)

<div class="topic-metadata">

**Author:** [@Anton](https://meta.discourse.org/u/Anton)\
**Replies:** 8\
**Last updated:** [March 25, 2018, 12:35am UTC](https://meta.discourse.org/t/getting-tags-from-post-in-plugin-addposttransformcallback-function/83678 "2018-03-25T00:35:47Z")

</div>

I’m working on a plugin that will transform the output of replies to a topic if there’s a particular tag on the topic itself. I’m doing my mangling in a callback I registered using something like: api.addPostTransformCa…

---

## [Recreating Latest](https://meta.discourse.org/t/recreating-latest/83701)

<div class="topic-metadata">

**Author:** [@Bolarinwa\_Balogun](https://meta.discourse.org/u/Bolarinwa_Balogun)\
**Replies:** 0\
**Last updated:** [March 24, 2018, 4:48am UTC](https://meta.discourse.org/t/recreating-latest/83701 "2018-03-24T04:48:17Z")

</div>

How would I be able to recreate how the structure and style of how latest topics are displayed like above. I would like to recreate this for a plugin. I would love any suggestions on how I can recreate this. Thanks.

---

## [Is there a faster way to develop plugin theme CSS / JS (e.g. livereload)?](https://meta.discourse.org/t/is-there-a-faster-way-to-develop-plugin-theme-css-js-e-g-livereload/63859)

<div class="topic-metadata">

**Author:** [@kara-todd](https://meta.discourse.org/u/kara-todd)\
**Replies:** 13\
**Last updated:** [March 23, 2018, 3:15pm UTC](https://meta.discourse.org/t/is-there-a-faster-way-to-develop-plugin-theme-css-js-e-g-livereload/63859 "2018-03-23T15:15:21Z")

</div>

Hey there, I’m trying develop a custom theme/plugin which will add a few additional templates and some general styling to discourse. In pursuit of this, it would be great to get some kind of livereload/auto-injected CS…

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

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