Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jan 2012
    Posts
    488
    Plugin Contributions
    0

    Default Zen Lightbox added 'garbage' to my EZ Pages

    I couldn't find a support thread for Zen Lightbox, so asking here...


    I changed out Fual Slimbox for Zen Lightbox and it performs flawlessly on product pages, but when I hit EZ pages, it displays the following at the top:



    jQuery(function($) { var lightboxType = "lightbox-g"; fileTypesString = 'jpg,png,gif,'; fileTypes = $.each(fileTypesString.split(",").slice(0,-1), function(index, item) { $("a[href*='"+item+"']").attr('rel', lightboxType); $("a[rel^='lightbox']").slimbox({}, function(el) { return [el.href, el.title /* + '
    Download this image'*/]; }, function(el) { return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel)); }); }); $('#lbPrevLink').addClass('prevNoHover'); $('#lbNextLink').addClass('nextNoHover');}); //-->
    HomeLog In


    Where is that coming from????

  2. #2
    Join Date
    Jan 2012
    Posts
    488
    Plugin Contributions
    0

    Default Re: Zen Lightbox added 'garbage' to my EZ Pages

    Ok, found where its coming from.

    If Zen Lightbox 'Enable on EZ Pages' set to true, the garbage shows up.

    Whats wrong with the code?


    Contents of /includes/modules/pages/page/jscript_zen_lightbox.php


    <?php
    /**
    * Zen Lightbox
    *
    * @author Alex Clarke ([email protected])
    * @copyright Copyright 2003-2005 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: jscript_zen_lightbox.php 2008-12-09 aclarke $
    */

    if (ZEN_LIGHTBOX_STATUS == 'true' && ZEN_LIGHTBOX_EZPAGES == 'true') {
    require_once(DIR_FS_CATALOG . DIR_WS_CLASSES . 'zen_lightbox/slimbox.php');
    ?>

    jQuery(function($) {
    <?php if (ZEN_LIGHTBOX_GALLERY_MODE == 'true'){?>
    var lightboxType = "lightbox-g";
    <?php } else {?>
    var lightboxType = "lightbox";
    <?php } ?>
    fileTypesString = <?php echo ("'" . ZEN_LIGHTBOX_FILE_TYPES . ",". "'");?>;
    fileTypes = $.each(fileTypesString.split(",").slice(0,-1), function(index, item) {
    $("a[href*='"+item+"']").attr('rel', lightboxType);
    $("a[rel^='lightbox']").slimbox({<?php require_once(DIR_FS_CATALOG . DIR_WS_CLASSES . 'zen_lightbox/options.php'); ?>}, function(el)
    {
    return [el.href, el.title /* + '<br /><a href="' + el.href + '">Download this image</a>'*/];
    }, function(el) {
    return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel));
    });
    });
    <?php if (ZEN_LIGHTBOX_CLOSE_IMAGE == 'true' || ZEN_LIGHTBOX_PREV_NEXT == 'true') { echo ("$('#lbPrevLink').addClass('prevNoHover'); $('#lbNextLink').addClass('nextNoHover');");}?>
    });
    //--></script><?php } ?>

  3. #3
    Join Date
    Oct 2011
    Location
    AZ
    Posts
    384
    Plugin Contributions
    0

    Default Re: Zen Lightbox added 'garbage' to my EZ Pages

    Quote Originally Posted by Limitless View Post
    I couldn't find a support thread for Zen Lightbox, so asking here...

    http://www.zen-cart.com/showthread.p...Thread/page314

  4. #4
    Join Date
    Jan 2012
    Posts
    488
    Plugin Contributions
    0

    Default Re: Zen Lightbox added 'garbage' to my EZ Pages

    Thanks!


    Can a mod Move this to that thread so I don't double post?

 

 

Similar Threads

  1. IH and Zen Colorbox vs Zen Lightbox?
    By Feznizzle in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 28 Jan 2015, 02:29 AM
  2. v139h Lightbox freezing up pages
    By nickorett in forum General Questions
    Replies: 2
    Last Post: 21 Mar 2012, 03:50 PM
  3. Lightbox on other pages
    By blackwolf in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 9 Oct 2009, 12:42 PM
  4. Zen Lightbox 4
    By dml311071 in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 2 Dec 2007, 03:18 AM
  5. Zen Lightbox
    By surrealcurly in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Jan 2007, 11:56 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