- 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.
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
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
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