Topic: Gallery XML not found

Hello

I created succcesfully a gallery on my computer and checked that it worked there. I copy and pasted all the relevant files and folders into my server and called the gallery folder 'simpleviewer'. I also think I changed what I should have at the xml file, but it still doesn't show the gallery on my website and says 'Gallery XML not found', although the XML file is in the gallery folder.

Can you please help?

That's my code

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="simpleviewer/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.baseURL="simpleviewer/";
var params = {};
params.wmode = "transparent";
var attributes = {};
attributes.id = "svInstance";
simpleviewer.ready(function () {
simpleviewer.load("sv-container", "100%", "100%", "222222", true);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->

Last edited by rudess (2012-12-03 21:56:04)

Re: Gallery XML not found

That's the beginning of my xml file

<?xml version="1.0" encoding="UTF-8"?>

<simpleviewergallery

    resizeOnImport="false"
    useFlickr="false"
    cropToFit="false"
    galleryStyle="MODERN"
    title="Gallery"
    frameWidth="10"
    languageCode="AUTO"
    languageList=""       
    imagePath="simpleviewer/images/"
    thumbPath="simpleviewer/thumbs/"
    indexPageName="index.html"

Is anything wrong here?

Re: Gallery XML not found

Your gallery's embedding code is not reading your flashvars, params and attributes.
Replace:

simpleviewer.load("sv-container", "100%", "100%", "222222", true);

... with:

simpleviewer.load("sv-container", "100%", "100%", "222222", true, flashvars, params, attributes);

Please see the Embed Code Parameters section of the SimpleViewer Embedding Guide for details.

Steven Speirs
SimpleViewer Support Team.

Re: Gallery XML not found

Thanks, I've done it but it still gives me the same error. And idea what can be the problem?

Re: Gallery XML not found

Your gallery currently uses the following code:

flashvars.galleryURL = "gallery.xml";

... but the 'gallery.xml' file is located in your 'simpleviewer' folder so use the following code instead:

flashvars.galleryURL = "simpleviewer/gallery.xml";
Steven Speirs
SimpleViewer Support Team.

Re: Gallery XML not found

Thank you very much, it now works. Your help is much appreciated! smile