Topic: Multiple Galleries issue

I have a test site running for a site I am making. I am having issues displaying 3 galleries on one page. Could someone please help me figure out this problem? THANKS smile

http://majesticwebcreations.com/bryce/R … esign.html

Re: Multiple Galleries issue

If you wish to embed multiple galleries on the same HTML page, then you will need to embed each gallery into a uniquely-named container. Currently you have three <div>'s named 'sv-container' on your page and all three galleries are embedded into the first one.
Also, your 'flashvars' variables should all have unique names.
Your three sections of embedding code should look something like the following:

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="http://www.majesticwebcreations.com/bryce/kitchens/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars1 = {};
flashvars1.baseURL = "http://www.majesticwebcreations.com/bryce/kitchens/";
simpleviewer.ready(function () {
simpleviewer.load("sv-container1", "100%", "100%", "000000", true, flashvars1);
});
</script>
<div id="sv-container1"></div>
<!-- END SIMPLEVIEWER EMBED -->

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="http://www.majesticwebcreations.com/bryce/bathrooms/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars2 = {};
flashvars2.baseURL = "http://www.majesticwebcreations.com/bryce/bathrooms/";
simpleviewer.ready(function () {
simpleviewer.load("sv-container2", "100%", "100%", "222222", true, flashvars2);
});
</script>
<div id="sv-container2"></div>
<!-- END SIMPLEVIEWER EMBED -->

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="http://www.majesticwebcreations.com/bryce/otherrooms/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars3 = {};
flashvars3.baseURL = "http://www.majesticwebcreations.com/bryce/otherrooms/";
simpleviewer.ready(function () {
simpleviewer.load("sv-container3", "100%", "100%", "222222", true, flashvars3);
});
</script>
<div id="sv-container3"></div>
<!-- END SIMPLEVIEWER EMBED -->

Also, you have a 'Gallery XML Not Found' message displayed. Make sure that each gallery's XML file is named 'gallery.xml' and is located directly inside each of the respective gallery folders.

Steven Speirs
SimpleViewer Support Team.

Re: Multiple Galleries issue

Thanks so much for the help! smile

After much review, I decide it would be better to have each gallery on it's own page. I have made the changes and built the pages accordingly but each gallery doesn't work or show anything. Could you please take a look at the site and let me know what the issue is? I have 4 galleries total: Kitchens, Bathrooms, Other Rooms and Showroom. Thanks!!

http://www.majesticwebcreations.com/bryce

Last edited by happypappy (2011-12-02 06:17:20)

Re: Multiple Galleries issue

Your 'flashvar' variable in each of your galleries is named 'flashvars1' but the reference to it within the embedding code is 'flashvars'.
Change:

var flashvars1 = {};
flashvars1.baseURL = "http://www.majesticwebcreations.com/bryce/kitchens/";
simpleviewer.ready(function () {
simpleviewer.load("sv-container", "100%", "100%", "transparent", true, flashvars);

... to:

var flashvars = {};
flashvars.baseURL = "http://www.majesticwebcreations.com/bryce/kitchens/";
simpleviewer.ready(function () {
simpleviewer.load("sv-container", "100%", "100%", "transparent", true, flashvars);
Steven Speirs
SimpleViewer Support Team.

Re: Multiple Galleries issue

Thanks for providing the solution to that problem. It worked like a charm for me too. Very easy to understand, even for non-HTML types.