Кнопки торговли

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, ни в административной панели нашего сайта. Более того, вся категория, предназначенная для использования с этим плагином, также пропала из интерфейса.

Есть ли какие-то идеи, почему это произошло, и что можно сделать, чтобы вернуть и категорию, и плагин?

Спасибо!
Гуннар

Привет! Пробовали ли вы отключить и снова включить плагин (с перезапуском между этими действиями)? Используете ли вы какие-либо другие плагины? Исчезли ли они тоже?

Вы имеете в виду перезапуск контейнера Discourse или полную пересборку Discourse?

У нас есть и другие плагины, и они все работают нормально.

Спасибо!

Я собирался просто перезапустить Discourse, а не пересобирать. Если это не поможет, я разберусь… хотя это бета-версия :stuck_out_tongue:

В любом случае… я сам не пробовал эту версию Discourse… взгляну на неё.

Попробую перезапустить и сообщу, что получится. Спасибо!

У меня нет Docker-контейнера с версией v2.4.0.beta8, но я переключил свою версию для разработчиков на эту бету, и всё работало отлично. Категория «Продажи» всё ещё присутствовала, как и темы с кнопками для торговли. Вы уверены, что случайно не скрыли категорию каким-то образом? Возможно, вы просто убрали её с главной страницы или поместили внутрь другой категории. Или, может быть, цвет текста совпадает с цветом фона? :slight_smile: Извините, плохие шутки.

Честно говоря, я не знаю, как плагин или категория могли исчезнуть. Может быть, кто-то из команды разработки Discourse сможет подсказать? Может ли проблема с плагином скрыть всю категорию?

@Gunnar, есть ли у вас в логах Discourse какие-либо сообщения об ошибках, касающиеся discourse-topic-trade-buttons или чего-то подобного?