Community Add-Ons
Infobox Skin Manager
for osCommerce Online Merchant v2.2
This contribution allows you to easily change the look of your infoboxes by "wrapping" them in a sliced up graphic. All you have to do is draw one infobox template, save it as a JPEG, upload it and the script does the rest!
A small library of example infobox skins is included with this contrib to get you started.
You must have gdlib2 installed on your server for this script to work.
In "Infobox Skin Manager v2.0", the following archive is uncomplete: infobox_skins_upgraders_only.sql
I give you a complete one here
Now you can see all Skins with this.
Update v2.0a for Infobox Skin Manager to apply on v2.0 (1 jan 2004)
catalog/includes/classes/boxes.php:
- Solved a problem with bad display of popup windows.
- Changed the 10 If..Then by 2 lines of code.
Categories and manufacturers boxes will not display correctly if you use the cache option.
open catalog/includes/functions/cache.php, find function tep_cache_categories_box and add $skin_slice_set as global parameter.
I do not know how to operate with MySQL. I need help....actually i need a good description how to add this:
Now Do the MySQL Stuff
-------------------
If this is the first time you have installed this contrib use the infobox_skins.sql file to
make the necessary entries in your MySQL database.
If you had the previous version of Infobox Skin Manager installed then you should use the
supplied infobox_skins_upgraders_only.sql file to add the required new MySQL database entries.
-------------------------------------
INSERT INTO configuration_group VALUES (6543, 'Infobox Skins', 'Infobox Skinning Options', 28, 1);
INSERT INTO configuration VALUES ('', 'Slice Set for Left Column', 'COLUMN_LEFT_SLICE_SET', '8', 'Slice Set for Left Column', 6543, NULL, '2003-12-22 10:55:04', '0000-00-00 00:00:00', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Main Content Skin Set', 'MAIN_CONTENT_SLICE_SET', '9', 'Page Main Content Skin Set', 6543, NULL, '2003-12-22 16:03:33', '0000-00-00 00:00:00', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Slice Set for Right Column', 'COLUMN_RIGHT_SLICE_SET', '8', 'Slice Set for Right Column', 6543, NULL, '2003-12-22 16:10:37', '0000-00-00 00:00:00', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Enable Infobox Skin?', 'SKIN_INFOBOX_ACTIVE', 'true', 'Use skins on your infoboxes?', 6543, 1, '2003-12-24 16:34:40', '0000-00-00 00:00:00', NULL, 'tep_cfg_select_option(array('true', 'false'),');
INSERT INTO configuration VALUES ('', 'Infobox Skin Background Colour 1', 'INFOBOX_SKIN_BGCOL1', 'ffffff', 'Set the colour of the background for middle cell of slice set 2', 6543, 2, '2003-12-13 20:58:50', '0000-00-00 00:00:00', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Infobox Skin Background Colour 2', 'INFOBOX_SKIN_BGCOL2', 'ffffff', 'Set the colour of the background for middle cell of slice set 2', 6543, 2, '2003-12-13 20:58:50', '0000-00-00 00:00:00', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Infobox Skin Background Colour 3', 'INFOBOX_SKIN_BGCOL3', 'ffffff', 'Set the colour of the background for middle cell of slice set 3', 6543, 2, '2003-12-13 21:02:48', '0000-00-00 00:00:00', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Infobox Skin Background Colour 4', 'INFOBOX_SKIN_BGCOL4', '6ebce2', 'Set the colour of the background for middle cell of slice set 4', 6543, 2, '2003-12-13 21:02:12', '0000-00-00 00:00:00', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Infobox Skin Background Colour 5', 'INFOBOX_SKIN_BGCOL5', '6ebce2', 'Set the colour of the background for middle cell of slice set 5', 6543, 2, '2003-12-13 21:01:57', '0000-00-00 00:00:00', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Infobox Skin Background Colour 6', 'INFOBOX_SKIN_BGCOL6', 'd5fffe', 'Set the colour of the background for middle cell of slice set 6', 6543, 2, '2003-12-13 21:01:43', '0000-00-00 00:00:00', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Infobox Skin Background Colour 7', 'INFOBOX_SKIN_BGCOL7', 'ffffff', 'Set the colour of the background for middle cell of slice set 7', 6543, 2, '2003-11-19 12:51:10', '0000-00-00 00:00:00', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Infobox Skin Background Colour 8', 'INFOBOX_SKIN_BGCOL8', '6fe0ff', 'Set the colour of the background for middle cell of slice set 8', 6543, 2, '2003-11-19 12:51:10', '0000-00-00 00:00:00', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Infobox Skin Background Colour 9', 'INFOBOX_SKIN_BGCOL9', 'ffc875', 'Set the colour of the background for middle cell of slice set 9', 6543, 2, '2003-11-19 12:51:10', '0000-00-00 00:00:00', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Infobox Skin Background Colour 10', 'INFOBOX_SKIN_BGCOL10', '7ca9fe', 'Set the colour of the background for middle cell of slice set 10', 6543, 2, '2003-12-13 21:01:04', '0000-00-00 00:00:00', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Slice Set for Header Navigation', 'INFOBOX_HEADERNAV_SLICE_SET', '6', 'Slice set to use for Header Navigation', 6543, NULL, '2003-12-14 10:13:48', '0000-00-00 00:00:00', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Header Navigation height in pixels', 'INFOBOX_HEADERNAV_HEIGHT', '23', 'Header Navigation height in pixels', 6543, NULL, '2003-12-29 13:05:11', '0000-00-00 00:00:00', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Slice Set to use for Footer Navigation', 'INFOBOX_FOOTER_SLICE_SET', '6', 'Slice Set to use for Footer Navigation', 6543, NULL, '2003-12-14 10:16:20', '0000-00-00 00:00:00', NULL, NULL);
INSERT INTO configuration VALUES ('', 'Footer height in pixels', 'INFOBOX_FOOTER_HEIGHT', '23', 'Footer Height in pixels', 6543, NULL, '2003-12-14 10:17:11', '0000-00-00 00:00:00', NULL, NULL);
CREATE TABLE skins (
skin_id int(11) NOT NULL auto_increment,
skin_name varchar(50) NOT NULL default '',
left_margin int(11) NOT NULL default '0',
right_margin int(11) NOT NULL default '0',
top_margin int(11) NOT NULL default '0',
bottom_margin int(11) NOT NULL default '0',
skin_filename varchar(50) NOT NULL default '',
PRIMARY KEY (skin_id)
) TYPE=MyISAM;
INSERT INTO skins VALUES ('', 'Orange Gradient', 5, 5, 25, 5, 'orange_gradient.jpg');
INSERT INTO skins VALUES ('', 'Smooth Silver', 50, 30, 30, 30, 'infobox_idea_1 copy.jpg');
INSERT INTO skins VALUES ('', 'Pure and Simple', 20, 20, 19, 15, 'plain_purple.jpg');
INSERT INTO skins VALUES ('', 'Blue Glow', 29, 29, 40, 40, 'blue_glow copy.jpg');
INSERT INTO skins VALUES ('', 'Blue Emboss', 5, 20, 30, 10, 'blue_emboss.jpg');
INSERT INTO skins VALUES ('', 'Plain Cream', 10, 10, 10, 10, 'plain_cream.jpg');
INSERT INTO skins VALUES ('', 'Yellow Shine', 10, 10, 30, 10, 'yellow_shine.jpg');
INSERT INTO skins VALUES ('', 'Yellow Boxed', 0, 0, 0, 0, 'yellow_boxed.jpg');
INSERT INTO skins VALUES ('', 'Stock osC Gray', 10, 10, 30, 10, 'stock_gray.jpg');
INSERT INTO skins VALUES ('', 'Blue Diamond', 20, 20, 23, 10, 'Blue Diamond.jpg');
INSERT INTO skins VALUES ('', 'Beige Diamond', 20, 20, 23, 10, 'beige_diamond.jpg');
INSERT INTO skins VALUES ('', 'Squares', 30, 30, 30, 30, 'squares.jpg');
INSERT INTO skins VALUES ('', 'Orange Plain', 10, 10, 15, 30, 'orange_plain.jpg');
INSERT INTO skins VALUES ('', 'Blue Plain', 10, 10, 15, 30, 'blue_plain.jpg');
INSERT INTO skins VALUES ('', 'Flat Orange Blue', 3, 3, 30, 6, 'flat_or_blue.jpg');
INSERT INTO skins VALUES ('', 'Blue Shine', 10, 10, 20, 15, 'blue_shine.jpg');
INSERT INTO skins VALUES ('', 'Orange Mix', 30, 30, 35, 5, 'orange_mix.jpg');
CREATE TABLE skin_mapping (
filename varchar(100) NOT NULL default '',
slice_set_id int(11) NOT NULL default '0'
) TYPE=MyISAM;
The latest version of Infobox Skin Manager. Now you can skin each boxes individually with one of a library of 10 skin slice sets. Also, you can skin header, footer, left and right columns and even main page content with this one tool.
Changes in version 1.1:
* Included update to fix problem of colour of centre infobox cell not displaying correctly in browsers other than Internet Explorer
* Script updated to provide potential for skinning other boxes (e.g. What's New Box).
Upgrade, as well as full install instructions supplied.
This contribution allows you to easily change the look of your infoboxes by "wrapping" them in a sliced up graphic. All you have to do is draw one infobox template, save it as a JPEG, upload it and the script does the rest!
A small library of example infobox skins is included with this contrib to get you started.
You must have gdlib2 installed on your server for this script to work.
