# Pulsanti di trading

**URL:** https://meta.discourse.org/t/trading-buttons/71308
**Category:** Plugin
**Created:** [3 Ottobre 2017, 11:01am UTC](https://meta.discourse.org/t/trading-buttons/71308 "2017-10-03T11:01:07Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Janno\_Liivak](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/janno_liivak/32/352215_2.png) [@Janno\_Liivak](https://meta.discourse.org/u/Janno_Liivak)
#### Post date: [3 Ottobre 2017, 11:01am UTC](https://meta.discourse.org/t/trading-buttons/71308/1 "2017-10-03T11:01:07Z")

</div>

| | | |
| --- | --- | --- |
| ℹ | **Riepilogo** | Questo plugin consente di visualizzare i pulsanti di scambio (acquista, vendi, scambia) sopra il titolo dell’argomento nella categoria. |
| 🛠 | **Collegamento al repository** | [https://github.com/jannolii/discourse-topic-trade-buttons](https://github.com/jannolii/discourse-topic-trade-buttons) |
| 📖 | **Guida all’installazione** | [Come installare i plugin in Discourse](https://meta.discourse.org/t/install-plugins-in-discourse/19157) |

Ho creato un semplice plugin che permette alla categoria di mostrare i pulsanti di scambio sopra il titolo dell’argomento. Sono ancora necessari test unitari, ma può essere utilizzato come soluzione semplice per categorie di tipo vendita/acquisto/scambio.

Abilita il plugin. Consenti i pulsanti appropriati nelle impostazioni della categoria:

 ![](https://global.discourse-cdn.com/meta/original/3X/0/e/0e98340bc59ce19f406f86ce7d67d9b12b21efb5.png)

Ogni argomento riceverà questi pulsanti sopra il titolo (ovviamente, devi essere il proprietario dell’argomento):

 ![](https://global.discourse-cdn.com/meta/original/3X/4/6/4652bddec17a4435293cc0248956ef679449eac4.png)

Dopo aver premuto il pulsante, riceverai una conferma su se desideri continuare; se confermi, l’argomento verrà archiviato e riceverà un prefisso in base al pulsante premuto:

 ![](https://global.discourse-cdn.com/meta/original/3X/1/1/1123c7b1e5371fef2462748e115da0a5163c59bb.png)

Sentiti libero di utilizzarlo o di fare un fork. Oppure, se sei uno sviluppatore e noti qualcosa che non è del tutto corretto, sono tutto orecchi. 😉

Le lingue supportate includono attualmente:

- Cinese
- Danese
- Tedesco
- Inglese
- Spagnolo
- Finlandese
- Francese
- Italiano
- Polacco
- Portoghese
- Russo

Se desideri aggiungere traduzioni, crea una pull request o contattami direttamente se vuoi fornire traduzioni ma non sai programmare.

> **[GitHub - jannolii/discourse-topic-trade-buttons](https://github.com/jannolii/discourse-topic-trade-buttons)**
>
> Contribute to jannolii/discourse-topic-trade-buttons development by creating an account on GitHub.

---

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [15 Ottobre 2017, 12:45am UTC](https://meta.discourse.org/t/trading-buttons/71308/2 "2017-10-15T00:45:25Z")

</div>

Hi @Janno_Liivak, how it is different to using `Buy`, `Sell` and `Exchange` tags?

---

<div class="post-metadata">

### Author: ![Janno\_Liivak](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/janno_liivak/32/352215_2.png) [@Janno\_Liivak](https://meta.discourse.org/u/Janno_Liivak)
#### Post date: [15 Ottobre 2017, 6:56am UTC](https://meta.discourse.org/t/trading-buttons/71308/3 "2017-10-15T06:56:33Z")

</div>

Such tags would just say that topic is about selling or purchasing or exchange and it makes topic easier to find.

My plugin is suitable for when you have trade categories… creator of topic can archive it using a button even after allowed changing time has passed.

---

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [15 Ottobre 2017, 9:29am UTC](https://meta.discourse.org/t/trading-buttons/71308/4 "2017-10-15T09:29:19Z")

</div>

So, the main feature is for the topic author to be able to archive a topic, or is there something else?

Also, can they close the topic rather than archive?

---

<div class="post-metadata">

### Author: ![Janno\_Liivak](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/janno_liivak/32/352215_2.png) [@Janno\_Liivak](https://meta.discourse.org/u/Janno_Liivak)
#### Post date: [15 Ottobre 2017, 11:33am UTC](https://meta.discourse.org/t/trading-buttons/71308/5 "2017-10-15T11:33:05Z")

</div>

Right now it’s only archiving topics. Why would you need closing instead of archiving? Archiving freezes a topic and topic is removed from top lists and digest emails etc. but closing doesn’t.

Difference between closing and archiving…

> [@Understanding closed, unlisted, and archived topics](https://meta.discourse.org/t/what-is-the-difference-between-closed-unlisted-and-archived-topics/51238):
>
> bookmark This guide explains the differences between Closed, Unlisted, and Archived topics in Discourse, including their characteristics and use cases. person_raising_hand Required user level: All users Discourse offers various ways to manage topics, including closing, unlisting, and archiving. Each of these options serves a different purpose and has specific effects on how topics are displayed and interacted with. This guide will explain the differences between these three states and th…

---

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [15 Ottobre 2017, 11:59am UTC](https://meta.discourse.org/t/trading-buttons/71308/6 "2017-10-15T11:59:38Z")

</div>

Okay, I see what you mean.

In our community, closing instead of archiving makes sense:

1. People see how active the category is and how much sales are going on. This encourages people to us our market rather than / in addition to other markets.

2. People see examples of what was sold quickly and what was not.

3. People can quickly skim topics and find examples of how other people describe their animals (in our case it’s a goat market, so there is only one kind of things people are selling in ot, and examples are a good thing in this case).

---

<div class="post-metadata">

### Author: ![Janno\_Liivak](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/janno_liivak/32/352215_2.png) [@Janno\_Liivak](https://meta.discourse.org/u/Janno_Liivak)
#### Post date: [15 Ottobre 2017, 3:35pm UTC](https://meta.discourse.org/t/trading-buttons/71308/7 "2017-10-15T15:35:43Z")

</div>

But how do you keep the trading category current when you have closed and active topics mixed? Why do you think people coming to your site will want to look at the closed topics and not what are current offers/requests? In my case moderators bulk-move sold/purchased topics under the archive category so that items will not show up for non-moderators but topics will be available unaltered for future reference (in case somebody does something illegal).

Anyway… if there are enough people with need for closing instead of archiving, I will add this feature.

---

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [15 Ottobre 2017, 9:54pm UTC](https://meta.discourse.org/t/trading-buttons/71308/8 "2017-10-15T21:54:08Z")

</div>

> [@Janno\_Liivak](#):
>
> Why do you think people coming to your site will want to look at the closed topics and not what are current offers/requests?

Community members tell us so.

---

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [15 Ottobre 2017, 9:58pm UTC](https://meta.discourse.org/t/trading-buttons/71308/9 "2017-10-15T21:58:00Z")

</div>

> [@Janno\_Liivak](#):
>
> Anyway… if there are enough people with need for closing instead of archiving, I will add this feature.

Well, we don’t need this feature, but thanks for proposing. What we do is we set topic timers automatically for all ads in the category, so that they auto-close 1 month after the last reply. We also encourage people to write in their topics piblicly when an item gets sold, or they decide not to sell it anymore. This way buyers can comment before a topic gets closed, which is also good for content, and for other potential advertisers to watch the dynamics of the market.

Why I was asking is I wanted to find out whether there are any other features than that.

---

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [7 Aprile 2018, 5:34am UTC](https://meta.discourse.org/t/trading-buttons/71308/10 "2018-04-07T05:34:34Z")

</div>

Is the development still active? Plugin still supported? Anyone uses it?

---

<div class="post-metadata">

### Author: ![Janno\_Liivak](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/janno_liivak/32/352215_2.png) [@Janno\_Liivak](https://meta.discourse.org/u/Janno_Liivak)
#### Post date: [7 Aprile 2018, 8:47am UTC](https://meta.discourse.org/t/trading-buttons/71308/11 "2018-04-07T08:47:26Z")

</div>

Is there a problem with this plugin? I haven’t done any changes as it does everything I need 🙂

---

<div class="post-metadata">

### Author: ![davidkingham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidkingham/32/119528_2.png) [@davidkingham](https://meta.discourse.org/u/davidkingham)
#### Post date: [15 Luglio 2018, 12:31am UTC](https://meta.discourse.org/t/trading-buttons/71308/12 "2018-07-15T00:31:18Z")

</div>

I just installed this, turned it on in settings and enabled the buttons in a category, but I do not see the buttons after posting a topic…

---

<div class="post-metadata">

### Author: ![Janno\_Liivak](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/janno_liivak/32/352215_2.png) [@Janno\_Liivak](https://meta.discourse.org/u/Janno_Liivak)
#### Post date: [15 Luglio 2018, 11:24am UTC](https://meta.discourse.org/t/trading-buttons/71308/13 "2018-07-15T11:24:08Z")

</div>

You should restart the application. After that the buttons should be visible.

---

<div class="post-metadata">

### Author: ![trobiyo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/trobiyo/32/311872_2.png) [@trobiyo](https://meta.discourse.org/u/trobiyo)
#### Post date: [18 Luglio 2018, 7:37am UTC](https://meta.discourse.org/t/trading-buttons/71308/14 "2018-07-18T07:37:11Z")

</div>

Hi @Janno_Liivak,

Many thanks for giving us the opportunity to use this plugin, for us it’s really useful. Just let me ask you out of curiosity, I don’t understand why restart the application is needed, that’s because of the loading of some components after enabling it?

By the way, not sure if it’s me, but the Cancelled button does not disappear when unchecking from Category settings, it is supposed to be always there? I think this is related to, once you enable a button, if then is disabled, the button still appears, there is no way to remove it, doesn’t it?

Cheers,  
Ismael

---

<div class="post-metadata">

### Author: ![Janno\_Liivak](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/janno_liivak/32/352215_2.png) [@Janno\_Liivak](https://meta.discourse.org/u/Janno_Liivak)
#### Post date: [18 Luglio 2018, 8:23am UTC](https://meta.discourse.org/t/trading-buttons/71308/15 "2018-07-18T08:23:35Z")

</div>

I guess that it’s how Discourse plugins are “plugged” into the standard functionality. Also there may be that some category stuff get’s cached etc … so I would suggest restarting the app after making changes to category settings also … it may also wery well be that plugged functionality doesn’t get applied the same way as default functionality does.

It may also be that I just don’t know how to do it any differently 😉 I haven’t dug deeper than I had to… didn’t have time.

Right now I have no further plans for this plugin. For anything more (regarding trading functionality) I would consider implementing some sort of interface with existing online trading environment (or ERP) but as I don’t need anything more it’s going to be “as is” for Trading Buttons plugin.

---

<div class="post-metadata">

### Author: ![trobiyo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/trobiyo/32/311872_2.png) [@trobiyo](https://meta.discourse.org/u/trobiyo)
#### Post date: [18 Luglio 2018, 1:05pm UTC](https://meta.discourse.org/t/trading-buttons/71308/16 "2018-07-18T13:05:14Z")

</div>

Hi @Janno_Liivak,

After some investigation, I think I solved the issue about buttons that still appear even after unchecking from category settings. I’ve opened a PR on your project.

If you need more info, please let me know.

Cheers,  
Ismael

---

<div class="post-metadata">

### Author: ![Janno\_Liivak](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/janno_liivak/32/352215_2.png) [@Janno\_Liivak](https://meta.discourse.org/u/Janno_Liivak)
#### Post date: [19 Luglio 2018, 6:23pm UTC](https://meta.discourse.org/t/trading-buttons/71308/17 "2018-07-19T18:23:12Z")

</div>

Thanks, @trobiyo… but your fix didn’t work 🙂  
Added comment to your PR.

---

<div class="post-metadata">

### Author: ![trobiyo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/trobiyo/32/311872_2.png) [@trobiyo](https://meta.discourse.org/u/trobiyo)
#### Post date: [19 Luglio 2018, 6:32pm UTC](https://meta.discourse.org/t/trading-buttons/71308/18 "2018-07-19T18:32:08Z")

</div>

Yes, totally agree, I did not try it out from a clean environment, so maybe that affected the value of some variables after trying and error. I will try it again then.

Many thanks for letting me know.

Cheers,  
Ismael

---

<div class="post-metadata">

### Author: ![Janno\_Liivak](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/janno_liivak/32/352215_2.png) [@Janno\_Liivak](https://meta.discourse.org/u/Janno_Liivak)
#### Post date: [21 Luglio 2018, 7:51pm UTC](https://meta.discourse.org/t/trading-buttons/71308/19 "2018-07-21T19:51:52Z")

</div>

Thank you, @trobiyo for a fix and Spanish translation 🙇‍♂️ 👍

---

<div class="post-metadata">

### Author: ![j\_assuncao](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j_assuncao/32/119559_2.png) [@j\_assuncao](https://meta.discourse.org/u/j_assuncao)
#### Post date: [11 Settembre 2018, 2:19am UTC](https://meta.discourse.org/t/trading-buttons/71308/20 "2018-09-11T02:19:18Z")

</div>

How can I contribute with a Portuguese translation?

[Pagina seguente](https://meta.discourse.org/t/trading-buttons/71308.md?page=2)
