Topic: Gallery XML not found

OK, I'm sorry to go on about something that is obviously covered in great depth on these forums but I just can't get the embedded simpleviewer to work. I've trawled around the forums and picked up snippets of information, trying to sort the problem out before I troubled you guys but to no avail!

I've checked all permissions on the folders on the ftp and they're all good... attempted some of the suggestions on these forums and nothing seems to work.

Would you mind pointing me in the right direction please? I really want to use simpleviewer but my patience is wearing thin!

I'm just testing a small gallery at present here:

http://www.thebristoldinosaurproject.org.uk/?q=node/51

Any help or advice would be massively appreciated!

Re: Gallery XML not found

If you do not specifically set a galleryURL in the embedding code, then SimpleViewer expects the XML file to be called 'gallery.xml' and to be located alongside the HTML file into which SimpleViewer is embedded.
The file is not there.
Try using the recommended embedding code found here: http://simpleviewer.net/simpleviewer/su … html#embed
You can set the path to the XML file using the galleryURL option:

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars={};
flashvars.galleryURL="http://www.example.com/gallery_folder/gallery.xml";
simpleviewer.ready(function () {
simpleviewer.load("sv-container", "100%", "100%", "222222", true, flashvars);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->

See here for details: http://simpleviewer.net/simpleviewer/pr … .html#html
This FAQ might also help: http://simpleviewer.net/simpleviewer/su … #trouble_6

Steven Speirs
SimpleViewer Support Team.

Re: Gallery XML not found

Thanks for your response. I've tried the suggested and still I'm not having any luck.
At present, here is what I am doing:

1. Creating simpleviewer gallery in Photoshop using the script downloaded form your site (can't use Adobe Air and your other software as it won't work on my OS)

2. Uploading all files to my hosts ftp and changing privileges where necessary.

3. Creating a page in my Drupal site and adding the embed code as firstly plain text (with your suggested file path changes) then clicking on Full html. This results in a blank field and nothing is added to the page.

4. Secondly (repeat above) tried adding the .swf file as a flash file and this results in the "Gallery XML not found" message. I've altered the index.html file generated with the gallery with your suggested path changes but this seems to have no effect.

I know I'm probably overlooking the obvious but I can't see a way to get simpleviewer to work.

Many thanks
Neil

Re: Gallery XML not found

Try following the 'Embedding in a Drupal Site' instructions in the 'SimpleViewer Embedding Guide'.
http://simpleviewer.net/simpleviewer/su … tml#drupal

Steven Speirs
SimpleViewer Support Team.

Re: Gallery XML not found

Thanks,
First thing I did, and you guessed it - it didn't work. As I mentioned in my previous post I can't use svBuilder as my OS will not support the Adobe Air version required to run it. Again same problem, as soon as i click "Full html" the iframe disappears and no entry is made.

http://www.thebristoldinosaurproject.org.uk/?q=node/58

Best,
Neil

Re: Gallery XML not found

Try adding the following to your embedding code (alongside the other <param> tags):

<param name="flashvars" value="galleryURL=http://www.thebristoldinosaurproject.org.uk//sites/default/files/super_gallery/gallery.xml" />
Steven Speirs
SimpleViewer Support Team.

Re: Gallery XML not found

Sorry to be a doofus but do you suggest I use the iframe embedding code fro Drupal sites here:

http://simpleviewer.net/simpleviewer/su … tml#drupal

and then add the above to that code?

Thanks for your patience!

Re: Gallery XML not found

No.
The <iframe> suggestion was an alternative to the embedding code that you currently use.
If you can add an <iframe> to your page, this is the easiest option as it involves uploading your entire gallery folder and adding one line of code (the <iframe> loading your gallery's index page) to your page.
Try selecting 'Full HTML' as the input method before entering the <iframe> code.

Alternatively, to successfully use your current embedding code, change it from:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" align="left" height="450" width="450">
<param name="allowFullScreen" value="true" />
<param name="quality" value="high" />
<param name="allowScriptAccess" value="always" />
<param name="scale" value="exactfit" />
<param name="movie" value="/sites/default/files/super_gallery/simpleviewer.swf" />
<embed allowfullscreen="true" allowscriptaccess="always" quality="high" scale="exactfit" src="/sites/default/files/super_gallery/simpleviewer.swf" type="application/x-shockwave-flash" height="450" width="450">
</embed>
</object>

... to:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" align="left" height="450" width="450">
<param name="flashvars" value="galleryURL=http://www.thebristoldinosaurproject.org.uk//sites/default/files/super_gallery/gallery.xml" />
<param name="allowFullScreen" value="true" />
<param name="quality" value="high" />
<param name="allowScriptAccess" value="always" />
<param name="scale" value="exactfit" />
<param name="movie" value="/sites/default/files/super_gallery/simpleviewer.swf" />
<embed allowfullscreen="true" allowscriptaccess="always" quality="high" scale="exactfit" src="/sites/default/files/super_gallery/simpleviewer.swf" type="application/x-shockwave-flash" height="450" width="450">
</embed>
</object>

... which adds a galleryURL as a flashvar to tell SimpleViewer where your gallery's XML file is.

Steven Speirs
SimpleViewer Support Team.