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 :)