Official Discourse Advertising Plugin. Install & Start Serving Ads on Your Discourse Forum
Go to file
vi 21362c7632 Transfer files from Discourse plugin to here 2015-07-24 14:01:47 +10:00
assets/javascripts/discourse Transfer files from Discourse plugin to here 2015-07-24 14:01:47 +10:00
auto_generated Transfer files from Discourse plugin to here 2015-07-24 14:01:47 +10:00
config Transfer files from Discourse plugin to here 2015-07-24 14:01:47 +10:00
README.md Transfer files from Discourse plugin to here 2015-07-24 14:01:47 +10:00
plugin.rb Transfer files from Discourse plugin to here 2015-07-24 14:01:47 +10:00

README.md

Discourse-Adplugin

Ad plugin for Discourse forum.

Installation

  • Supported Discourse version: v1.4

Non-docker installation

  • Run bundle exec rake plugin:install repo=http://github.com/team-melbourne-rgsoc2015/discourse-adplugin 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

Docker installation

As seen in a how-to on meta.discourse.org, simply 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/team-melbourne-rgsoc2015/discourse-adplugin.git
  • Rebuild the container
cd /var/docker
git pull
./launcher rebuild app

Usage

  • Go to Admin > Settings > Ad Plugin
  • Add DFP link into code boxes, input width and height based on Google Ad Ad units
  • If you wish to disable the ad, tick ad disabling box

Ad Providers Supported

  • Google DFP

License

GPL v2

TO-DO:

  • Publisher ID support
  • Add size restrictions in ad slot inventory + size input fields
  • Trust levels
  • More ad providers