(9 replies, posted in SimpleViewer v1)

Thanks very much ;)

Some updates:

I got the Windows XP Image Publisher to work and I now can post images directly to the /images directory (no need for FTP etc...)

Would be great if I had the .fla file of the viewer or if the authors are interested in continuing development.... (do I hear a challenge???)....

More to come...



(9 replies, posted in SimpleViewer v1)

Sure... here we go....:

Let's assume you have one set of pictures and you would like to launch it  in a different looking galleries.

For example, you want to show the thumbnails on the left with 4 columns and 5 rows in one gallery and maybe show the thumbnails as 1 row of 6 thumbs right under the big image in another gallery.

Currently, you would probably duplicate the xml file and modify it... which is cool. However the next time you update your gallery with new images, you will have to do it all over again.

I had a need to switch between left and right handed thumbs because I had to show the same gallery in multilingual site which support also right-to-left language (Hebrew).

What I did, is basically modified the buildgallery.php so it creates 2 sets of options $options1, $options2 and created 2 additional XML vars $xml1, $xml2.
Then I assigned each of the $xml vars with the corresponding $options value.

At the end of looping through the thumbnails (and creating the default $xml var without the options) I appended the $xml value to $xml1 and to $xml2

Now I have 2 XML streams waiting to be written out.

I copied the section of the xml file export and modified it so each copy created a different xml file using the corresponding $xml1 and $xml2 vars and different file name of course.

Next step, I duplicated the index.html and created index1.html and index2.html.
Added the "fo.addVariable("xmlDataPath", "file?.xml"); " to each file where the ? is 1 or 2.

And that's it... when you launch each index?.html you get differently looking gallery with the same pictures.

My next step would be to modify the buildGallery so it can manage more than 1 image folder at once. I've been also thinking of building some admin tool where you can create galleries and skins by using a form... or integrate it with the Windows XP publishing module so you can just select the images on your computer and publish them to the correct gallery/folder on your web site and then it will automatically update the xml files... lots of options... but not sure if the creators would allow this though :-)

Hope this helps...



(9 replies, posted in SimpleViewer v1)

Thought I post an update.

I modified the buildgallery so it creates 2 xml files from the same image collection. I will be more than happy to share... just drop me a note.

This is really cool photo gallery :-)



(9 replies, posted in SimpleViewer v1)

I assume I could also use 2 or more xml files?

Also how can I modify the buildgallery.php to create diferent flavors of the xml (mostly to change the &options var) for the same images?

I guess I could create several &options vars such as &options1, &options2 etc and then reference them when exporting the xml. But I wonder if there is an easier way...