ZEN BUTTON CONSTRUCTION KIT


Written by Oliver Gumtau
http://www.mediakitchen.de

See the running online demo / button creation service tool here:
http://zen-bck.mediakitchen.de/



PURPOSE & AIM

To automatically create all shop buttons in one go by utilizing a button text file and button templates, for several languages if necessary.



FEATURES

Version 1.6.4

Version 1.6.3

Version 1.6.2

Version 1.6

Version 1.5.3

Version 1.5

Version 1.0


REQUIREMENTS


INSTALLATION

Additional hints: Edit the button texts in the file 'zen_bck/includes/zen_bck_configure.php' if required, add further definitions for custom buttons or even add another language if there is need to. Define the button size version used for each button in the section 'button size definitions' of the file 'zen_bck/includes/zen_bck_configure.php'. Attention: the default definitions of this kit are based on the rationale behind the button set 'Dark Gray Aqua Buttons' by Jade True, which uses the 'small' version for most of the buttons and the big version for some 'eye catcher' buttons like 'Buy Now' and 'Add To Cart'. If you don't want that simply redefine the button size definitions.

Hints for the icon overlay feature: the icons are located in the folder 'zen_bck/images/icons'. You can change the images assigned to a certain button by editing the file 'zen_bck/includes/zen_bck_configure.php' in the section 'button icon defintions', specify the image's file name here. If you don't want to display an icon on a certain button just leave the string empty (''). The layout setting 'Icon space' in the form should define the space between the button text and the icon. You might have to center the overall result horizontally with the general x offsets again. 'Icon offset y' is for fine tuning the icon y position against the button/text. As the colors of the icons might not match your current button template you are always able to switch the icon feature off. Then you get the plain text buttons again. You should also switch them off in case the icons are too big for the buttons, this will go for the 'stylish_arrow' button templates or maybe other smaller sized templates provided by you. We do not scale the icon images down as they will look blurry and are optimized to look best with the current size. You can still deactivate the icons for all the small buttons for example by setting the respective icon definitions in the file 'zen_bck/includes/zen_bck_configure.php' to an empty string (''). Please take note that the text effects like drop shadow and outline will not affect the icons at all.

You can add your own button templates too. Just create a new folder with your template's name in the folder 'templates'. Put two PNG files into it, one for the big button version named 'btn_big.png', another one named 'btn_small.png' for the small version. Both should utilize PNG transparency to allow for all kinds of shop background colors. Place a copy of a file 'tpl_definitions.php' from another template into your template folder. Adjust the values to suit your button images: The variables '..._left_wd' and '..._right_wd' define the width of the end cap sections. These image sections will be copied to the target image without being stretched, so curved end caps for example won't get distorted. The remaining middle section is streched horizontally to fit the final button width based on the current text length, i.e. the middle section should be absolutely uniform in horizontal direction and be suited for that kind of operation. The distance from the end caps to the left and right end of the text should be mostly the same to achieve correct text centering. There are offset parameters to correct the automatic centering, as for example the actual button isn't always in the (vertical) middle of the image, especially when things like drop shadows behind the button were used. The border parameter defines how much space is placed between the left and right edge of the text and the end caps, this space gets filled with stretched middle section image content as well. You can additionally correct the offsets anytime with the form selections.

Additional design tip for creating your own templates: Of course the two button versions 'big' and 'small' don't actually have to differ in size. You might as well use this system to create 'hilited' versions for special 'action buttons', like 'buy now'.


OUTLOOK

CREDITS & HISTORY

This tool is based on the class 'Zen Buttons 1.0' by Rainer Langheiter (http://rainer.langheiter.com // www.FiloSoFisch.com) from 9th of July 2004, which featured automatic button creation based on a language definition file, using 2 button images with fixed width.

Further credits go to Mark Kahn for his marvellous tutorial "How to Create a Color Picker in JavaScript". ( http://www.webreference.com/programming/javascript/mk/column3/index.html )

A big thank you to Mark James for his beautiful, professionally looking "Silk" icon set used here. ( http://www.famfamfam.com/lab/icons/silk/ )


LICENSE

The Zen-Cart community has given me a lot, so I want to give something back: Zen Button Construction Kit is published as freeware and open source. You are allowed to use this tool for your private or commercial website, i.e. to create the buttons for your online shop. You are not allowed to distribute this development - neither in its existing nor in a modified form - in any package that aims for commercial profit though. You are not allowed to use this tool on public websites that advertise your services. I hope this little tool helped to make your life a bit easier. If you agree with that or want to encourage further development and support you might consider a small donation via PayPal to my email address og@mediakitchen.de. Thank you.