Topic: Embedding Autoviewer: I think I've found an answer for a lot of users

So, many users seem to have been unable to successfully embed Autoviewer and get the images to appear correctly.

I had this problem myself but after a few hours spent on it, here is a solution which really seems to work well:

Firstly: Change the format of the 'gallery.xml' to TXT (ie. gallery.txt)                   
       
    Add or enable the following line to the variables in the source code:
        fo.addVariable("xmlURL", "gallery.txt");   
The txt file can be any name so long as any paths referencing it are correct.
       
Then ensure that all of your image paths in the new 'gallery.txt' file are correct, they don't need to be absolute. And Viola!

If you're truly stuck, give this a spin, it worked great for me. I believe the issue may also have been IIS related by the way, as our server didn't like parsing XML for some reason.

Example: http://www.24-7.mdx.ac.uk/new-art/


Steve Norris
Web Development Manager
Middlesex University

Last edited by SteveNorris (2010-09-22 11:38:40)

Re: Embedding Autoviewer: I think I've found an answer for a lot of users

Hi Steve

I followed your instructions and it still doesnt work.. As soon as I edit the gallery.txt or gallery.xml file the photos just disappear.

All I see is the arrows and play button of the flash file, but no photo.

I want to be able to embed this gallery into my website quite easily, but suffering at this basic thing.

Any ideas:

http://www.custardfacephotography.co.uk … index.html

Thank you very much
Sonia

Re: Embedding Autoviewer: I think I've found an answer for a lot of users

Under normal circumstances, there should be no need to change the file extension of the XML file.
However, your problem appears to be that the first line of your XML file is:

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

... and it should be:

<?xml version="1.0" encoding="UTF-8"?>
Steven Speirs
SimpleViewer Support Team.