Git Product home page Git Product logo

spree-banners's Introduction

Spree banner management tool extension

Features

  • Allows you to create Ad Sets and randomly display on a page.
  • Banner naming
  • Assign Ad Set to a page
  • Providing a click-through url
  • Upload Ad Banners to the Ad Set complete with drag-and-drop order sorting.
  • Included is index.rxml to provide an xml feed of all banner data in the database if you need it, or individual banners using image.rxml

Note: Assigning a banner to a page requires spree-comatose, http://github.com/bcalloway/spree-comatose, to power the CMS.

Requirements

Spree-Comatose
http://github.com/bcalloway/spree-comatose

Imagemagick
http://www.imagemagick.org/script/index.php

Gems/Plugins

Paperclip, http://github.com/thoughtbot/paperclip/tree/master
Rmagick, http://rmagick.rubyforge.org

How to Install

Place the banner extension in vendor/extensions/


  git://github.com/bcalloway/spree-banners.git vendor/extensions/banners

Run the migration of the Banner extension


rake spree:extensions:banners:update
rake db:migrate

Notes

Be sure to vendor Paperclip in environment.rb


config.gem 'thoughtbot-paperclip',
           :lib => 'paperclip',
           :source => 'http://gems.github.com'

By default, the tool picks an Ad Set and their associated Ad Banners at random, based on the page assigned.

To place a single 300×250 banner on a page, call the show_banners helper, passing the position and number of banners to display:


  = show_banners("sidebar", 1)

To place smaller 158×90 sponsor banners:


  = show_banners("footer", 4)

Copyright © 2010 Brandon Calloway, released under the MIT License

spree-banners's People

Watchers

Brandon Calloway avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.