The MO Button module was created by Made to Order Software Corporation. It is used to dynamically add real nice buttons to your pages.
MO Button has no special requirements from any other Drupal modules.
MO Button requires graphics drawn in a very specific way so it works. The buttons are cut in 8 pieces and one background. It can also use one or two icons (optional). At this time it supports the following images in alphabetical order:
Note that the extension is not specified since you are welcome to use any format (i.e. GIF, JPEG, TIFF, PNG, and any other format supported by browsers.)
By default, those images are expected to be found under sites/<domain>/files/mo_button/<button_name>/*.*
<domain> is default on single installations. It is the domain name of your site on a multi-site installation.
<button_name> is any name you'd like to use. It is used and shown by the module and as such cannot include space characters. Our default button is named 'm2osw' which is offered with the module as an example of a button you can use.
We have more documentation on our website that describes the graphical aspect of the buttons in order for you to know how to draw & cut your own buttons. It is simple, but it requires a specific way of thinking that most graphics people are not used to.
http://new.m2osw.com/how_to_create_an_mo_button
In order to install this module:
It is VERY important that you put the MO Button filter at the right place in your list of filters. There are several problems as follow:
Note that security was put in place to ensure properly, valid data is accepted and code representing possible XSS attacks automatically removed. Therefore you do not need to run the HTML Filter against the output of this filter.
This module is expected to be used by any user. The content of the button is well under control of the module and the title label will be checked for only allowed tags and tag parameters. In fact, the style parameters will always be removed.
The administration screens are protected by a permission flag that you have to select in order for other users to access. Note that the button edit is safe but not the global settings which would allow someone to change the path to the buttons.
Fixed the location in the area around the anchor.
Fixed the vertical positioning of the left and right icons.
Changed the <span> around the table in a <div> and changed the CSS so it works as expected (i.e. the <div> acts just like a <span>.)
First working version.
This module may generate errors whenever the tag syntax cannot be interpreted properly. At this time, it simply returns the standard link instead of the button.
A very specific set of images is required for any button to work. If one or more is missing, the module generates an error with the name of each of the missing image.
http://www.m2osw.com/mo_button contact@m2osw.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.