- A flash based image gallery
The problem with getting SimpleViewer is that it requires additional files and expects to find everything in, or under, the current directory. For example, if the viewer.swf, gallery.xml, swfobject.js and subdirectories (images and thumbs) are all located in the same directory, then an html file that is located in that same directory can contain the following:
In PmWiki, uploading everything as attachments will put the files in the same locations, but that location (/uploads/$Group) is not the same as the location where the current page is rendered. Even if that were solved, the xml file and image and thumbs directories would need to be uploaded, which the core attachment feature does not support.
For SimpleViewer to be run remotely, absolute urls need to be specified in the embed portion of the html, in the gallery.xml file, as detailed below:
imagePath="http://www.mywebsite/mygallery/images/" thumbPath="http://www.mywebsite/mygallery/thumbs/" Add the following code to your myspace page. Enter the URLS to your viewer.swf and gallery.xml files: <embed src="http://www.mywebsite/mygallery/viewer.swf" FlashVars="xmlDataPath=http://www.mywebsite/mygallery/gallery.xml" bgcolor=#000000 WIDTH=420 HEIGHT=520 TYPE="application/x-shockwave-flash"></embed>