Add a button at the bottom of a topic, visible to everyone: discourse-custom-topic-button

official

(Arpit Jalan) #1

discourse-custom-topic-button

This plugin adds a custom button at the bottom of a topic, visible to everyone (who is logged in).

Configuration

From Admin > Site Settings > Plugin, modify

  • custom_topic_button_url
  • custom_topic_button_title
  • custom_topic_button_label

Installation

  • Add the plugin’s repo url to your container’s app.yml file
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - mkdir -p plugins
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/techAPJ/discourse-custom-topic-button.git
  • Rebuild the container
cd /var/discourse
git pull
./launcher rebuild app

Note: For button to be visible only to staff or members of a specific group, see:


Hook for extra buttons at the bottom of a post
Add a button at the bottom of a topic, visible to a specific group: discourse-topic-group-button
Sentence At the Bottom of Topic Page
(Admir Hodzic) #2

I did pull request , adding url parametrization

It is working on 2.0.0.beta9