Page 1 of 2 12 LastLast
Results 1 to 10 of 3727

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Posts
    285
    Plugin Contributions
    5

    Default Re: Zen Lightbox...

    Quote Originally Posted by kobra8 View Post
    The part in red is:
    define('DB_PREFIX', 'zen_');
    Did you copy and paste the install script into zc admin or use the upload button?

    Other users have had better luck with copy/paste.

  2. #2
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Zen Lightbox...

    Quote Originally Posted by niestudio View Post
    Did you copy and paste the install script into zc admin or use the upload button?

    Other users have had better luck with copy/paste.
    I NEVER use upload.. Only copy/paste.. Works every time..

    Quote Originally Posted by DarkAngel View Post
    you need to change the sql installation file to have that as part of the coding for it to work or go to myphpadmin for installing directly into the database if you can't get it to work in admin of store
    Should be NO reason why anyone would need to manually modify this script and run it in phpAdmin.. That said making the changes you suggest will only work if you run if you are running the script in phpAdmin.. If you add the prefix as you suggest and run the script in the store admin, the script will fail or cause errors.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  3. #3
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Quote Originally Posted by DivaVocals View Post
    I NEVER use upload.. Only copy/paste.. Works every time..



    Should be NO reason why anyone would need to manually modify this script and run it in phpAdmin.. That said making the changes you suggest will only work if you run if you are running the script in phpAdmin.. If you add the prefix as you suggest and run the script in the store admin, the script will fail or cause errors.

    Thanks Diva I totally forgot to add that bit of information..sorry

  4. #4
    Join Date
    Mar 2009
    Location
    Serbia
    Posts
    349
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Quote Originally Posted by niestudio View Post
    Did you copy and paste the install script into zc admin or use the upload button?

    Other users have had better luck with copy/paste.
    I have copy and paste the install script into zc admin.

  5. #5

    Default Re: Zen Lightbox...

    I had the problem with failed sql upload when installing from version 1.5 to 1.6, so think about doing an UNINSTALL from 1.5 using the uninstall.sql before you do install v1.6.

    that being said, i have a question: in v1.6 the label images are now under /images and only available in english. i have the labels in french and german in the /templates/MY_TEMPLATE_NAME, but that is not helping - in the french or german version, i still see the close/previous/next labels in english.
    Any hint to how to fix this?

    thanks a bunch!

  6. #6
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    984
    Plugin Contributions
    6

    Default Re: Zen Lightbox buttons

    Further to http://www.zen-cart.com/forum/showpo...postcount=2703

    here is my solution to move the Prev/Next buttons clear above image and then restore truncated bottom of image.

    includes\classes\zen_lightbox\autoload_default.php
    Line 23 was

    <?php if (ZEN_LIGHTBOX_CLOSE_IMAGE == 'true' || ZEN_LIGHTBOX_PREV_NEXT == 'true') { echo '<style> #lbPrevLink, #lbNextLink {display: block; position: absolute; top: 0; width: 63px; height:32px!important; outline: none;} #lbNextLink {right: 0; background: transparent url(images/zen_lightbox/nextlabel.gif) no-repeat 100% 15%;} #lbPrevLink {left: 0; background: transparent url(images/zen_lightbox/prevlabel.gif) no-repeat 0 15%; } </style>';}?>

    now (note the minus sign)

    <?php if (ZEN_LIGHTBOX_CLOSE_IMAGE == 'true' || ZEN_LIGHTBOX_PREV_NEXT == 'true') { echo '<style> #lbPrevLink, #lbNextLink {display: block; position: absolute; top: -32px; width: 63px; height:32px!important; outline: none;} #lbNextLink {right: 0; background: transparent url(images/zen_lightbox/nextlabel.gif) no-repeat 100% 15%;} #lbPrevLink {left: 0; background: transparent url(images/zen_lightbox/prevlabel.gif) no-repeat 0 15%; } </style>';}?>


    includes\templates\YourTemplate\css\stylesheet_zen_lightbox.css
    was

    #lbImage {
    position: absolute;
    left: 0;
    top: 0;
    border: 10px solid #fff;
    background-repeat: no-repeat;
    }

    #lbPrevLink, #lbNextLink {
    display: block;
    position: absolute;
    top: 0;
    width: 50%;
    outline: none;
    }

    now

    #lbImage {
    position: absolute;
    left: 0;
    top: 22px; /* 0 */ /* May need to be increased to 32px to clear border thickness, if coloured differently. */
    border: 10px solid #fff;
    background-repeat: no-repeat;
    padding-bottom:12px; /* added to restore bottom of image */
    }

    #lbPrevLink, #lbNextLink {
    display: block;
    position: absolute;
    top: -32px; /* 0 */ /* Note the minus sign */
    width: 50%;
    outline: none;
    }

    Hope this helps.

  7. #7
    Join Date
    Feb 2011
    Location
    North Florida
    Posts
    36
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    I just uploaded zen lightbox and am having issues with getting it to run. I've uploaded the files to the correct places. I've created the custom folders. I wasn't able to copy and paste the sql files for some reason (I never have been able to do that), but I did have my server guy install the sql patch directly. Zen Lightbox is showing up under my Configuration in zen admin, but when I click on it I get taken to a blank page that states Zen Lightbox at the top, but no install options. What went wrong?

  8. #8
    Join Date
    Feb 2011
    Location
    North Florida
    Posts
    36
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Disregard. Apparently, nothing further has to be done. I just clicked on some images and they come up in the lightbox. Should have checked sooner. I just didn't expect it to be that simple.

  9. #9
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Quote Originally Posted by RNRN View Post
    Disregard. Apparently, nothing further has to be done. I just clicked on some images and they come up in the lightbox. Should have checked sooner. I just didn't expect it to be that simple.
    Sorry but if you see nothing on that config page then i think there is still something wrong, even if it is working.

    I would go to the server and manually check each and every folder to ensure all go loaded into the right spot.

    Once the files have been uploaded and the sql installed then you should see its settings page...to change colors and such if you want to match your template and to turn it on.

    a link also is always helpful to getting even better knowledged peeps in here

  10. #10
    Join Date
    May 2011
    Posts
    8
    Plugin Contributions
    0

    Idea or Suggestion Re: Zen Lightbox...

    Hi,

    If you want to manage multiple language support for Zen Lightbox I made some changes in code.

    Feel free to use the following attachment.

    Of course, you need to duplicate all english directories of the module in the same place with the correct language name you use.
    In the new language directories, make changes as necessary (texts and images).

    Files changes:

    includes\classes\zen_lightbox\autoload_default.php
    includes\templates\template_default\common\html_header.php

    ***********
    * WARNING *
    ***********

    html_header.php come from v1.3.9h (I haven't test it because I still use a previous zen-cart version)

    If you still use a previous zen-cart version, do not use html_header.php included in the attachment, but you can just add the folowing code in the file includes\templates\template_default\common\html_header.php like you can see in the attachment:

    <?php
    /**
    * load all template-specific stylesheets, named like "style*.php", alphabetically
    */
    $directory_array = $template->get_template_part($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^style/', '.php');
    while(list ($key, $value) = each($directory_array)) {
    $tmpcssdyn = '<script language="javascript" type="text/javascript"><!--'."\n";
    $tmpcssdyn .= 'document.writeln(\'<link rel="stylesheet" type="text/css" href="' . $template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . $value . '?charset=' . CHARSET . '&language=' . $_SESSION['language'] . '" />\');'."\n";
    $tmpcssdyn .= '//--></script>'."\n";
    echo $tmpcssdyn;
    }

    File deleted:

    includes\templates\YOUR-TEMPLATE-FOLDER\css\stylesheet_zen_lightbox.css

    File added:

    includes\templates\YOUR-TEMPLATE-FOLDER\css\stylesheet_zen_lightbox.php


    Enjoy ;)

    Jacques from France
    Attached Files Attached Files
    Last edited by jisaac; 16 Jun 2011 at 01:13 PM. Reason: Correction

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Free Shipping Rules addon [Support Thread]
    By numinix in forum Addon Shipping Modules
    Replies: 36
    Last Post: 2 Dec 2016, 01:56 PM
  2. v151 Reviews Reply addon [Support Thread]
    By mikestaps in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 17 Oct 2014, 01:29 AM
  3. Jquery Lightbox [Support thread]
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 257
    Last Post: 2 Aug 2012, 10:57 PM
  4. File Upload Required addon [Support Thread]
    By 1100101 in forum All Other Contributions/Addons
    Replies: 21
    Last Post: 10 Dec 2011, 03:00 AM
  5. [Support Thread] IE only JavaScripts and Stylesheets Addon
    By Meshach in forum All Other Contributions/Addons
    Replies: 16
    Last Post: 31 May 2011, 08:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg