Topic: making 2 differrent viewer layout..

i have a website that need 2 different style of simple viewer. One have 3 by 3 column thumbnail and one have 1 column thumbnail. The 1st gallery have 125x125 pixels.. and the other have 50 by 50 pixels. I already put everything in different folder, including the 'com' folder. But the gallery influence each other. If i load the 125x125 gallery, the 50x50 gallery use the 125 setting. any clue of this?

Re: making 2 differrent viewer layout..

You need to have two completely separate galleries with completely separate indexes like this:

your_gallery_folder_01
.........images
.........thumbs
.........gallery.xml (with 3x3 and 125 pixels)
.........index.html
.........swfobject.js
.........viewer.swf

your_gallery_folder_02
.........images
.........thumbs
.........gallery.xml (with 1x3? and 50 pixels)
.........index.html
.........swfobject.js
.........viewer.swf

then use standard header or footer or other indexing method to address the two separate index.html files as per the FAQ.

Regards
Phil
http://www.phillipnorman.com

Re: making 2 differrent viewer layout..

Here is how I did to have multiple gallerys

* The structure
index.php
gallerys
.....gallery1
.....gallery1_thumbs
.....gallery2
.....gallery2_thumbs
   .
   .
.....galleryn
.....galleryn_thumbs
.....gallery1.xml
.....gallery2.xml
   .
   .
.....galleryn.xml
 
 
* Modify each xml file like this :
gallery1.xml put imagePath="gallerys/gallery1/" thumbPath="gallerys/gallery1_thumbs/
gallery2.xml put imagePath="gallerys/gallery2/" thumbPath="gallerys/gallery2_thumbs/
galleryn,.xml put imagePath="gallerys/galleryn/" thumbPath="gallerys/galleryn_thumbs/


* In my index.php I just call the right xml file depending on my menu

<?php
    if(isset($_GET['gallery']))
    {
        $indexGallery = $_GET['gallery'];
        echo "<div class='center' id='gallery'>";
        echo "<script type='text/javascript'>";
        echo "<!--n";
        echo "var strgallery = '/gallerys/gallery$indexGallery.xml';n";
        echo "var so = new SWFObject('/viewer.swf', 'viewer', '813', '650', '8', '#506E87');n";
        echo "so.addVariable('xmlDataPath', strgallery);n";
        echo "so.write('gallery');n";
        echo "// -->";
        echo "</script>n";
    }
    else
    {
        echo "<div class='center'>";
        include "texte.php";
    }
    echo "</div>";
?>