I present the discourse-raptorize plugin

(cosban) #1

Good day to everyone,

Users of my forum had brought it to my attention that my install did not have enough features. To quell their complaints, I decided to go forth and give them something exciting that they would not know what to do with.

I present you with the discourse-raptorize plugin

For all those times when you… just need a raptor to fly across your screen.


Installation is standard for the most part. Being that this is my first discourse plugin, and ultimately an experiment to begin with, some extra steps may be required. Do the following:

cd plugins
git clone https://github.com/Cosban/discourse-raptorize.git
cd ..
RAILS_ENV=production rake assets:precompile

If you are more interested in rainbows, replace the git clone command with the following:

git clone https://github.com/Cosban/discourse-raptorize.git -b rainbows

For those of you using the discourse docker manager, add the plugin’s git clone url inside your app.yml where your other plugins are:

    - exec:
        cd: $home/plugins
          - mkdir -p plugins
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/Cosban/discourse-raptorize.git

Rebuild the docker containter:

cd /var/discourse
./launcher rebuild app

Once either of these steps are complete, you will need to add the following to your header or footer.

<p class="raptor">Your footer goes here</p>
<script type="text/javascript">
  $(window).load(function() {

It should be noted that you really just need an element to be of the class “raptor”, plus the bit of javascript, for it to work.


Activating the raptor is simple as well, users just need to enter in the konami cheat code from anywhere on the site (↑ ↑ ↓ ↓ ← → ← → B A)

Please take all bug reports and pull requests to my github page or notify me in this topic.

(Jeff Atwood) #2

Would prefer rainbow. Because Discourse is a system of rainbows.

(cosban) #3

There may or may not be a new branch in the works for this now >.>

(cosban) #4

For those of you interested in rainbows, please clone from my rainbow branch (I’ll be updating the original post as well).

git clone https://github.com:Cosban/discourse-raptorize.git -b rainbows

I don’t think this is what you might have expected…

(Sam Saffron) #5

@cosban to celebrate our new theme system release perhaps you can make a raptor #plugin:theme component