Jump to content

light box slideshow jquery conflicts


chitrag

Recommended Posts

My site was working fine with lightbox 2 slide show. But all light box are not working. I could not figure out where is the mistakes.

 

actually my jquery and js files are located in

 

egtours.com/lightbox/js directory but

 

my templates is trying to take files from following

 

link

 

http://www.egtours.com/sohoadmin/program/modules/site_templates/pages/PHASE2-Dinkin_Flicka-Evergreen/lightbox/js/lightbox-2.6.min.js

 

But I try to edit my templates still the same.

 

http://www.egtours.com/10_days_nepal_trip.php#sthash.aOVvy3Yu.dpbs

 

so I am confusing what to do.

 

here is the code of my page template. My site is template based. Can you look out for me.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>#PAGENAME#</title><script type="text/javascript"></script><meta content="text/html; charset=us-ascii" http-equiv="Content-Type" /><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /><link rel="stylesheet" type="text/css" href="custom.css" /><link type="text/css" rel="stylesheet" href="../../../../../../../tooltip/themes/2/tooltip.css" /><link href="lightbox/css/lightbox.css" rel="stylesheet" /><link href="thumbslider/themes/3/slider.css" rel="stylesheet" type="text/css" /><script type="text/javascript" src="../../../../../../../tooltip/themes/2/tooltip.js"></script><script type="text/javascript" src="lightbox/js/lightbox-2.6.min.js"></script><script src="thumbslider/themes/3/thumbnail-slider.js" type="text/javascript"></script><script language="JavaScript" src="motionpack.js"></script><!--[if IE]><style type="text/css">img { behavior: url("#template_path_full_url#/pngbehavior.htc"); }</style><![endif]--><!-- load jQuery 1.10.2.min --><script type="text/javascript" src="lightbox/js/jquery-1.10.2.min.js"></script><script type="text/javascript">var jQuery_1_7_2_min = $.noConflict(true);jquery-1.10.2.min('#lightbox').function();</script><!-- load jQuery 1.3.2.min --><script type="text/javascript" src="sohoadmin/plugins/MegaMenuBuilder/javascripts/jquery-1.3.2.min.js"></script><script type="text/javascript">var jQuery_1_3_2_min = $.noConflict(true);jQuery_1_3_2_min('#megamenu').function();</script><script type="text/javascript">var switchTo5x=true;</script><script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script><script type="text/javascript">stLight.options({publisher: "8d9c62fc-ffd0-4818-97c0-293378a2141e", doNotHash: false, doNotCopy: false, hashAddressBar: true});</script></head><body onload="slideup('featwrapper');"><div id="headwrapper"><div id="head" class="clearfix"><div id="logo_box"><a href="../../../../../../../Home_Page.php"><img id="logo" alt="Home" src="images/_userimg-logo.png" border="0" height="118" width="322" /></a></div><div id="tagline"><img alt="Home" src="images/_userimg-ad_banner.png" border="0" height="60" width="468" /></div></div></div><div id="trimbar"></div><div style="display: none; height: 124px; overflow: hidden" id="featwrapper"><div id="feat" class="clearfix"><div id="featleft">#NEWSBOX#</div><div id="featright">#PROMOTXT1#</div></div></div><div id="navwrapper"><div id="nav" class="clearfix"><div id="signup"><a href="javascript:;" onmousedown="toggleSlide('featwrapper');"><img style="border: 0pt" alt="Toggle the banner up or down" src="images/hide-show.png" border="0" height="27" width="110" /></a></div><div id="mainnav">#MEGAMENU#</div></div></div><div id="contentwrapper"><div id="maincontent" class="clearfix"><div id="subnav">#VSUBS#<div id="belowmenu">#POWERPLUG4#</div></div><div id="content"><div id="date">#AUTODATESTAMP#</div>#CONTENT#</div></div><div id="footerwrapper"><div id="footer"><table id="table1" border="0" cellspacing="1" width="400"><tbody><tr><td colspan="6" align="left"><p align="center"><a title="" href="../../../../../../../Our_Policies.php">Our Policies</a>| <a href="../../../../../../../Privacy_Statement.php">Privacy Statement</a></p></td></tr><tr><td width="60"><img alt="" src="../../../../../../../images/logos/coatofarm.png" border="0" height="75" width="89" /></td><td width="152"><img alt="" src="../../../../../../../images/logos/nattalogo.png" border="0" height="75" width="71" /></td><td width="55"><img alt="" src="../../../../../../../images/logos/uftaa.png" border="0" height="75" width="107" /></td><td width="71"><img alt="" title="" src="../../../../../../../images/paybyskull.png" height="48" width="100" /><br /></td><td width="71"><p><img title="" alt="" src="../../../../../../../images/paypalv.png" height="75" width="75" /></p></td><td width="26"><p><img title="" alt="" src="../../../../../../../images/vitof_logo.PNG" height="97" width="129" /></p></td></tr></tbody></table>#COPYRIGHT#</div></div></div></body></html>

I am shocked with following codes in my template

<!--[if IE]><style type="text/css">img { behavior: url("http://www.egtours.com/sohoadmin/program/modules/site_templates/pages/PHASE2-Dinkin_Flicka-Evergreen/pngbehavior.htc"); }</style><![endif]--><!-- load jQuery 1.10.2.min --><script type="text/javascript" src="sohoadmin/program/modules/site_templates/pages/PHASE2-Dinkin_Flicka-Evergreen/lightbox/js/jquery-1.10.2.min.js"></script><script type="text/javascript">var jQuery_1_7_2_min = $.noConflict(true);jquery-1.10.2.min('#lightbox').function();<!-- load jQuery 1.3.2.min -->
Edited by chitrag
Link to comment
Share on other sites

Check your browser's developer tools, you have 12 404 errors on that link. Your paths aren't correct. It will probably be easier to make all of your paths relative to the site root instead of trying to go up so many directories.

Link to comment
Share on other sites

Thank you for your note.

 

I have path for light box js files

 

egtours.com/lightbox/js etc

 

when I edit code in template file as above after publishing

 

browser shows

 

egtours.com/sohoadmin/program/modules/site_templates/pages/PHASE2-Dinkin_Flicka-Evergreen/lightbox/js/lightbox-2.6.min.js

 

even I edit template file, it takes above path.

Link to comment
Share on other sites

Use /lightbox/js for the path. Start the path with a slash, that means the path starts at the site root. If you just use lightbox/js then it is relative to the page, you want it to be relative to the root of the site.

Link to comment
Share on other sites

Thanks your help

 

when I put slash the results is

 

<script type="text/javascript" src="sohoadmin/program/modules/site_templates/pages/PHASE2-Dinkin_Flicka-Evergreen//sohoadmin/plugins/MegaMenuBuilder/javascripts/jquery-1.3.2.min.js"></script>
where ever located the files in server, my templates creates link like
<script type="text/javascript" src="sohoadmin/program/modules/site_templates/pages/PHASE2-Dinkin_Flicka-Evergreen/MenuBuilder/javascripts/jquery-1.3.2.min.js"></script> '
so browser does not know what to display.
for example
if my js files are located like this egtours.com/lightbox/js
the link in templates creates automatically as follows
<script type="text/javascript" src="sohoadmin/program/modules/site_templates/pages/PHASE2-Dinkin_Flicka-Evergreen/lightbox/js etc
and I did changes in template but does not effect
Link to comment
Share on other sites

Yes similar like that.

 

when I put one path link ( for example egtours.com/lightbox ) in my template, it is replaced with sohoadmin/program/modules/site_templates/pages/PHASE2-Dinkin_Flicka-Evergreen/lightbox etc

Link to comment
Share on other sites

what are you using as a text editor? what about your host? maybe that's where you're supposed to put your files? I would start sending some emails.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...