# 交易按钮

**URL:** https://meta.discourse.org/t/trading-buttons/71308
**Category:** Plugin
**Created:** [2017年十月3日 11:01 UTC](https://meta.discourse.org/t/trading-buttons/71308 "2017-10-03T11:01:07Z")
**Posts on this page:** 1
**Showing post:** 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: [2017年十月3日 11:01 UTC](https://meta.discourse.org/t/trading-buttons/71308/1 "2017-10-03T11:01:07Z")

</div>

| | | |
| --- | --- | --- |
| ℹ | **摘要** | 此插件允许在主题标题上方显示交易按钮（购买、出售、交换）。 |
| 🛠 | **仓库链接** | [https://github.com/jannolii/discourse-topic-trade-buttons](https://github.com/jannolii/discourse-topic-trade-buttons) |
| 📖 | **安装指南** | [如何在 Discourse 中安装插件](https://meta.discourse.org/t/install-plugins-in-discourse/19157) |

我创建了一个简单的插件，允许在主题标题上方显示交易按钮。它仍需要单元测试，但作为一个简单的解决方案，适用于出售/购买/交换类型的分类。

启用插件后，在分类设置中允许相应的按钮：

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

每个主题都会在标题上方显示这些按钮（当然，您必须是该主题的所有者）：

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

点击按钮后，系统会提示您确认是否继续。如果确认继续，该主题将被归档，并根据您点击的按钮添加相应的前缀：

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

欢迎使用或分叉此插件。如果您是开发者并发现任何不正确的地方，请随时告诉我。😉

目前支持的翻译语言包括：

- 中文
- 丹麦语
- 德语
- 英语
- 西班牙语
- 芬兰语
- 法语
- 意大利语
- 波兰语
- 葡萄牙语
- 俄语

如果您希望添加翻译，请提交拉取请求，或者如果您想提供翻译但不懂编程，请直接联系我。

> **[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.

---

_[View the full topic](https://meta.discourse.org/t/trading-buttons/71308)._
