coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: uga2000dawg on January 09, 2004, 07:59:54 PM

Title: Missing Code... can someone help?
Post by: uga2000dawg on January 09, 2004, 07:59:54 PM
I think when my web host moved my site to a new server some information was lost in the transfer. As a result, I've got truncated code in all slideshow pages. See it here:

http://www.daveakins.com/coppermine/displayimage.php?album=2&pid=56&slideshow=5000

I'm assuming that it's missing some closing tags or something (I only know HTML so can't figure out what it needs).

Anyone volunteer some assistance?

Thanks in advance.

FOLLOWUP: I checked the slideshow.inc.php file and the close-script tag is there so that can't be it.

DAve
Title: Missing Code... can someone help?
Post by: Tarique Sani on January 10, 2004, 03:25:36 AM
I can see the slide show fine in my Mozilla 1.5 Redhat 9
Title: Missing Code... can someone help?
Post by: Casper on January 10, 2004, 11:06:27 AM
I get the error, in IE.

I don't know if this is the cause, but your script code differs from mine here;
Your code
// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000
// Duration of crossfade (seconds)
var crossFadeDuration = 3


My code
// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000
// Agent sniffer shamelessly 'stolen' from the excellent X library from cross-browser.com
var xOp7=false,xOp5or6=false,xIE4Up=false,xNN4=false,xUA=navigator.userAgent.toLowerCase();
if(window.opera){
  xOp7=(xUA.indexOf('opera 7')!=-1 || xUA.indexOf('opera/7')!=-1);
  if (!xOp7) xOp5or6=(xUA.indexOf('opera 5')!=-1 || xUA.indexOf('opera/5')!=-1 || xUA.indexOf('opera 6')!=-1 || xUA.indexOf('opera/6')!=-1);
}
else if(document.layers) xNN4=true;
else {xIE4Up=document.all && xUA.indexOf('msie')!=-1 && parseInt(navigator.appVersion)>=4;}

// Duration of crossfade (seconds)
var crossFadeDuration = 3
Title: Thanks for the help...
Post by: uga2000dawg on January 12, 2004, 06:21:20 PM
I tested the slideshow feature in Netscape and it works fine so it must be something with IE. (?)

Casper, I'll try changing the code and see what happens. Any add'l suggestions are greatly appreciated.

Thanks

DA
Title: Followup
Post by: uga2000dawg on January 12, 2004, 06:34:46 PM
Changing the code didn't work.
Title: Missing Code... can someone help?
Post by: Joachim Müller on January 13, 2004, 05:18:41 AM
slideshow works fine for me with above mentioned link (using IE6 on Windows 2000).

GauGau
Title: Missing Code... can someone help?
Post by: Casper on January 13, 2004, 11:12:39 AM
Yes, it works fine now, but didn't yesterday.

@uga2000dawg, please post what you did to solve the problem, so anyone else having this problem can see how to do it.
Title: Missing Code... can someone help?
Post by: uga2000dawg on January 14, 2004, 04:56:39 AM
Casper et al:

I didn't do anything! I tried the code you provided but reverted back to what I had when yours didn't work. Now the slideshow function is fine. Very strange. I wish I could take credit for coming up with a solution but I can't. Oh well, I'm content.

Thanks for everyone's help

DA