Topic: can get 2 galleries on 2 different html to work

I've been trying to get this to work for a day now, I tried any possible example I found here, in the support and faq, no go.

I have one root directory with

photo.html
studio.html
images
svcore
thumbs
gallery.xml
gallery1.xml

Photos for both galleries are in the images directory
thumbs for both galleries are in the thumbs directory
both galleries share the  svcore directory
photos and thumbs they all have unique names

studio.html has the general code and calls gallery.xml just fine, the gallery shows up fine

this is the code:

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
simpleviewer.ready(function () {
simpleviewer.load("sv-container", "100%", "340px", "transparent", true, null, null, null, false);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->

photo.html which calls gallery1.xml I have tried any possible way, flashvars like galleryURL, baseURL, and so on but either the other gallery shows up again or I get the "gallery xml not found message"

Could you guy please tell me the correct code for my situation, I'm gone mad.

Thanks

Last edited by jo1st (2011-07-18 14:23:04)

Re: can get 2 galleries on 2 different html to work

In order to use the 'gallery1.xml' XML file, the embedding code in 'photo.html' should look something like this:

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars={};
flashvars.galleryURL="gallery1.xml";
simpleviewer.ready(function () {
simpleviewer.load("sv-container", "100%", "340px", "transparent", true, flashvars, null, null, false);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->

For reference, the 'SimpleViewer Embedding Guide' can be found here: http://simpleviewer.net/simpleviewer/su … dding.html

Steven Speirs
SimpleViewer Support Team.

Re: can get 2 galleries on 2 different html to work

i did that already once but just to be sure I just copied your code as it is and still the gallery.xml get's recalled and shows the gallery from the studio page

Unfortunately....................

I really need help

Re: can get 2 galleries on 2 different html to work

Please post the URL to your gallery so that we can take a look.

Steven Speirs
SimpleViewer Support Team.

Re: can get 2 galleries on 2 different html to work

dear Steven

Unfortunately my gallery is not online, any other way we can get this to work? the site is currently online but I'm allowed to upload the other gallery content pages until it works or the visitors of the site will see a messed up site

Re: can get 2 galleries on 2 different html to work

i put it online

1st working gallery dafault

http://u-takestudio.com/en/studio.html

2nd gallery not working with fashvars still showing same content as galley 1

http://u-takestudio.com/en/photo.html

thanks for the help

Re: can get 2 galleries on 2 different html to work

You currently have 3 different lots of embedding code on your 'photo.html' page and it will be the last one on the page which will be displayed in the 'sv-container' <div>.
The last lot of embedding code does not have a galleryURL specified so it will look for an XML file named 'gallery.xml' (which is used by your 'studio' gallery).
It looks like you should keep the first lot of embedding code on your 'photo.html' page and remove the other two.

Steven Speirs
SimpleViewer Support Team.

Re: can get 2 galleries on 2 different html to work

love you man, I feel like an idiot

thank you