Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / page issue with Zen Lightbox file

page issue with Zen Lightbox file

Views: 929

Results 1 to 6 of 6
11 Jul 2012, 4:36 AM
#1
metaus avatar

metaus

New Zenner

Join Date:
Jul 2012
Posts:
35
Plugin Contributions:
0

page issue with Zen Lightbox file

Hi,
For some reason my 'new products' and 'specials' pages are displaying the code from what I believe is a .php file to do with zen lightbox on the actual page itself (above my top banner).

You can see what I am talking about at the following pages:
http://calluccimenswear.com.au/index.php?main_page=page&id=3
&
http://calluccimenswear.com.au/index.php?main_page=page&id=2

I am unsure as to why this is happening. I did recently install Zen Lightbox, but cannot seem to locate where a file may have gone a-stray.

Any help would be sincerely appreciated!
Thanks

11 Jul 2012, 4:49 AM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,843
Plugin Contributions:
17

Re: page issue with Zen Lightbox file

Looks like you've been bitten by a TM template.

Also, it looks as if someone did a poor job at trying to comment out some code. Note the --> in red at the end of the quote.

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)); }); }); }); //-->You can use the developers tool kit in the admin to search for the file containing something like lightboxType to find the offending file.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

12 Jul 2012, 11:46 AM
#3
metaus avatar

metaus

New Zenner

Join Date:
Jul 2012
Posts:
35
Plugin Contributions:
0

Re: page issue with Zen Lightbox file

Thanks kindly for your help. I've managed to remove the majority of the code, except for one last section (which doesn't seem to be in the same file as everything else). it is:

'jpg,png,gif,'; },

if you go to http://calluccimenswear.com.au/index.php?main_page=page&id=3 you will see that the code is still present on the page there.
any ideas where this may be located?

thanks so much!!

15 Jul 2012, 1:01 PM
#4
metaus avatar

metaus

New Zenner

Join Date:
Jul 2012
Posts:
35
Plugin Contributions:
0

Re: page issue with Zen Lightbox file

anyone have any ideas please??

15 Jul 2012, 3:22 PM
#5
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: page issue with Zen Lightbox file

If you are sure it is Zen Lightbox, uninstall it, and see what happens.
But I don't think so as I see it in tm jscript

<script type="text/javascript" src="min/?f=/includes/templates/theme536/jscript/jscript_imagehover.js,/includes/templates/theme536/jscript/jscript_jquery-1.4.min.js,/includes/templates/theme536/jscript/jscript_xjquery.jqtransform.js,/includes/templates/theme536/jscript/jscript_zcoin-slider.js,/includes/templates/theme536/jscript/jscript_zhover-image.js&1340371578"></script>

        'jpg,png,gif,'; 
  }, 
            <br /><a href="' + el.href + '">
            
  $('#lbPrevLink').addClass('prevNoHover'); $('#lbNextLink').addClass('nextNoHover');</script>

Try a search in your template jscript folder, or maybe tpl_header, or html_header

Better yet if you do search the entire tm template folder

17 Jul 2012, 12:00 PM
#6
metaus avatar

metaus

New Zenner

Join Date:
Jul 2012
Posts:
35
Plugin Contributions:
0

Re: page issue with Zen Lightbox file

Managed to find and remove the excess language showing up on the pages...I think :P

Thanks everyone for your help, much appreciated!