This is a Discourse plugin. It is a modified version of the Discourse Solved plugin. It provides an endorse button on categories for instructor level users. This is for use in a school style discourse forum enabling instructors endorse a response to a question.
As seen in a how-to on meta.discourse.org, add this repository's git clone
url to your container's app.yml
file, at the bottom of the cmd
section:
hooks:
after_code:
- exec:
cd: $home/plugins
cmd:
- mkdir -p plugins
- git clone https://github.com/bolariin/discourse-instructor-endorsed.git
rebuild your container:
cd /var/discourse
git pull
./launcher rebuild app
- Run
bundle exec rake plugin:install repo=https://github.com/bolariin/discourse-instructor-endorsed.git
in your discourse directory - In development mode, run
bundle exec rake assets:clean
- In production, recompile your assets:
bundle exec rake assets:precompile
- Restart Discourse
- Clone the Discourse Instructor Endorsed Repo in a new local folder.
- Separately clone Discourse Forum in another local folder and install Discourse.
- In your terminal, go into Discourse folder navigate into the plugins folder. Example
cd ~/code/discourse/plugins
- Create a symlink in this folder by typing the following into your terminal
ln -s ~/whereever_your_cloned_ad_plugin_path_is .
For example: ln -s ~/discourse-plugin-test .
- You can now make changes in your locally held Discourse Response Bot folder and see the effect of your changes when your run
rails s
in your locally held Discourse Forum files.
-
For endorsement trust level, the admin is expected to put the minimum trust level of an instructor in the box
-
Using endorsed topics auto close hours, the admin can close a topic after a post has been endorsed. By typing an integer, n, greater than zero in the box, a topic can be closed n hours after a post has been endorsed.
-
There is an endorsed section in activities. It helps you keep track of posts you made that are endorsed by instructors
-
If you wish to allow instructors endorse in select categories, you can acheive this
MIT