Topic: Multiple Galleries on multiple pages

Having problems using multiple galleries with autoviewer on multiple pages.

Have all my pages already made and wanted to put autoviewer in last. Problem is I want a gallery on two different pages. These html pages are located in the same folder with the index and other pages that they link to. I have the image folder in the same folder as well.

The first gallery works perfect with those images in my image folder. This is its scripts:

            <script type="text/javascript" src="swfobject.js"></script>
                      <div id="flashcontent">SimpleViewer requires JavaScript and the Flash Player.
                        <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
                <script type="text/javascript">
                     var fo = new SWFObject("autoviewer.swf", "viewer", "766", "400", "8", "#000000");
                          fo.addVariable("xmlDataPath", "gallery.xml");
                          fo.write("flashcontent");   
                  </script>

PROBLEM is when I make a new gallery and try to put it on the second page. It still refers back to the 1st gallery. Even when I rename the gallery and check to make sure it links to the right images. I have also renamed the "flashcontent" to "flashcontent2" with the renamed gallery. It is like the autoviewer has 'gallery.xml' programmed in for it to read from.

Any ideas on what to do from here without having to move the htmls into a subfolder, that would screw up my entire site.

THANKS

Re: Multiple Galleries on multiple pages

use xmlURL instead of xmlDataPath for AutoViewer.

for the first gallery
fo.addVariable("xmlURL", "gallery1.xml");

for the second gallery
fo.addVariable("xmlURL", "gallery2.xml");

http://www.simpleviewer.net/autoviewer/options.html

Mike Richards
SimpleViewer Support Team.

Re: Multiple Galleries on multiple pages

hello!
I have the same problem, and I did what mentioned here,but it seems I'm doing something wrong 'cause it doesn't work!
my second xml gallery file is called "gallery_conceptual"
this is my html code:
<div id="conceptual">
<div id="flashcontent">SimpleViewer requires Macromedia Flash. <a href="http://www.macromedia.com/go/getflashplayer/">
            Get Macromedia Flash.</a> If you have Flash installed, <a href="index.html?detectflash=false">click to view gallery</a></div>   
    <script type="text/javascript">
        fo.addVariable ("xmlURL", "gallery_conceptual.xml");
        var fo = new SWFObject("autoviewer.swf", "autoviewer", "100%", "100%", "2", "222222");               
        fo.write("flashcontent");   
    </script>   
is it correct?! hmm

Moreover if I try to rename first default gallery (like gallery1) it doesn't work again... mad

Re: Multiple Galleries on multiple pages

It should look like this

    <script type="text/javascript">
        var fo = new SWFObject("autoviewer.swf", "autoviewer", "100%", "100%", "2", "222222");
        fo.addVariable ("xmlURL", "gallery_conceptual.xml");  
        fo.write("flashcontent");   
    </script>
Mike Richards
SimpleViewer Support Team.

Re: Multiple Galleries on multiple pages

it works!!!thanks a lot!!!! big_smile

Re: Multiple Galleries on multiple pages

Oops, sorry, I have a simular issue, whereby the second gallery shows the viewer with no images and no X any ideas... html here...

<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent">AutoViewer requires JavaScript and the Flash Player.
<a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
<script type="text/javascript">
var fo = new SWFObject("autoviewer.swf", "viewer", "800", "500", "8", "#A09488");
fo.addVariable("xmlURL", "gallery_arc.xml");
fo.write("flashcontent");
</script>

Re: Multiple Galleries on multiple pages

@jaytee07

If you are seeing a 'X' instead of your images you need to double check your image paths in your XML and make sure that you uploaded your image folders.

Mike Richards
SimpleViewer Support Team.

Re: Multiple Galleries on multiple pages

Hi Mike
Many thanks for the reply. I am not seeing an X. Just the buttons.
Any ideas?
Jo

Re: Multiple Galleries on multiple pages

See if FAQs #2, #3 or #4 help: http://simpleviewer.net/autoviewer/support/faq.html
If you continue to experience difficulties, please post a URL to your gallery so that we can take a look.

Steven Speirs
SimpleViewer Support Team.

Re: Multiple Galleries on multiple pages

Hi Steven
Many thanks.
I have looked at other solutions, none of which work. I have even duplicated the gallery.xml file from the variable 

fo.addVariable ("xmlURL", "gallery_exp.xml");

to

fo.addVariable ("xmlURL", "gallery_arch.xml"); 

keeping all the images unchanged so as to eliminate the issue of linking for testing purposes and still the second gallery does not show images.

Excuse my ignorance, but can you advise as to how I can upload a url as this site is not online yet.

Jo

Re: Multiple Galleries on multiple pages

If your site has not yet been uploaded, then you will be unable to provide a URL.
Take a look at the code below which will embed two AutoViewer galleries (each taking up half the browser window height).
It might help to examine the code and compare it with your own.

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>AutoViewer</title>
<!-- Download AutoViewer at www.airtightinteractive.com/projects/autoviewer -->
<script type="text/javascript" src="swfobject.js"></script>
<style type="text/css">    
    /* hide from ie on mac \*/
    html {
        height: 100%;
        overflow: hidden;
    }    
    #flashcontent1 {
        height: 50%;
    }
    #flashcontent2 {
        height: 50%;
    }
    /* end hide */
    body {
        height: 100%;
        margin: 0;
        padding: 0;
        background-color: #181818;
        color:#ffffff;
        font-family:sans-serif;
        font-size:40;
    }    
    a {    
        color:#cccccc;
    }
</style>
</head>
<body>
    <div id="flashcontent1">AutoViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash here.</a> </div>    
    <script type="text/javascript">
        var fo1 = new SWFObject("autoviewer.swf", "autoviewer1", "100%", "100%", "8", "#181818");        
        fo1.addVariable("xmlURL", "gallery1.xml");                    
        fo1.write("flashcontent1");    
    </script>    
    <div id="flashcontent2">AutoViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash here.</a> </div>    
    <script type="text/javascript">
        var fo2 = new SWFObject("autoviewer.swf", "autoviewer2", "100%", "100%", "8", "#181818");        
        fo2.addVariable("xmlURL", "gallery2.xml");                    
        fo2.write("flashcontent2");    
    </script>    
</body>
</html>
Steven Speirs
SimpleViewer Support Team.

Re: Multiple Galleries on multiple pages

Many thanks for your help on this, I think I've got it resolved by using subfolders for each gallery. For some reason it did not like the gallery.xml being renamed.
Anyway, thanks again.
smile

Re: Multiple Galleries on multiple pages

Having the same problem I guess, but I am using Dreamweaver, so I don't have the possiblities to change "fo.addVariable", because it's not in the code. I made a new SWF with Lightroom and named it "viewer2.swf" and I embed it and works, but gives me the wrong gallery.. How do I point it to the right one?

Re: Multiple Galleries on multiple pages

@duoco

Please see the 'Note for Dreamweaver Users' on the 'AutoViewer Embedding Guide' page: http://simpleviewer.net/autoviewer/supp … dding.html
... and use the recommended embedding code from the same page.
With the recommended embedding code, you can point your gallery towards a specific XML file by using the xmlURL option in the following form:

fo.addVariable("xmlURL", "gallery2.xml");
Steven Speirs
SimpleViewer Support Team.

Re: Multiple Galleries on multiple pages

Steven Speirs wrote:

@duoco

Please see the 'Note for Dreamweaver Users' on the 'AutoViewer EMbedding Guide' page: http://simpleviewer.net/autoviewer/supp … dding.html
... and use the recommended embedding code from the same page.
With the recommended embedding code, you can point your gallery towards a specific XML file by using the xmlURL option in the following form:

fo.addVariable("xmlURL", "gallery2.xml");

Ok, thanx, this time it did work. Now the only problem left is to get the background to be transparent. It was an easy fix in DW, but now , typing "transparent" in the color code gives me a green color.

Re: Multiple Galleries on multiple pages

Add the following to your embedding code before the 'fo.write("flashcontent");' line:

fo.addParam("wmode", "transparent");
Steven Speirs
SimpleViewer Support Team.