# How to edit plugins code?

**URL:** https://meta.discourse.org/t/how-to-edit-plugins-code/88751
**Category:** Support
**Created:** [May 30, 2018, 4:35pm UTC](https://meta.discourse.org/t/how-to-edit-plugins-code/88751 "2018-05-30T16:35:48Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Sir\_Reyowski](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sir_reyowski/32/174908_2.png) [@Sir\_Reyowski](https://meta.discourse.org/u/Sir_Reyowski)
#### Post date: [May 30, 2018, 4:35pm UTC](https://meta.discourse.org/t/how-to-edit-plugins-code/88751/1 "2018-05-30T16:35:48Z")

</div>

Hi.

I’ve installed [this plugin](https://meta.discourse.org/t/discord-oauth2-plugin/67174) with [this tutorial](https://meta.discourse.org/t/install-a-plugin/19157) and I want to edit it because this plugin is in english and my forum is in french.

Where the plugins files are located?

Thanks!

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [May 30, 2018, 4:41pm UTC](https://meta.discourse.org/t/how-to-edit-plugins-code/88751/2 "2018-05-30T16:41:32Z")

</div>

It’s best to do a PR with your new locale on the [repository](https://github.com/featheredtoast/discourse-plugin-discord-auth) 😉

---

<div class="post-metadata">

### Author: ![Sir\_Reyowski](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sir_reyowski/32/174908_2.png) [@Sir\_Reyowski](https://meta.discourse.org/u/Sir_Reyowski)
#### Post date: [May 30, 2018, 5:03pm UTC](https://meta.discourse.org/t/how-to-edit-plugins-code/88751/3 "2018-05-30T17:03:46Z")

</div>

EDIT: Found what PR mean.

Yes, I will probably contribute, but I need to access to the code to make it work like I want, like, ban other sorts of login and only use this plugin to log in my Discourse

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [May 30, 2018, 5:26pm UTC](https://meta.discourse.org/t/how-to-edit-plugins-code/88751/4 "2018-05-30T17:26:37Z")

</div>

> [@Sir\_Reyowski](#):
>
> ban other sorts of login

Just disable local logins in the Discourse settings.

---

<div class="post-metadata">

### Author: ![Sir\_Reyowski](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sir_reyowski/32/174908_2.png) [@Sir\_Reyowski](https://meta.discourse.org/u/Sir_Reyowski)
#### Post date: [May 30, 2018, 6:08pm UTC](https://meta.discourse.org/t/how-to-edit-plugins-code/88751/5 "2018-05-30T18:08:23Z")

</div>

Didn’t think of that… Thanks a lot!

I will also like to add more features, like auto update of profile pics and usernames to this plugin (and even contribute to the original plugin, but use it and test it directly in my forum, without the validation of the author).

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [May 30, 2018, 7:18pm UTC](https://meta.discourse.org/t/how-to-edit-plugins-code/88751/6 "2018-05-30T19:18:59Z")

</div>

> [@Sir\_Reyowski](#):
>
> I need to access to the code

Since you’ve installed the plugin, you already know where the repository with the code is ([here](https://github.com/featheredtoast/discourse-plugin-discord-auth)). To modify it, you fork that repository (you will need a github account). The forked repository is yours so you can edit away. When you’re done, you create a PR for the modified/added code.

---

<div class="post-metadata">

### Author: ![Sir\_Reyowski](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sir_reyowski/32/174908_2.png) [@Sir\_Reyowski](https://meta.discourse.org/u/Sir_Reyowski)
#### Post date: [May 30, 2018, 8:28pm UTC](https://meta.discourse.org/t/how-to-edit-plugins-code/88751/7 "2018-05-30T20:28:33Z")

</div>

Thanks!

So, logically, when I install plugins on my Discourse, they are not stored in my VPS?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [May 30, 2018, 8:37pm UTC](https://meta.discourse.org/t/how-to-edit-plugins-code/88751/8 "2018-05-30T20:37:09Z")

</div>

> [@Sir\_Reyowski](#):
>
> So, logically, when I install plugins on my Discourse, they are not stored in my VPS?

The build will pull a copy down to your instance, so yes they are stored, and you will need to keep them up-to-date on the /admin/upgrade screen.

Christoph’s suggestion is a good one. Get a GitHub account, fork the plugin you like, create additional language text and once completely happy, submit a pull request to add it to the original project.

---

<div class="post-metadata">

### Author: ![Sir\_Reyowski](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sir_reyowski/32/174908_2.png) [@Sir\_Reyowski](https://meta.discourse.org/u/Sir_Reyowski)
#### Post date: [May 30, 2018, 9:01pm UTC](https://meta.discourse.org/t/how-to-edit-plugins-code/88751/9 "2018-05-30T21:01:00Z")

</div>

Done.

Thanks for the advice!

---

<div class="post-metadata">

### Author: ![eextra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eextra/32/170266_2.png) [@eextra](https://meta.discourse.org/u/eextra)
#### Post date: [May 7, 2019, 5:31am UTC](https://meta.discourse.org/t/how-to-edit-plugins-code/88751/10 "2019-05-07T05:31:54Z")

</div>

I have a question that’s a bit of a reference.  
If I want to install a theme that updates automatically, do I also have to add it to my own repo so that it does not update (I change it) ?  
Do I have to change something in the code so that the update does not work for the theme?

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [May 7, 2019, 5:33am UTC](https://meta.discourse.org/t/how-to-edit-plugins-code/88751/11 "2019-05-07T05:33:34Z")

</div>

You’re going to be prompted periodically by the theme to apply updates. The simplest solution is **don’t press the button**.

If you fork then there’s a fair chance that Discourse updates will come along and break the site design completely if you’re using a theme which isn’t being updated. At that point you’re going to be stuck until you switch back to the original theme your design is based upon.

This topic is about plugins though, themes aren’t installed or updated in the same way as plugins any more - there’s a whole UI in `/admin/customize` to manage and configure themes and theme components.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [September 1, 2022, 3:02pm UTC](https://meta.discourse.org/t/how-to-edit-plugins-code/88751/13 "2022-09-01T15:02:23Z")

</div>


