交易按钮

Can you make a pull request? You should add client and server files under config/locales.

2 个赞

Thank you @j_assuncao for the Portugese translation and GitHub user przemyslawwilde for the Polish translation (don’t know your Meta username :smiley:)

4 个赞

Hi, I can’t get seem to get this plugin to work. I’ve followed the instructions, installed it and enabled it, and turned the Sold etc. buttons on for a new “Classifieds” category. However, I can’t see the buttons anywhere when I create a new topic. New topics display with no buttons.

We’re using Discourse 2.2.0.beta9+29. discourse-topic-trade-buttons 3157f19.

Have you tried to restart the app after enabling the plugin and after enabling category buttons?

You mean restart Discourse? No, but I’ll give that a try and report back. Thanks!

1 个赞

Yup, that did it. Thanks again!

2 个赞

How can we add more buttons? Our classified category have a deal section . We want a expired button when a deal is no longer available.

There’s no way to add buttons dynamically. As you can read from plugin descriptions, trading buttons will archive the topic and people can no longer edit or comment. Also prefix (e.g “[SOLD]” or “[CANCELLED]”) is also a good indicator that topic is no longer valid.

I’m curious… who will push that button? What is the nature of “deal section”? What are “deals” exactly?

Example : A store can be selling a product at a reduced price for a limited time so any user can copy the link to the product on our Deals category on our discourse forum . When the deal expire a simple Expired button would archive the topic and add Expired in front of the title .

I’m confused, what does that have to do with a plugin that’s aimed at members trading between themselves?

You’re talking about promoting links and maybe discount codes. Discourse already supports sharing links (title field) and tags could be used to indicate when a post is not longer relevant.

2 个赞

A plugin can have a specific job but that doesn’t mean that’s the only job it can do. Anyway I modified the code,this is what I wanted :

Thank you @Janno_Liivak for the plugin .

2 个赞

It seems that you just wanted to use a general term … expired is just sold and cancelled put together. In my forum it was kind of important to know if person sold or just cancelled (gives a little bit more information to potential buyers… and more information to moderators, as all trading topics were moved under the archieve category where only market-moderators could still see them). But if modified project fits you needs… you ‘re welcome :slight_smile:

我们需要输入价格吗?我们有搜索价格的菜单吗?谢谢?

你好!插入价格以及按价格搜索/筛选并非本插件的功能,抱歉。

1 个赞

你好 @Janno_Liivak

升级到 Discourse 2.4.0.beta8 后,Trading Buttons 插件消失了。它仍然存在于 app.yml 中,但在我们网站的“常规”Discourse 界面和管理界面中都找不到任何踪迹。事实上,原本为该插件指定的整个分类也从界面中消失了。

请问这可能是什么原因?有什么办法可以将该分类和插件恢复吗?

谢谢!
Gunnar

嗨!你试过禁用再启用插件(中间重启一下)吗?你在使用其他插件吗?那些插件也消失了吗?

您的意思是重启 Discourse 容器,还是重新构建 Discourse?

我们还有一些其他插件,它们似乎都运行正常。

谢谢!

我本意只是想重启 Discourse,而不是重新构建。如果这不起作用,我会进一步调查……不过这是一个测试版构建:吐舌头

不管怎样……我自己还没试过这个版本的 Discourse……我会看一下。

我会尝试重启,然后告诉你结果。谢谢!

我并没有在 Docker 容器中运行 v2.4.0.beta8 版本……但我确实将我的开发者版本切换到了该测试版,一切运行正常。销售类别依然存在,带有交易按钮的主题也都在。你确定是不是不小心以某种方式隐藏了该类别……也许只是把它从主页移除了,或者移到了另一个类别里面?又或者它的文字颜色与背景色相同?:slight_smile: 抱歉……开了个糟糕的玩笑。

说实话,我不知道插件或类别是如何消失的。也许 Discourse 开发团队中有人能提供一些思路?插件问题会导致整个类别消失吗?

@Gunnar,你的 Discourse 日志中是否有提到 discourse-topic-trade-buttons 或类似内容的错误信息?