Topic: Gallery XML Not Found

Hi,

I'm evaluating SimpleViewer 2.2.0 and I'd be grateful for some assistance.

I'm trying to embed a gallery on the following page:

http://www.personal121trainer.co.uk/abo … tfolio.htm

with the following code:

<!--START SIMPLEVIEWER EMBED.--><script type="text/javascript" src="/MyFiles/Files/Portfolio/svcore/js/simpleviewer.js"></script><script type="text/javascript">
var flashvars = {};
flashvars.baseURL = "/MyFiles/Images/Portfolio/";
simpleviewer.ready(function () {
simpleviewer.load("sv-container", "100%", "100%", "222222", true, flashvars);
});
</script>
<div id="sv-container">
    &nbsp;</div>
<!-- END SIMPLEVIEWER EMBED -->

I have the svcore files in the following location:

/MyFiles/Files/Portfolio/

and I have the Gallery Files in the following:

/MyFiles/Images/Portfolio/

Any assistance with this issue would be greatly apprciated?

Thanks

Lee

Re: Gallery XML Not Found

Your gallery currently displays the 'Gallery XML Not Found.' message.
As your gallery uses the baseURL /MyFiles/Images/Portfolio/ the XML file should be named 'gallery.xml' and located here /MyFiles/Images/Portfolio/gallery.xml
It is currently here /MyFiles/Files/Portfolio/gallery.xml
Move the XML file to the /MyFiles/Images/Portfolio/ folder and remember than any relative URLs within the XML file are relative to the HTML page into which the gallery is embedded.
Alternatively, you could leave the XML file where it is and use the galleryURL option to point to the XML file.
A description of the galleryURL option can be found in the 'Flashvar Options' section of the 'SimpleViewer-Pro Config Options' page: http://simpleviewer.net/simpleviewer/pr … .html#html

Steven Speirs
SimpleViewer Support Team.

Re: Gallery XML Not Found

Hi Steven,

Thanks for your reply.  I don't easily have the option to put the .xml file in the Gallery Folder so would like to use the GalleryURL option.  However, I'm struggling to establish where in the code the following is placed?  I have tried the following but it doesn't seem to work?

<script type="text/javascript" src="/MyFiles/Files/Portfolio/svcore/js/simpleviewer.js"></script><script type="text/javascript">
var flashvars = {};
flashvars.galleryURL = "gallery.xml"; flashvars.baseURL = "/MyFiles/Images/Portfolio/";
simpleviewer.ready(function () {
simpleviewer.load("sv-container", "100%", "100%", "222222", true, flashvars);
});
</script>
<div id="sv-container">
    &nbsp;</div>
<!-- END SIMPLEVIEWER EMBED -->

Re: Gallery XML Not Found

Try:

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

Re: Gallery XML Not Found

Steven,

I really appreciate you help - and I'm sorry but I still can't seem to get it to work.  I now have the following code on the page:

<script type="text/javascript" src="/MyFiles/Files/Portfolio/svcore/js/simpleviewer.js"></script><script type="text/javascript">
var flashvars = {};
flashvars.galleryURL = "/MyFiles/Files/Portfolio/gallery.xml";
flashvars.baseURL = "/MyFiles/Images/Portfolio/";
simpleviewer.ready(function () {
simpleviewer.load("sv-container", "100%", "100%", "222222", true, flashvars);
});
</script>
<div id="sv-container">
    &nbsp;</div>
<!-- END SIMPLEVIEWER EMBED -->

Many thanks.

Lee

Re: Gallery XML Not Found

Sorry - this is the code I now have in place with no success!

<script type="text/javascript" src="/MyFiles/Files/Portfolio/svcore/js/simpleviewer.js"></script><script type="text/javascript">
var flashvars = {};
flashvars.galleryURL="/MyFiles/Files/Portfolio/gallery.xml"; flashvars.baseURL="/MyFiles/Images/Portfolio/";
simpleviewer.ready(function () {
simpleviewer.load("sv-container", "100%", "100%", "222222", true, flashvars);
});
</script>
<div id="sv-container">
    &nbsp;</div>
<!-- END SIMPLEVIEWER EMBED -->

Re: Gallery XML Not Found

Please note that I edited my post (seconds after posting it).
The galleryURL will be relative to the baseURL so should be:

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