Missing Code... can someone help? Missing Code... can someone help?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Missing Code... can someone help?

Started by uga2000dawg, January 09, 2004, 07:59:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

uga2000dawg

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

Tarique Sani

I can see the slide show fine in my Mozilla 1.5 Redhat 9
SANIsoft PHP applications for E Biz

Casper

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
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

uga2000dawg

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

uga2000dawg

Changing the code didn't work.

Joachim Müller

slideshow works fine for me with above mentioned link (using IE6 on Windows 2000).

GauGau

Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

uga2000dawg

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