Topic: Problems with mobile gallery

Hi,
I have Simplewiever Pro 2.2

Path to gallery script:

www.somedomain.com/Gallery/index.php

<?
$id=$_GET['id'];
?>
<script type="text/javascript" src="http://www.somedomain.com/Gallery/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars = {};
<?
echo "flashvars.galleryURL=\"http://www.somedomain.com/files/Gallery/".$id."/gallery.xml\";"
?>
simpleviewer.ready(function () {
simpleviewer.load('sv-container', '100%', '100%', '6C030D', true, flashvars);
});
</script>
<div id="sv-container"></div>

params in XML gallery file:
thumbPath="../files/Gallery/201110291/thumbs/"
imagePath="../files/Gallery/201110291/images/"

Path to location with many galleries:

www.somedomain.com/files/Gallery/

In this location there are many folders named like 201102111 - this is PHP ID

When I open gallery in PC it's OK,

www.somedomain.com/Gallery/index.php?id=201102111

but in iPhone script read gallery.xml file but path to images and thumbs files is wrong and looks like this: www.somedomain.com/Gallery/FILENAME

but should be:
www.somedomain.com/files/Gallery/201102111/images/FILENAME

If anyone know how fix this problem, please help me smile

Re: Problems with mobile gallery

params in XML gallery file:
thumbPath="../files/Gallery/201110291/thumbs/"
imagePath="../files/Gallery/201110291/images/"

The thumbPath and imagePath configuration options were deprecated in v2.1.2.
Please see the SimpleViewer Version History for details: http://simpleviewer.net/simpleviewer/history.html
Please use the imageURL and thumbURL attributes to the <image> tags is the gallery's XML file instead, such as:

<image imageURL="images/image.jpg" thumbURL="thumbs/thumb.jpg" linkURL="http://www.example.com" linkTarget="_blank">
<caption></caption>
</image>
Steven Speirs
SimpleViewer Support Team.

Re: Problems with mobile gallery

Thank you. I upgraded XML attribute names and gallery work fine.