Zen Follower
- Join Date:
- Jun 2010
- Location:
- The great midwest... Well, okay, it's not so great, but I'm stuck here!
- Posts:
- 218
- Plugin Contributions:
- 0
followed instructions for installing slimbox, but having a problem with the last step
I unzipped and installed slimbox according to their readme file - when i got to the last step, it told me to tell zencart that the mod has been installed. go to tools/install sql patches - then open the slimbox_install.sql file and copy and paste the text into the big box and hit send. So I did that and here's what it shows.
If I'm understanding correctly it doesn't want me to install it this way, it wants me to put it in the new zc_install folder.
oh boy, here i go again. i'm such a newbie, but i finally got image handler 2 working and now i have this problem. can someone explain in simple terms what i need to do. thanks so much for the help.
here's my site and i'll post what was rendered after i pasted in the information and hit send.
http://redkapworkwear.com/testsetup
SQL Query Executor
BE SURE TO DO A FULL DATABASE BACKUP BEFORE RUNNING SCRIPTS HERE
If you are installing 3rd-party contributions, note that you do so at your own risk.
Zen Cart™ makes no warranty as to the safety of scripts supplied by 3rd-party contributors. Test before using on your live database!
Query Results:
/** * Fual Slimbox for Zen v0.1.5 * * @author Brian Tyler ([email protected]) * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: slimbox_install.txt 2008-01-13 btyler $ */ SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4 FROM zen_configuration_group WHERE configuration_group_title= 'Fual Slimbox';
DELETE FROM zen_configuration WHERE configuration_group_id = @t4;
DELETE FROM zen_configuration_group WHERE configuration_group_id = @t4;
INSERT INTO zen_configuration_group VALUES (NULL, 'Fual Slimbox', 'Configure Slimbox options', '1', '1');
UPDATE zen_configuration_group SET sort_order = last_insert_id() WHERE configuration_group_id = last_insert_id();
SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4 FROM zen_configuration_group WHERE configuration_group_title= 'Fual Slimbox';
INSERT INTO zen_configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Enable Fual Slimbox?', 'FUAL_SLIMBOX', 'true', '
If true, all product images on the following pages will be displayed within a lightbox:
- document_general_info
- document_product_info
- product_free_shipping_info
- product_info
- product_music_info
- product_reviews
- product_reviews_info
- product_reviews_write
Please note: To completely remove Fual Slimbox please see the documentation provided.
Zen Lightbox overrides this when installed. This means that if you have the ZL mod and Slimbox, Slimbox will do nothing. I have done this specifically to stop people messing their installations up. I have provided a modified version of ZL for ZL users, unfortunately switching ZL off doesnt really switch it off (all the javascript is still loaded), the modified version actually switches ZL off when you switch it off.
The big advantage of Slimbox over lightbox is that it takes only 30kb of javasript rather than well over 100kb for lightbox
Unlike (Zen) Lightbox the Slimbox is completely generated using CSS, so any tweeks that you want to make to the look can be made from the CSS file.
Props to: Christophe Beyls for writing Slimbox, Yukio Arita for extending it to work with iframes (this is the extended version so you can put whole webpages in the Slimbox, dont get carried away though!) and Alex Clarke for the original ZL plugin which inspired me to write this.
Default: true
', @t4, 1, NOW(), NOW(), NULL, 'zen_cfg_select_option( array(''true'', ''false''), '), (NULL, 'Paranoia Mode', 'FUAL_SLIMBOX_NERVOUS', '1', '
Controls whether to wait until the DOM loads to display the image. This stops the problem of being redirected to the image rather than displaying the image in the lightbox if a user with a slow connection clicks on the image before the slimbox script has been initialised.
0 = Relaxed: Dont wait until the DOM loads.
1 = Conservative: Waits until the DOM has loaded to make the image visible.
2 = Funky: Waits until the DOM has loaded to reveal the image with a funky transition. Depending on your template this may cause problems in IE6, so if you want to use the funky transition please test it in older browsers before going live.
Default: 1 (Conservative)
', @t4, 10, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''0'', ''1'', ''2''), '), (NULL, 'Safe Navigation', 'FUAL_SLIMBOX_DISPLAY_VAR', 'true', '
With safe navigation enabled the Next and Prev links are displayed permenantly in the lightbox when there are additional images to display. Safe Navigation is recommended because without it the navigation links fail to show in IE6.
Default: true
', @t4, 15, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '), (NULL, 'Page of Text', 'FUAL_SLIMBOX_PAGEOF', 'Page #1 of #2', '
Sets the "Page #1 of #2" text when there is more than one image.
The text is replaced with a regular expression: #1 is the number of the current page, #2 is the total number of pages.
Examples:
Page #1 of #2 - default English
Page #1 (of #2) - variation English
Pagina #1 di #2 - Itallian
Default: Page #1 of #2
', @t4, 17, NOW(), NOW(), NULL, NULL), (NULL, 'Transition Duration', 'FUAL_SLIMBOX_DURATION', '800', '
Controls the duration of the transition in milliseconds. (note that 1000 milliseconds = 1 second, so the default value of 800 is just under a second)
Default: 800
', @t4, 20, NOW(), NOW(), NULL, NULL), (NULL, 'Transition Type', 'FUAL_SLIMBOX_TRANSITION_TYPE', 'Sine', '
Controls the type of the transition. See Mootools for what the options mean.
Default: Sine
', @t4, 30, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''linear'', ''Quad'', ''Cubic'', ''Quart'', ''Quint'', ''Expo'', ''Circ'', ''Sine'', ''Back'', ''Bounce'', ''Elastic''), '), (NULL, 'Transition Ease', 'FUAL_SLIMBOX_EASE', 'easeInOut', '
Controls the easing of the transition. See Mootools for what the options mean.
Default: easeInOut
', @t4, 40, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''easeIn'', ''easeOut'', ''easeInOut''), '), (NULL, 'Transition Amplitude', 'FUAL_SLIMBOX_AMPLITUDE', '5', '
Controls the amplitude of the transition.
Default: 5
', @t4, 50, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''1'', ''2'', ''3'',''4'',''5'',''6'',''7'',''8'',''9''), '), (NULL, 'FPS', 'FUAL_SLIMBOX_FPS', '60', '
Controls the frames per second of the motion.
Should be an integer value between 1 - 200.
Default: 60
', @t4, 60, NOW(), NOW(), NULL, NULL), (NULL, 'Width', 'FUAL_SLIMBOX_WIDTH', '400', '
Controls the initial width of the lightbox.
Default: 400
', @t4, 70, NOW(), NOW(), NULL, NULL), (NULL, 'Height', 'FUAL_SLIMBOX_HEIGHT', '300', '
Controls the initial height of the lightbox. Have a play!
Default: 300
', @t4, 80, NOW(), NOW(), NULL, NULL), (NULL, 'iFrame Width', 'FUAL_SLIMBOX_IWIDTH', '500', '
Controls the initial width of the lightbox when it contains an iFrame. Have a play!
Default: 500
', @t4, 90, NOW(), NOW(), NULL, NULL), (NULL, 'iFrame Height', 'FUAL_SLIMBOX_IHEIGHT', '300', '
Controls the initial width of the lightbox when it contains an iFrame. Have a play!
Default: 300
', @t4, 100, NOW(), NOW(), NULL, NULL), (NULL, 'Animate Caption', 'FUAL_SLIMBOX_CAPTION', 'true', '
Animates the caption. Have a play!
Default: true
', @t4, 110, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '), (NULL, 'Class to Hide', 'FUAL_SLIMBOX_HIDE_ME', 'zenLightboxHideMe', '
Any content wrapped in with this class will be hidden when the lightbox is displayed (this extends the behaviour of Zen Lightbox which only hides DIV tags).
Default: zenLightboxHideMe (This coincides with the Zen Lightbox default class.)
', @t4, 120, NOW(), NOW(), NULL, NULL);
Enter the query
to be executed:
Be sure to
end with ;
NOTE: Zen Cart database-upgrade scripts should NOT be run from this page.
Please upload the new zc_install folder and run the upgrade from there instead for better reliability.
I DID IT, I actually built a working cart, with the help of so many of you, Stevesh, Schoolboy, RescoCCC, to name a few. I just take one bite out of the elephant at a time and try to keep my sense of humor...