I've just installed a photo-viewing app on my website that I really like, but I'm having one problem that I think is pretty minor and maybe someone here can help me. The app itself is freeware and it's made by a guy with very poor English. I really don't think I can get any help from him (not to mention that he provides it free of charge and I don't think he wants to provide technical support to thousands of people like me. Anyway . . .
The app has an administration component where I can upload photos one at a time, but that's not going to work for my purposes. I need to be able to get a batch job of like 400 photos transferring over FTP at one time and go to bed.
To that end, I've got a PICASA template/script that will generate thumbnails and the XML file necessary for the photo gallery, but the XML file it's creating isn't exactly what I need. It is generating files that look like this:
<SIMPLEVIEWER_DATA imagePath="./Test/images/" thumbPath="./Test/thumbs/" maxImageDimension="480" textColor="0xFFFFFF" frameColor="0xFFFFFF" backgroundColor="0x456789" frameWidth="20" stagePadding="40" thumbnailColumns="3" thumbnailRows="3" navPosition="right" navDirection="LTR" isPublished="true" title="Test">
<IMAGE>
<NAME>graduation.jpg</NAME>
<CAPTION>graduation.jpg</CAPTION>
</IMAGE>
<IMAGE>
<NAME>myspace.jpg</NAME>
<CAPTION>myspace.jpg</CAPTION>
</IMAGE>
<IMAGE>
<NAME>luna.jpg</NAME>
<CAPTION>luna.jpg</CAPTION>
</IMAGE>
<IMAGE>
<NAME>crying_kid.jpg</NAME>
<CAPTION>crying_kid.jpg</CAPTION>
</IMAGE>
</SIMPLEVIEWER_DATA>
</SIMPLEVIEWER_DATA>
But I need it to make files that look like this:
<SIMPLEVIEWER_DATA imagePath="./Test/images/" thumbPath="./Test/thumbs/" maxImageDimension="480" textColor="0xFFFFFF" frameColor="0xFFFFFF" backgroundColor="0x456789" frameWidth="20" stagePadding="40" thumbnailColumns="3" thumbnailRows="3" navPosition="right" navDirection="LTR" isPublished="true" title="Test">
<IMAGE>
<NAME>Luna.jpg</NAME>
<CAPTION><![CDATA[<a href="./Test/images/Luna.jpg" target="_blank"><u>Open image in new window</u></a>]]></CAPTION>
</IMAGE>
<IMAGE>
<NAME>graduation.JPG</NAME>
<CAPTION><![CDATA[<a href="./Test/images/graduation.JPG" target="_blank"><u>Open image in new window</u></a>]]></CAPTION>
</IMAGE>
<IMAGE>
<NAME>crying_kid.jpg</NAME>
<CAPTION><![CDATA[<a href="./Test/images/crying_kid.jpg" target="_blank"><u>Open image in new window</u></a>]]></CAPTION>
</IMAGE>
<IMAGE>
<NAME>myspace.jpg</NAME>
<CAPTION><![CDATA[]]></CAPTION>
</IMAGE>
</SIMPLEVIEWER_DATA>
As you can see, the problem is the stuff between the caption tags. But I don't know what any of that stuff is so I don't know how to fix the Picassa template so that it will create the files correctly. Here is the line in the Picasa template responsible for that line:
<image>
<NAME><%itemName%></NAME>
<CAPTION><%itemCaption%></CAPTION>
</image>
Is it immediately obvious how I can change the info in this last quote so that it will create XML files properly for me? If you have any interest in lending a hand, but need more info, like all the files from the Picasa template so you can see how it works, let me know.
Thanks.