# Development

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

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

**Page:** 35

---

## [Limit number of notifications in user menu dropdown](https://meta.discourse.org/t/limit-number-of-notifications-in-user-menu-dropdown/291878)

<div class="topic-metadata">

**Author:** [@digitaldominica](https://meta.discourse.org/u/digitaldominica)\
**Replies:** 2\
**Last updated:** [January 18, 2024, 12:17pm UTC](https://meta.discourse.org/t/limit-number-of-notifications-in-user-menu-dropdown/291878 "2024-01-18T12:17:58Z")

</div>

I want to limit the number of items in the notification dropdown from the header menu, where would I need to go to edit this?

---

## [Get ID for updating a post](https://meta.discourse.org/t/get-id-for-updating-a-post/47095)

<div class="topic-metadata">

**Author:** [@nisbeti](https://meta.discourse.org/u/nisbeti)\
**Replies:** 1\
**Last updated:** [July 11, 2016, 2:08pm UTC](https://meta.discourse.org/t/get-id-for-updating-a-post/47095 "2016-07-11T14:08:54Z")

</div>

When creating a new category, I must have an automatically created post, as: Every category has an initial "About this category" topic. So, I use the API to create the ‘group one’ category, then I get the topic-url from…

---

## [Move Create Event (and others) out of the cog icon?](https://meta.discourse.org/t/move-create-event-and-others-out-of-the-cog-icon/293486)

<div class="topic-metadata">

**Author:** [@Al\_Whitworth](https://meta.discourse.org/u/Al_Whitworth)\
**Replies:** 1\
**Last updated:** [January 17, 2024, 6:26pm UTC](https://meta.discourse.org/t/move-create-event-and-others-out-of-the-cog-icon/293486 "2024-01-17T18:26:23Z")

</div>

Is there any way to move the “create event” link out of the cog icon and onto the main composer bar? Also I think it’s confusing to have the event AND the “insert date/time” icon, so it’d be nice to remove that too.

---

## [Sign up popup - Auto load after 10 seconds](https://meta.discourse.org/t/sign-up-popup-auto-load-after-10-seconds/291899)

<div class="topic-metadata">

**Author:** [@Aditya\_Shevle](https://meta.discourse.org/u/Aditya_Shevle)\
**Replies:** 2\
**Last updated:** [January 17, 2024, 5:30am UTC](https://meta.discourse.org/t/sign-up-popup-auto-load-after-10-seconds/291899 "2024-01-17T05:30:46Z")

</div>

Hi, is there a way to display a signup popup automatically after a delay of 10 seconds? Thank you in advanced!

---

## [How do I set up a read only API for my forum page](https://meta.discourse.org/t/how-do-i-set-up-a-read-only-api-for-my-forum-page/291840)

<div class="topic-metadata">

**Author:** [@op\_julian](https://meta.discourse.org/u/op_julian)\
**Replies:** 1\
**Last updated:** [January 16, 2024, 10:31pm UTC](https://meta.discourse.org/t/how-do-i-set-up-a-read-only-api-for-my-forum-page/291840 "2024-01-16T22:31:14Z")

</div>

Hi, Looking to create a read only API for my forum page!

---

## [Add a new user via API](https://meta.discourse.org/t/add-a-new-user-via-api/291683)

<div class="topic-metadata">

**Author:** [@Samir\_Sabri](https://meta.discourse.org/u/Samir_Sabri)\
**Replies:** 2\
**Last updated:** [January 16, 2024, 8:12am UTC](https://meta.discourse.org/t/add-a-new-user-via-api/291683 "2024-01-16T08:12:48Z")

</div>

Hello My forum discourse is integrated with my website using SSO, so all my users are actually at my website DB. The question is, how can I add users from my website to the discourse forum by API? and how can I check i…

---

## [How to programmatically send or disable notifications emails?](https://meta.discourse.org/t/how-to-programmatically-send-or-disable-notifications-emails/291258)

<div class="topic-metadata">

**Author:** [@omppatil](https://meta.discourse.org/u/omppatil)\
**Replies:** 1\
**Last updated:** [January 16, 2024, 8:07am UTC](https://meta.discourse.org/t/how-to-programmatically-send-or-disable-notifications-emails/291258 "2024-01-16T08:07:27Z")

</div>

Hi!, How can we programmatically send or disable notification emails for users subscribed to categories like ‘watching,’ ‘tracking,’ ‘watching first post,’ ‘normal,’ and ‘muted’ when they publish a topic or post that re…

---

## [Different theme for personal message topics list?](https://meta.discourse.org/t/different-theme-for-personal-message-topics-list/291533)

<div class="topic-metadata">

**Author:** [@rahim123](https://meta.discourse.org/u/rahim123)\
**Replies:** 20\
**Last updated:** [January 15, 2024, 3:12pm UTC](https://meta.discourse.org/t/different-theme-for-personal-message-topics-list/291533 "2024-01-15T15:12:59Z")

</div>

Hi, is there any way to use a different theme just for the personal messages topics list? I am currently using Sam’s Sam's Simple Theme which I and my community strongly prefer for the /latest list, since it prints out t…

---

## [Central Theme Header User Icons](https://meta.discourse.org/t/central-theme-header-user-icons/291526)

<div class="topic-metadata">

**Author:** [@digitaldominica](https://meta.discourse.org/u/digitaldominica)\
**Replies:** 9\
**Last updated:** [January 15, 2024, 12:57pm UTC](https://meta.discourse.org/t/central-theme-header-user-icons/291526 "2024-01-15T12:57:36Z")

</div>

Hi, I’m trying to recreate the separation of the header menu with the user and notifications similar to central theme on meta, I asked on the theme thread but didn’t get a reply. If I wanted to do the same, which files …

---

## [Help me with integrating vim mode in the editor](https://meta.discourse.org/t/help-me-with-integrating-vim-mode-in-the-editor/291427)

<div class="topic-metadata">

**Author:** [@Yunpeng\_Tai](https://meta.discourse.org/u/Yunpeng_Tai)\
**Replies:** 1\
**Last updated:** [January 15, 2024, 11:34am UTC](https://meta.discourse.org/t/help-me-with-integrating-vim-mode-in-the-editor/291427 "2024-01-15T11:34:27Z")

</div>

I can create a simple textarea with vim mode. But I can not figure out how to integrate it with discourse editor. Please help me! The below is the example code for producing the textarea with vim mode. \<!DOCTYPE html\> \<…

---

## [Your site may not work because a theme / component has errors](https://meta.discourse.org/t/your-site-may-not-work-because-a-theme-component-has-errors/291513)

<div class="topic-metadata">

**Author:** [@regnatarajan](https://meta.discourse.org/u/regnatarajan)\
**Replies:** 11\
**Last updated:** [January 15, 2024, 8:59am UTC](https://meta.discourse.org/t/your-site-may-not-work-because-a-theme-component-has-errors/291513 "2024-01-15T08:59:34Z")

</div>

I just did an update and now I get “Your site may not work because a theme / component has errors.” when I go to my site. The problem is it gives me no idea what the error is. Nothing has changed on my side. Only the …

---

## [How to configure correct URL formation when creating a topic?](https://meta.discourse.org/t/how-to-configure-correct-url-formation-when-creating-a-topic/291518)

<div class="topic-metadata">

**Author:** [@RubyLink](https://meta.discourse.org/u/RubyLink)\
**Replies:** 1\
**Last updated:** [January 13, 2024, 11:01am UTC](https://meta.discourse.org/t/how-to-configure-correct-url-formation-when-creating-a-topic/291518 "2024-01-13T11:01:23Z")

</div>

When creating a topic, the url is formed in the form example.com/t/topic/39/ - there is no conversion of the Cyrillic alphabet from the title to Latin letters. But, if the title contains a word in English (in this case R…

---

## [Flagging a post with API broken](https://meta.discourse.org/t/flagging-a-post-with-api-broken/291084)

<div class="topic-metadata">

**Author:** [@markschmucker](https://meta.discourse.org/u/markschmucker)\
**Replies:** 9\
**Last updated:** [January 13, 2024, 4:09am UTC](https://meta.discourse.org/t/flagging-a-post-with-api-broken/291084 "2024-01-13T04:09:56Z")

</div>

I flag certain posts using the API and Python. This has worked for several years, until a recent upgrade to 3.2.0.beta4-dev. Now I get DiscourseClientError: You are not permitted to view the requested resource. My API ke…

---

## [How can we add a button to the review post and topic queue modal and implement an action for that button in a Discourse plugin?](https://meta.discourse.org/t/how-can-we-add-a-button-to-the-review-post-and-topic-queue-modal-and-implement-an-action-for-that-button-in-a-discourse-plugin/291008)

<div class="topic-metadata">

**Author:** [@omppatil](https://meta.discourse.org/u/omppatil)\
**Replies:** 2\
**Last updated:** [January 11, 2024, 4:42am UTC](https://meta.discourse.org/t/how-can-we-add-a-button-to-the-review-post-and-topic-queue-modal-and-implement-an-action-for-that-button-in-a-discourse-plugin/291008 "2024-01-11T04:42:11Z")

</div>

Hi!, How can we add a button to the review post and topic queue modal and reviewable actions in for that button in a Discourse plugin?I would appreciate some help with adding a button to the review post and topic que…

---

## [How do you get the permissions assigned to a topic using the API?](https://meta.discourse.org/t/how-do-you-get-the-permissions-assigned-to-a-topic-using-the-api/291007)

<div class="topic-metadata">

**Author:** [@pdymfarrell](https://meta.discourse.org/u/pdymfarrell)\
**Replies:** 3\
**Last updated:** [January 10, 2024, 10:03pm UTC](https://meta.discourse.org/t/how-do-you-get-the-permissions-assigned-to-a-topic-using-the-api/291007 "2024-01-10T22:03:59Z")

</div>

In the documentation I can’t find how to get the permissions assigned to a topic using the API. Is there a different endpoint other than the topic endpoint that provides this information? Thanks!

---

## [Add data-ot-ignore to the preloader-image](https://meta.discourse.org/t/add-data-ot-ignore-to-the-preloader-image/291178)

<div class="topic-metadata">

**Author:** [@Andrew\_Dickens](https://meta.discourse.org/u/Andrew_Dickens)\
**Replies:** 0\
**Last updated:** [January 10, 2024, 2:51pm UTC](https://meta.discourse.org/t/add-data-ot-ignore-to-the-preloader-image/291178 "2024-01-10T14:51:26Z")

</div>

Need to add data-ot-ignore to the preloader-image to stop the onetrust cookie-consent from blocking it, but api.onPageChange() seems to run once the preloader has gone in my head\_tag.html. I have script running api.on…

---

## [Unable to send a PM via DiscourseApi - "errors"=\>\["You must select a valid user."\]](https://meta.discourse.org/t/unable-to-send-a-pm-via-discourseapi-errors-you-must-select-a-valid-user/282943)

<div class="topic-metadata">

**Author:** [@AstonJ](https://meta.discourse.org/u/AstonJ)\
**Replies:** 2\
**Last updated:** [January 10, 2024, 6:05am UTC](https://meta.discourse.org/t/unable-to-send-a-pm-via-discourseapi-errors-you-must-select-a-valid-user/282943 "2024-01-10T06:05:54Z")

</div>

This used to work, but recently on trying to send a PM using the DiscourseApi I keep getting: DiscourseApi::UnprocessableEntity ({"action"=\>"create\_post", "errors"=\>\["You must select a valid user."\]}) but the user is val…

---

## [Cancel an invite](https://meta.discourse.org/t/cancel-an-invite/290652)

<div class="topic-metadata">

**Author:** [@Tom\_Thele](https://meta.discourse.org/u/Tom_Thele)\
**Replies:** 3\
**Last updated:** [January 9, 2024, 4:17pm UTC](https://meta.discourse.org/t/cancel-an-invite/290652 "2024-01-09T16:17:21Z")

</div>

We are about to issue invitations to a large group of new users who subscribe to a product. Discourse access is a new benefit we are launching to current subscribers. My concern is users whom we invite to join a group bu…

---

## [Request for a plugin outlet on admin badge page](https://meta.discourse.org/t/request-for-a-plugin-outlet-on-admin-badge-page/290716)

<div class="topic-metadata">

**Author:** [@piffy](https://meta.discourse.org/u/piffy)\
**Replies:** 2\
**Last updated:** [January 9, 2024, 4:13pm UTC](https://meta.discourse.org/t/request-for-a-plugin-outlet-on-admin-badge-page/290716 "2024-01-09T16:13:11Z")

</div>

I’m trying to make a plugin that adds additional properties to badges. Ideally I’d be able to just stick extra things above the save button on the admin badge page (see arrow below) I believe this corresponds to this…

---

## [Theme creator HTML/CSS](https://meta.discourse.org/t/theme-creator-html-css/290992)

<div class="topic-metadata">

**Author:** [@ISMAIL\_BELHOUSSAINE](https://meta.discourse.org/u/ISMAIL_BELHOUSSAINE)\
**Replies:** 2\
**Last updated:** [January 9, 2024, 3:37pm UTC](https://meta.discourse.org/t/theme-creator-html-css/290992 "2024-01-09T15:37:01Z")

</div>

Description Hello Discourse community. I would love to know if it is possible to, while using the Theme creator sandbox, to have more freedome while customizing the base theme. For example how do i replace the “Theme cr…

---

## [Trying to re-align an element of a theme and just wondering what it's called](https://meta.discourse.org/t/trying-to-re-align-an-element-of-a-theme-and-just-wondering-what-its-called/290859)

<div class="topic-metadata">

**Author:** [@Kartoon](https://meta.discourse.org/u/Kartoon)\
**Replies:** 1\
**Last updated:** [January 9, 2024, 2:57pm UTC](https://meta.discourse.org/t/trying-to-re-align-an-element-of-a-theme-and-just-wondering-what-its-called/290859 "2024-01-09T14:57:48Z")

</div>

Didn’t necessarily word that title great but I don’t particularly know what I’m doing :sweat\_smile: I’ve been slowly trying to fix a broken theme/update deprecated parts (that I didn’t make of course) and I’m slowly gett…

---

## [router.transitionTo gets aborted only for chat page, but works for the rest of the links like users page](https://meta.discourse.org/t/router-transitionto-gets-aborted-only-for-chat-page-but-works-for-the-rest-of-the-links-like-users-page/290985)

<div class="topic-metadata">

**Author:** [@robertkibet](https://meta.discourse.org/u/robertkibet)\
**Replies:** 8\
**Last updated:** [January 9, 2024, 10:50am UTC](https://meta.discourse.org/t/router-transitionto-gets-aborted-only-for-chat-page-but-works-for-the-rest-of-the-links-like-users-page/290985 "2024-01-09T10:50:58Z")

</div>

When I try to trigger urlMethod update, router.transitionTo('chat.index') it gets aborted isAborted:true, I can’t figure out why this is happening, kindly assist on the other hand I am able to trigger and navigate using…

---

## [Create a new post Discourse API doesn't directly support the automatic title and body filling from a link](https://meta.discourse.org/t/create-a-new-post-discourse-api-doesnt-directly-support-the-automatic-title-and-body-filling-from-a-link/290949)

<div class="topic-metadata">

**Author:** [@ruben\_devesa\_rodrigu](https://meta.discourse.org/u/ruben_devesa_rodrigu)\
**Replies:** 0\
**Last updated:** [January 9, 2024, 4:12am UTC](https://meta.discourse.org/t/create-a-new-post-discourse-api-doesnt-directly-support-the-automatic-title-and-body-filling-from-a-link/290949 "2024-01-09T04:12:29Z")

</div>

When a new topic is created and the links is pasted into the title field the body and title is filled automatically. how can i create a new topic through the discourse API to use this feature ?

---

## [Having a hard time overriding the save() function on the admin badge page](https://meta.discourse.org/t/having-a-hard-time-overriding-the-save-function-on-the-admin-badge-page/290831)

<div class="topic-metadata">

**Author:** [@piffy](https://meta.discourse.org/u/piffy)\
**Replies:** 2\
**Last updated:** [January 8, 2024, 8:53pm UTC](https://meta.discourse.org/t/having-a-hard-time-overriding-the-save-function-on-the-admin-badge-page/290831 "2024-01-08T20:53:04Z")

</div>

I’m writing a plugin to extend badge functionality. When the “save” button is pressed on the admin badge page, I want to execute some additional code. Discourse Javascript: Discourse hbs: My code discourse/plugins/d…

---

## [Online booking reservation plugin help](https://meta.discourse.org/t/online-booking-reservation-plugin-help/50638)

<div class="topic-metadata">

**Author:** [@Aman\_Jagga](https://meta.discourse.org/u/Aman_Jagga)\
**Replies:** 2\
**Last updated:** [January 7, 2024, 9:41pm UTC](https://meta.discourse.org/t/online-booking-reservation-plugin-help/50638 "2024-01-07T21:41:17Z")

</div>

In my forum, I want to allow users to book playground fields under my control without any manual interference.I need a very basic plugin without any payment feature need or any other complications So, is there some simi…

---

## [Countdown script in header duplicating avatar dropdown?](https://meta.discourse.org/t/countdown-script-in-header-duplicating-avatar-dropdown/290095)

<div class="topic-metadata">

**Author:** [@ncaming215](https://meta.discourse.org/u/ncaming215)\
**Replies:** 7\
**Last updated:** [January 6, 2024, 6:13pm UTC](https://meta.discourse.org/t/countdown-script-in-header-duplicating-avatar-dropdown/290095 "2024-01-06T18:13:22Z")

</div>

I have the following script running in my header, and it’s rendering just fine. But when I navigate to a topic, the avatar dropdown replicates like this: Hoping it’s a simple fix, but maybe I’m trying to make Dis…

---

## [How can I filter/paginate the list CategoryTopics route?](https://meta.discourse.org/t/how-can-i-filter-paginate-the-list-categorytopics-route/290560)

<div class="topic-metadata">

**Author:** [@PhishAndChips](https://meta.discourse.org/u/PhishAndChips)\
**Replies:** 1\
**Last updated:** [January 6, 2024, 5:22am UTC](https://meta.discourse.org/t/how-can-i-filter-paginate-the-list-categorytopics-route/290560 "2024-01-06T05:22:08Z")

</div>

We’re building a custom integration to our self-hosted discourse instance within our app and would like to filter the results from https://docs.discourse.org/#tag/Categories/operation/listCategoryTopics to allow us to sh…

---

## [Trouble with hbs ValueList as non-admin--what to use instead?](https://meta.discourse.org/t/trouble-with-hbs-valuelist-as-non-admin-what-to-use-instead/290650)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 1\
**Last updated:** [January 5, 2024, 7:16pm UTC](https://meta.discourse.org/t/trouble-with-hbs-valuelist-as-non-admin-what-to-use-instead/290650 "2024-01-05T19:16:21Z")

</div>

I’ve got code on my https://dashboard.literatecomputing.com/ that works as admin (and has worked for a long while as regular users, I’m pretty sure) that is now failing as a regular user. When I include this code on the…

---

## [Create a Discourse user from a Zapier request](https://meta.discourse.org/t/create-a-discourse-user-from-a-zapier-request/283570)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 13\
**Last updated:** [January 5, 2024, 12:00pm UTC](https://meta.discourse.org/t/create-a-discourse-user-from-a-zapier-request/283570 "2024-01-05T12:00:58Z")

</div>

I’m trying to create an active user with the API. This works from curl: curl -X POST "https://community.co/users.json" -H "Api-Key: $API\_KEY" -H "Api-Username: system" -H "Content-Type: multipart/form-data" -F "name=XX…

---

## [API / Functionality required to push Data from Discourse to external resource](https://meta.discourse.org/t/api-functionality-required-to-push-data-from-discourse-to-external-resource/290267)

<div class="topic-metadata">

**Author:** [@Aditya\_Shevle](https://meta.discourse.org/u/Aditya_Shevle)\
**Replies:** 5\
**Last updated:** [January 5, 2024, 11:40am UTC](https://meta.discourse.org/t/api-functionality-required-to-push-data-from-discourse-to-external-resource/290267 "2024-01-05T11:40:02Z")

</div>

We need to pass on the data of TOPICS being created, COMMENTS being given by an user to our internal CRMS panel, for analysing some data and deriving few reports based on that data. Is it possible?

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

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