# Development

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

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

**Page:** 59

---

## [Wp-discourse hook to hijack login](https://meta.discourse.org/t/wp-discourse-hook-to-hijack-login/240792)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 1\
**Last updated:** [October 18, 2022, 4:28pm UTC](https://meta.discourse.org/t/wp-discourse-hook-to-hijack-login/240792 "2022-10-18T16:28:46Z")

</div>

I have a client that’s using s2member and wants users who are not at a specific membership level to be redirected to an info page rather than being logged in to Discourse. (Don’t want to have them log in as a member of a…

---

## [How to make Docs page the default homepage](https://meta.discourse.org/t/how-to-make-docs-page-the-default-homepage/240336)

<div class="topic-metadata">

**Author:** [@thaidb](https://meta.discourse.org/u/thaidb)\
**Replies:** 2\
**Last updated:** [October 18, 2022, 7:49am UTC](https://meta.discourse.org/t/how-to-make-docs-page-the-default-homepage/240336 "2022-10-18T07:49:24Z")

</div>

Hello, How display Docs page become homepage of Discourse? Thank you!

---

## [How can I add labels in create topic form fields?](https://meta.discourse.org/t/how-can-i-add-labels-in-create-topic-form-fields/155784)

<div class="topic-metadata">

**Author:** [@Kamran\_Afzal](https://meta.discourse.org/u/Kamran_Afzal)\
**Replies:** 9\
**Last updated:** [October 17, 2022, 4:09pm UTC](https://meta.discourse.org/t/how-can-i-add-labels-in-create-topic-form-fields/155784 "2022-10-17T16:09:36Z")

</div>

I want to add labels in create topic form fields is there any plugin available or any custom solution?

---

## [Site rearrangement scripting: What's the best venue?](https://meta.discourse.org/t/site-rearrangement-scripting-whats-the-best-venue/241892)

<div class="topic-metadata">

**Author:** [@mcdanlj](https://meta.discourse.org/u/mcdanlj)\
**Replies:** 10\
**Last updated:** [October 15, 2022, 11:38am UTC](https://meta.discourse.org/t/site-rearrangement-scripting-whats-the-best-venue/241892 "2022-10-15T11:38:10Z")

</div>

I have been writing a script, driven by a YAML file, for rearranging a Discourse site. This is because I’m planning a pretty massive rearrangement of my largest site to make it easier to navigate, and I’ll never go throu…

---

## [CSS Conflicts In Header](https://meta.discourse.org/t/css-conflicts-in-header/241867)

<div class="topic-metadata">

**Author:** [@chrispine1991](https://meta.discourse.org/u/chrispine1991)\
**Replies:** 3\
**Last updated:** [October 14, 2022, 9:25pm UTC](https://meta.discourse.org/t/css-conflicts-in-header/241867 "2022-10-14T21:25:34Z")

</div>

Chocoboe Studios // custom search banner customizations .custom-search-banner-wrap { margin: 0 auto !important; max-width: unset; color: #f9f9f9; -webkit-text-fill-color: transparent; background: -webkit-gradi…

---

## [modifyClass gives TypeError undefined?](https://meta.discourse.org/t/modifyclass-gives-typeerror-undefined/241896)

<div class="topic-metadata">

**Author:** [@piffy](https://meta.discourse.org/u/piffy)\
**Replies:** 0\
**Last updated:** [October 14, 2022, 4:21am UTC](https://meta.discourse.org/t/modifyclass-gives-typeerror-undefined/241896 "2022-10-14T04:21:53Z")

</div>

I’m creating a theme component. I have this in the header: \<script type="text/discourse-plugin" version="0.8"\> api.modifyClass("model:post-stream", { pluginId: 'test', appendMore: function() { …

---

## [Problem with creating Topic with external\_id](https://meta.discourse.org/t/problem-with-creating-topic-with-external-id/241689)

<div class="topic-metadata">

**Author:** [@Mohan43u](https://meta.discourse.org/u/Mohan43u)\
**Replies:** 20\
**Last updated:** [October 13, 2022, 7:59pm UTC](https://meta.discourse.org/t/problem-with-creating-topic-with-external-id/241689 "2022-10-13T19:59:17Z")

</div>

Hi, Created a Topic (using rest api) with “external\_id” field Deleted that Topic, I assume that Topic will be there in the Database but it will be hidden from users Tried to create the Same Topic with same “external\_id…

---

## [What would be the best approach to split the combined notifications & user menu into two?](https://meta.discourse.org/t/what-would-be-the-best-approach-to-split-the-combined-notifications-user-menu-into-two/241856)

<div class="topic-metadata">

**Author:** [@manuel](https://meta.discourse.org/u/manuel)\
**Replies:** 3\
**Last updated:** [October 13, 2022, 6:59pm UTC](https://meta.discourse.org/t/what-would-be-the-best-approach-to-split-the-combined-notifications-user-menu-into-two/241856 "2022-10-13T18:59:52Z")

</div>

I’d like to split the new combined user & notifications menu into two distinct menus for these reasons: I generally find the new menu a bit overwhelming for casual users and want to be able to offer a simpler alternati…

---

## [I need to mass-create groups using the API](https://meta.discourse.org/t/i-need-to-mass-create-groups-using-the-api/241055)

<div class="topic-metadata">

**Author:** [@boyan.biandov](https://meta.discourse.org/u/boyan.biandov)\
**Replies:** 6\
**Last updated:** [October 13, 2022, 5:58pm UTC](https://meta.discourse.org/t/i-need-to-mass-create-groups-using-the-api/241055 "2022-10-13T17:58:36Z")

</div>

Hi everyone, I need to mass-create groups using the API but the JSON does NOT accept an array of multiple values, it only works if I create one group per API call. Ideally I want to fire one create call and have the …

---

## [PHP/API to check whether user exists (by email) and is in specific group](https://meta.discourse.org/t/php-api-to-check-whether-user-exists-by-email-and-is-in-specific-group/241814)

<div class="topic-metadata">

**Author:** [@Jonathan5](https://meta.discourse.org/u/Jonathan5)\
**Replies:** 1\
**Last updated:** [October 13, 2022, 12:21pm UTC](https://meta.discourse.org/t/php-api-to-check-whether-user-exists-by-email-and-is-in-specific-group/241814 "2022-10-13T12:21:13Z")

</div>

I’m just starting to look at the API documentation now, and wonder whether someone could share a PHP script that uses the Discourse API to do any of the following, or anything similar. use an email address to check whe…

---

## [How are the short-urls for data extraction generated?](https://meta.discourse.org/t/how-are-the-short-urls-for-data-extraction-generated/241713)

<div class="topic-metadata">

**Author:** [@glorentz1](https://meta.discourse.org/u/glorentz1)\
**Replies:** 3\
**Last updated:** [October 13, 2022, 12:18pm UTC](https://meta.discourse.org/t/how-are-the-short-urls-for-data-extraction-generated/241713 "2022-10-13T12:18:21Z")

</div>

I have read the code in github and so far what I have been able to gather is that something is hashed and then base62’d. However, I haven’t been able, through my code analysis, to figure out what is initially hashed in t…

---

## [CSS change no longer working (glow around avatar)](https://meta.discourse.org/t/css-change-no-longer-working-glow-around-avatar/212585)

<div class="topic-metadata">

**Author:** [@Kartoon](https://meta.discourse.org/u/Kartoon)\
**Replies:** 4\
**Last updated:** [October 13, 2022, 10:53am UTC](https://meta.discourse.org/t/css-change-no-longer-working-glow-around-avatar/212585 "2022-10-13T10:53:49Z")

</div>

I had this added to my themes for about 6 months now and it worked fine, it added a bold golden glow around specific usergroups .group-Owner\>article\>.row\>.topic-avatar\>a\>img { box-shadow: 0 0 0 1px rgba(255,255,255,…

---

## [Not able to bulk upload censored words?](https://meta.discourse.org/t/not-able-to-bulk-upload-censored-words/241710)

<div class="topic-metadata">

**Author:** [@Swarndeep\_Poddar](https://meta.discourse.org/u/Swarndeep_Poddar)\
**Replies:** 1\
**Last updated:** [October 12, 2022, 3:50pm UTC](https://meta.discourse.org/t/not-able-to-bulk-upload-censored-words/241710 "2022-10-12T15:50:09Z")

</div>

I seen this FIX: Make watched words uploads work as intended (#17097) · discourse/discourse@1166db1 · GitHub Can anyone guide what api and querystring need to used for censor words? such as https://meta.discourse.org/…

---

## [Discourse user role check](https://meta.discourse.org/t/discourse-user-role-check/241637)

<div class="topic-metadata">

**Author:** [@0x\_pp](https://meta.discourse.org/u/0x_pp)\
**Replies:** 0\
**Last updated:** [October 12, 2022, 12:49am UTC](https://meta.discourse.org/t/discourse-user-role-check/241637 "2022-10-12T00:49:32Z")

</div>

I’m using discourse unlock plugin to add hodlers to dedicated group so that they could check private posts. Here’s the workflow for tricky users A user buys some token for authentication The user added to dedicated gr…

---

## [Issues adding CSS/JS component: Robustifying links to preserve link functionality](https://meta.discourse.org/t/issues-adding-css-js-component-robustifying-links-to-preserve-link-functionality/240997)

<div class="topic-metadata">

**Author:** [@MSH](https://meta.discourse.org/u/MSH)\
**Replies:** 2\
**Last updated:** [October 11, 2022, 11:42am UTC](https://meta.discourse.org/t/issues-adding-css-js-component-robustifying-links-to-preserve-link-functionality/240997 "2022-10-11T11:42:09Z")

</div>

TL;DR summary: Issues incorporating javascript & CSS links to enable Robustify tooltip pop-ups to hyperlinks on our Discourse. Some similarities to this earlier case although we’re stopping short of querying the Robust…

---

## [Overriding plugin javascript in a theme component](https://meta.discourse.org/t/overriding-plugin-javascript-in-a-theme-component/213748)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 11\
**Last updated:** [October 10, 2022, 2:15pm UTC](https://meta.discourse.org/t/overriding-plugin-javascript-in-a-theme-component/213748 "2022-10-10T14:15:19Z")

</div>

Continuing the discussion from Splitting up theme Javascript into multiple files: There was a discussion from someone a while back about developing in a theme vs a plugin. The Rails part of https://www.pfaffmanager.com/ …

---

## [How to make the Welcome banner wider?](https://meta.discourse.org/t/how-to-make-the-welcome-banner-wider/270592)

<div class="topic-metadata">

**Author:** [@jamierobinson](https://meta.discourse.org/u/jamierobinson)\
**Replies:** 1\
**Last updated:** [October 7, 2022, 8:18pm UTC](https://meta.discourse.org/t/how-to-make-the-welcome-banner-wider/270592 "2022-10-07T20:18:20Z")

</div>

Is there any way to make the banner slightly wider so I can fit some extra characters into the header?

---

## [Import Sql file but can't see Custom theme folder in local development](https://meta.discourse.org/t/import-sql-file-but-cant-see-custom-theme-folder-in-local-development/241227)

<div class="topic-metadata">

**Author:** [@ksavani](https://meta.discourse.org/u/ksavani)\
**Replies:** 1\
**Last updated:** [October 7, 2022, 10:36am UTC](https://meta.discourse.org/t/import-sql-file-but-cant-see-custom-theme-folder-in-local-development/241227 "2022-10-07T10:36:50Z")

</div>

Hello, I have imported sql file of my live site but i can’t see the custom theme folder inside discourse folder in local development. can anyone tell where its reside ? because i want to change common.scss file so Best…

---

## [I have add sql file of live site on local but login button redirecting how to login on locally on ubuntu](https://meta.discourse.org/t/i-have-add-sql-file-of-live-site-on-local-but-login-button-redirecting-how-to-login-on-locally-on-ubuntu/240884)

<div class="topic-metadata">

**Author:** [@ksavani](https://meta.discourse.org/u/ksavani)\
**Replies:** 4\
**Last updated:** [October 7, 2022, 9:08am UTC](https://meta.discourse.org/t/i-have-add-sql-file-of-live-site-on-local-but-login-button-redirecting-how-to-login-on-locally-on-ubuntu/240884 "2022-10-07T09:08:00Z")

</div>

Hello, I am unable to login on my machine on ubuntu. I have setup discourse and add import sql file of live site but now login button is redirecting to live site please help me to do login as admin on local machine Bes…

---

## [Plugin vs. theme component](https://meta.discourse.org/t/plugin-vs-theme-component/240908)

<div class="topic-metadata">

**Author:** [@Jagster](https://meta.discourse.org/u/Jagster)\
**Replies:** 6\
**Last updated:** [October 5, 2022, 2:35pm UTC](https://meta.discourse.org/t/plugin-vs-theme-component/240908 "2022-10-05T14:35:32Z")

</div>

Continuing the discussion from Thumbs up, twice: Sorry, I didn’t try search — I’m a horrible person. But if out there is a plugin and a theme component and those do (almost) same thing what is the most important differ…

---

## [/lib & app/services folders](https://meta.discourse.org/t/lib-app-services-folders/240996)

<div class="topic-metadata">

**Author:** [@abdellani](https://meta.discourse.org/u/abdellani)\
**Replies:** 0\
**Last updated:** [October 5, 2022, 9:34am UTC](https://meta.discourse.org/t/lib-app-services-folders/240996 "2022-10-05T09:34:50Z")

</div>

Hi I was exploring the code source, and I was trying to understand how the code is split between the two folders /lib and /app/services For example: NewPostManager is in /lib while UserActionManager is in /app/servic…

---

## [Connection getting killed off](https://meta.discourse.org/t/connection-getting-killed-off/165134)

<div class="topic-metadata">

**Author:** [@BastianGrahm](https://meta.discourse.org/u/BastianGrahm)\
**Replies:** 1\
**Last updated:** [October 2, 2022, 11:28am UTC](https://meta.discourse.org/t/connection-getting-killed-off/165134 "2022-10-02T11:28:52Z")

</div>

Hello, I am working on a plugin for Discourse, called Disraptor, which works as a kind of reverse proxy to allow embedding another website into the Discourse context. The website which should be embedded for us this wa…

---

## [The best way to make small ui modifications](https://meta.discourse.org/t/the-best-way-to-make-small-ui-modifications/240563)

<div class="topic-metadata">

**Author:** [@fluxartificial](https://meta.discourse.org/u/fluxartificial)\
**Replies:** 2\
**Last updated:** [October 1, 2022, 3:00pm UTC](https://meta.discourse.org/t/the-best-way-to-make-small-ui-modifications/240563 "2022-10-01T15:00:17Z")

</div>

Hello! What is the best way to make small modifications to user interface? I mean, I want small modifications like: I want the “New Topic button” to be full-width on mobile screens. Some elements from topics list, li…

---

## [Header image jumping - a better solution?](https://meta.discourse.org/t/header-image-jumping-a-better-solution/240577)

<div class="topic-metadata">

**Author:** [@agemo](https://meta.discourse.org/u/agemo)\
**Replies:** 0\
**Last updated:** [October 1, 2022, 1:26pm UTC](https://meta.discourse.org/t/header-image-jumping-a-better-solution/240577 "2022-10-01T13:26:23Z")

</div>

I think the header image customisation above the main nav bar I have in place is causing negative layout scoring with google. I have noticed it jumping a lot more lately too - I realise I have not looked at this in ove…

---

## [New PHP API library](https://meta.discourse.org/t/new-php-api-library/149758)

<div class="topic-metadata">

**Author:** [@pnoeric](https://meta.discourse.org/u/pnoeric)\
**Replies:** 1\
**Last updated:** [September 30, 2022, 8:44pm UTC](https://meta.discourse.org/t/new-php-api-library/149758 "2022-09-30T20:44:52Z")

</div>

Hi all, I’ve been working on my PHP library to talk to the Discourse API and I think it’s ready for production. https://github.com/pnoeric/discourse-api-php This is based on a bunch of other PHP Discourse API libraries…

---

## [\`LoadError: cannot load such file\` on plugin external gem](https://meta.discourse.org/t/loaderror-cannot-load-such-file-on-plugin-external-gem/239625)

<div class="topic-metadata">

**Author:** [@mjsir911](https://meta.discourse.org/u/mjsir911)\
**Replies:** 1\
**Last updated:** [September 29, 2022, 5:57am UTC](https://meta.discourse.org/t/loaderror-cannot-load-such-file-on-plugin-external-gem/239625 "2022-09-29T05:57:40Z")

</div>

Hi. I’m trying to develop this plugin and am having issues with external dependencies. My dependency is specified in plugin.rb with gem 'omniauth-telegram', '0.2.1' which is the recommended way to require dependencies…

---

## [How do you force a script to fire on Page Not Found?](https://meta.discourse.org/t/how-do-you-force-a-script-to-fire-on-page-not-found/240362)

<div class="topic-metadata">

**Author:** [@markschmucker](https://meta.discourse.org/u/markschmucker)\
**Replies:** 0\
**Last updated:** [September 29, 2022, 4:33am UTC](https://meta.discourse.org/t/how-do-you-force-a-script-to-fire-on-page-not-found/240362 "2022-09-29T04:33:25Z")

</div>

Continuing the discussion from How do you force a script to refire on every page load in Discourse?: As discussed in the now-closed topic, the code above does fire when a topic is loaded. But I want to trigger a redire…

---

## [Custom topic lists with custom routes](https://meta.discourse.org/t/custom-topic-lists-with-custom-routes/239948)

<div class="topic-metadata">

**Author:** [@attj](https://meta.discourse.org/u/attj)\
**Replies:** 0\
**Last updated:** [September 24, 2022, 11:51am UTC](https://meta.discourse.org/t/custom-topic-lists-with-custom-routes/239948 "2022-09-24T11:51:58Z")

</div>

I am trying to write a plugin/theme component to create certain pages with topic lists composed of specific topics. For instance, I am creating a tag for a specific event “myEvent”. I would like to display all topics ta…

---

## [SendInBlue Smtp Setting not working correctly](https://meta.discourse.org/t/sendinblue-smtp-setting-not-working-correctly/240328)

<div class="topic-metadata">

**Author:** [@Lai\_Chau\_Koi](https://meta.discourse.org/u/Lai_Chau_Koi)\
**Replies:** 1\
**Last updated:** [September 28, 2022, 5:05pm UTC](https://meta.discourse.org/t/sendinblue-smtp-setting-not-working-correctly/240328 "2022-09-28T17:05:04Z")

</div>

Hello, everyone! I tried to use SendInBlue for my Discourse Forum. And set variables in discourse.conf like these: smtp\_address = smtp-relay.sendinblue.com smtp\_port = 587 smtp\_domain = \[My domain\] smtp\_user\_name =…

---

## [Order of two items in the same plugin outlet](https://meta.discourse.org/t/order-of-two-items-in-the-same-plugin-outlet/238184)

<div class="topic-metadata">

**Author:** [@attj](https://meta.discourse.org/u/attj)\
**Replies:** 2\
**Last updated:** [September 28, 2022, 10:34am UTC](https://meta.discourse.org/t/order-of-two-items-in-the-same-plugin-outlet/238184 "2022-09-28T10:34:11Z")

</div>

I am using two different theme components that renders to below\_site\_header outlet. (I use tag banners and submenus). However, the submenus get rendered after the tag banners, I want the menu to be above the banner. …

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

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