Thanks for the support Steven...
I re-uploaded everything but not joy.
Apologies, I must have the pro version not the free version as I just uploaded a fresh autoviewer.swf from your site and that made no difference at all but noticed it had your little logo on there so we must have the pro.
The link to the gallery is here: http://www.indoorplaygroundequipment.co … rounds.php
My developer has heavily modified your original code though so if there is more than one image it will use autoviewer to display the multiplr images as shown below...
<?PHP if(count($imgs) > 1) { ?>
<script type="text/javascript">
var fo = new SWFObject("assets/flash/autoviewer.swf", "autoviewer", "100%", "384", "8", "#ffffff");
//Optional Configuration
//fo.addVariable("langOpenImage", "Open Image in New Window");
//fo.addVariable("langAbout", "About");
fo.addVariable("playAtStart", "true");
fo.addVariable("enableImageUpScaling", "true");
fo.addVariable("unselectedBrightness", "120");
fo.addParam("wmode", "transparent");
fo.addVariable("xmlURL", "db_getGalleryXML.php?code=<?PHP echo $_REQUEST['code'] ?>");
fo.write("flashcontent");
</script>
<?PHP } ?>
****************Below is the db_getGalleryXML.php code if that helps at all?
<?PHP
require("assets/db/db_include.php");
$designInfo = db_getDesignInfo($_REQUEST['code']);
$xml = new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?><gallery></gallery>');
//$t_gallery = $xml->gallery[0];
$xml->addAttribute('frameColor', '0xFFFFFF');
$xml->addAttribute('frameWidth', '0');
$xml->addAttribute('imagePadding', '20');
$xml->addAttribute('displayTime', '6');
$xml->addAttribute('enableRightClickOpen', 'true');
$images = explode(',', $designInfo['ImageUrl']);
foreach($images as $imgNum=>$image) {
$imgWidths = explode(",", $designInfo['ImageWidths']);
$imgHeights = explode(",", $designInfo['ImageHeights']);
if(strlen($image) > 0) {
if($GLOBALS['isAustralianSite']) {
$localServer = "/home/inin1056/public_html/";
$server = "http://www.indoorplaygroundequipment.com.au/";
} else {
$localServer = "/home/inin1056/public_html/";
$server = "http://www.indoorplaygroundequipment.com.au/";
}
//$imgInfo = getimagesize($localServer.'uploads/'.$image);
//$imgInfo = array(640,480);
$imgInfo = array($imgWidths[$imgNum], $imgHeights[$imgNum]);
//$imgInfo = array($designInfo['ImageWidths'][$imgNum], $designInfo['ImageHeights'][$imgNum]);
if ($imgInfo[0] > $imgInfo[1]) {
$percentage = (512 / $imgInfo[0]);
} else {
$percentage = (384 / $imgInfo[1]);
}
$width = round($imgInfo[0] * $percentage);
$height = round($imgInfo[1] * $percentage);
$t_image = $xml->addChild('image', '');
$t_image->addChild('url', /*$server.*/'uploads/' . $image);
$t_image->addChild('caption', "<a href='preview/enlargedImage.php?w=".$imgInfo[0]."&h=".$imgInfo[1]."&id=".$_REQUEST['code']."&pic=../uploads/$image'>
</a>");
$t_image->addChild('width', $width);
$t_image->addChild('height', $height);
}
}
echo $xml->asXML();
?>