ZenphotoCMS Forum
upgrading simpleviewer to version 2? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: upgrading simpleviewer to version 2? (/thread-6414.html)



upgrading simpleviewer to version 2? - Herr - 2010-01-09

hi all, i'm trying to upgrade simpleviewer, wich is used in the Effervescence+ theme, to version 2 pro.

version2 uses a xml-file (gallery.xml) for its configuration. My trial&error method doesnt work this time, simpleviewer cannot find gallery.xml
I think i need some help from mr. Angoulvant or Billard!

This is how it works local:

`

        var flashvars = {};
        flashvars.galleryURL = "gallery.xml";
        var params = {};
        params.allowfullscreen = true;
        params.allowscriptaccess = "always";
        params.bgcolor = "222222";
        swfobject.embedSWF("simpleviewer.swf", "flashContent", "100%", "100%", "9.0.124", false, flashvars, params);

`
It would be great to get this working, while simplviewer-pro includes a very wysiwyg-editor for simpleviewer, it gereates the gallery.xml file.

Thanks a lot in advance




upgrading simpleviewer to version 2? - sbillard - 2010-01-09

Has simpleviewer obsoleted the xmlDataPath variable? Perhaps that is just changed to the galleryURL parameter. If so, just set that variable to $flash_URL. Otherwise I have no idea. The XML is generated on-the-fly so there is no file available.




upgrading simpleviewer to version 2? - Herr - 2010-01-09

hi Sbillard, thanks for your reaction.

Yes the xmldatapath has changed into the galleryURL parameter.

what do you mean by 'generated on-the-fly'? i have uploaded that xml file in the same directory. the xml is generated on the desktop.




upgrading simpleviewer to version 2? - sbillard - 2010-01-09

You mean that you are providing your own version of that file rather than having Zenphoto (EF+) create it? Then I do not understand what the issue is.




upgrading simpleviewer to version 2? - Herr - 2010-01-09

thats correct. i'm trying to embed simpleviewer pro V2 into zenphoto...




upgrading simpleviewer to version 2? - sbillard - 2010-01-09

Then you must use the proper path to the file. That would, of course, depend on where you put it. But an qualified filename would not likely work.

Of course you realize that if you are using simpleviewer pro for your gallery you don't really need zenphoto.




upgrading simpleviewer to version 2? - Herr - 2010-01-10

? no of course i dont, i want to use simpleviewerpro only for viewing the images with flash, the rest, and thats a lot, is in the hands of zenphoto.




upgrading simpleviewer to version 2? - sbillard - 2010-01-10

So, then why are you not having EF+ generate the HTML? Otherwise you will have to sync your gallery.xml file to any changes in your gallery. That is why EF+ works the way it does in the first place.




upgrading simpleviewer to version 2? - Herr - 2010-01-10

it took some time, but finally i understand what you are saying.
Thank you sbillard, i will hire a developer to make the swf the way i want, and use version 1.9, cause they dont supply the sourcecode with version 2.x