Topic: Upgrading 1300+ galleries to 211 from 19

Hi everybody, straight to the point:

How do I do upgrade more than 1300 galleries without spending a week working on it full time?

They are all here: www.denaflows.com


Besides, I've been trying with one of them, the Wovenhand gallery;
http://www.denaflows.com/Photos/Concert … /index.php

I've followed the steps detailed here:
http://simpleviewer.net/simpleviewer/pr … grade.html

and found out that...

a) ...it works.
Great!

b) ...I've lost the framecolor option.
I don't remember where I set it in v.1.9 but it wasn't in the XML itself. So, now, I have to change the parameter in all my 1300+ XMLs.
Crazy!

c) ...Regarding unversal playback (main reason for me to upgrade):
I can't see the gallery in my Nokia n97. It keeps asking for flash. (with Opera and bundled navigator)

d) In three galleries, so far, I've bumped into "cannot parse gallery XML" message. This is new to me.

Any help?

Thanks in advance.

Best regards. Dena Flows

Last edited by denaflows (2010-12-08 20:06:34)

Re: Upgrading 1300+ galleries to 211 from 19

Dena,

I don't have the answer to your question but I have to say you kick ass!!!

I've never seen a personal web site with so many pages and images.

Wow!


Anthony

Re: Upgrading 1300+ galleries to 211 from 19

Hi,

upgrading 1300 galleries will take some time however you do it.

The upgrade instructions tell you to open each gallery in svBuilder-Pro to update it, but this is not a good option for 1300 galleries.

To upgrade to v2.1 you need to:
1) update the embed code for each gallery and
2) point to a copy of the new 'svcore' folder which contains all the gallery core files.

In your case I would use a single shared 'svcore' folder and use a site wide find-and-replace to switch out the simpleviewer embed code. Check here for instructions on pointing to an external svcore folder: http://www.simpleviewer.net/simpleviewe … tml#svcore

Assuming each gallery is in its own folder with a gallery.xml and an images and thumbs subfolder. Create a copy of the svcore folder from the pro download web folder and place it at http://www.mysite.com/svcore/. Then switch your embed code to something like this:

<script type="text/javascript">
var svCoreURL = 'http://www.mysite.com/svcore/';
</script>
<script type="text/javascript" src="http://www.mysite.com/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
jQuery(document).ready(function () {
SV.simpleviewer.load('sv-container', '100%', '100%', '222222', true);
});
</script>
<div id="sv-container"></div>
Felix Turner
SimpleViewer Support Team.

Re: Upgrading 1300+ galleries to 211 from 19

Thank you AnthoNYC for you cumplments.

And thanks Felix for your help.

I've done what you said, including the folder sharing (I had that done previously, in version 1.9)

It works in normal conditions, but I don't know about Iphones o Ipads, as I don't own one.

Can anybody tell me if this gallery
http://www.denaflows.com/Photos/Concert … /index.php
works in any of those devices?

Thanks again. Dena Flows

Re: Upgrading 1300+ galleries to 211 from 19

Hello again,

well, I have updated and upload all the galleries already. I am good looking for ways to automate processes :-)

But, I have a major problem. The HTML5 galleries won't work. They get stuck in the presentation screen as if no image was available in the gallery.

Alter some research through the code, I've noticed that the XML structure changed from v.19 to v.211.

v.19 goes  like this:

<image>
    <filename>004_wovenhand_4xii10.jpg</filename>
    <caption><![CDATA[004 Wovenhand<br>Kafe Antzokia, Bilbao<br>4/XI/2010<br><u>
<a href="http://www.denaflows.com/" target="_blank">www.denaflows.com</a></u>]]></caption>
</image>

and v.211 like this:

<image imageURL="images/004_wovenhand_4xii10.jpg" thumbURL="thumbs/004_wovenhand_4xii10.jpg" linkURL="" 
linkTarget=""><caption><![CDATA[004 Wovenhand<br>Kafe Antzokia, Bilbao<br>4/XI/2010<br><u>
<a href="http://www.denaflows.com/" target="_blank">www.denaflows.com</a></u>]]></caption></image>

In v.19 there used to be a single specification to the path where both the images and thumbs are. In the heading.

In v.211 you need to specify that in every single image.

I've done the modifications in one of my 1300+ galleries and now HTML5 works (not no my entire pleasue, but works).

So, now, THE question. I have been able to automate some processes but I can not  figure out how to convert the structures of all my XMLs automatically.

Do I really need to do that? or Is there any way to avoid this need?

Thanks, again, in advance.

All the best. Dena Flows

Re: Upgrading 1300+ galleries to 211 from 19

The mobile player does not currently support the old v1.9 image tag format.

To update your xml to the new format you can use a global find and replace using regular expressions. Using TextMate (Mac) you would do this:

 Find: <image><filename>(.*?)</filename>
Replace: <image imageURL="images/$1" thumbURL="thumbs/$1"> 
Felix Turner
SimpleViewer Support Team.

Re: Upgrading 1300+ galleries to 211 from 19

Pure code magic, Felix. Thank you very much. All new XML's are uploading at the moment.

If that's for the interest of anyone, as windows user, I have used TextCrawler instead of TextMate to perform the massive search-and-replace.

BUT, once again, happiness is not complete.

Mobile galleries work in all their functionality but the full screen option. At least in my n97 (Symbian, Opera mobile and bundled nabigator), it leads to a 404 file missing error.

Any advice on that?

Appart from that, is my understanding that there are no options for the image in the mobile player, aren't they? My images stretch and lose quality. It would be nice that they stay put in their actual resolution.

Thanks again,

all the best. Dena Flows