Topic: How can i have two galery in a php page

hi all

I would like to know how i can have two galery in one .php file ?

I have try to create 2 folders with 2 different galery but it doesn't work

do you have any solution ?

Thanks in advance !

Re: How can i have two galery in a php page

Instructions for embedding multiple galleries (on separate HTML pages and on a single HTML page) can be found here.

I would recommend keeping each gallery in its own separate folder and using the baseURL method of embedding as documented here.
If using the sample code in the baseURL section for each gallery, be sure to embed each gallery in a <div> with a unique 'id' and give each gallery's 'flashvars' variable a unique name.

If you continue to experience difficulties, please post the URL to your web page so that I can take a look.

Steven Speirs
SimpleViewer Support Team.

Re: How can i have two galery in a php page

Thanks for your help

I will try it  and i contact you back


(Sorry if my english is not "perfect", i'm french user)

Re: How can i have two galery in a php page

Hi

I try to insert that but it's the same issue.



<script type="text/javascript" src="http://www.magnanym.fr/galerie2/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.baseURL = "http://www.magnanym.fr/galerie2/";
simpleviewer.ready(function () {
simpleviewer.load("sv-container", "600", "500", "transparent", true, flashvars);
});
</script>
<div id="sv-container"></div>


In my webpage I have inserted it for the first gallery  :

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="/galerie/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
simpleviewer.ready(function () {
simpleviewer.load("sv-container", "600", "500", "transparent", true);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->

Maybe i need to put the "flashvar" in the first gallery ?

Thanks in advance

My website : http://www.magnanym.fr/photos.php

Re: How can i have two galery in a php page

Both your galleries are being embedded into the same container ('sv-container').
Choose a unique id for each gallery's container <div>.
For example, change your second gallery's embedding code to:

<script type="text/javascript" src="http://www.magnanym.fr/galerie2/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.baseURL = "http://www.magnanym.fr/galerie2/";
simpleviewer.ready(function () {
simpleviewer.load("sv-container2", "600", "500", "transparent", true, flashvars);
});
</script>
<div id="sv-container2"></div>
Steven Speirs
SimpleViewer Support Team.

Re: How can i have two galery in a php page

Hi

When i try it i have the same "image" gallery in the two gallery :s

Re: How can i have two galery in a php page

If both your galleries use a 'flashvars' variable, then each gallery will need a unique 'flashvars' variable name.
Your first gallery does not currently use a 'flashvars' variable (or a baseURL) but displays the 'Gallery XML Not Found' message because there is no 'gallery.xml' file located here: http://www.magnanym.fr/gallery.xml
It looks like you might want to use a baseURL for your first gallery as follows:

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="http://www.magnanym.fr/galerie/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars1 = {};
flashvars1.baseURL = "http://www.magnanym.fr/galerie/";
simpleviewer.ready(function () {
simpleviewer.load("sv-container1", "600", "500", "transparent", true, flashvars1);
});
</script>
<div id="sv-container1"></div>
Steven Speirs
SimpleViewer Support Team.

Re: How can i have two galery in a php page

Thank you so much it's working !