"Rename Album" outside of Gallery

raventures
raventures's picture

Joined: 2003-09-19
Posts: 30
Posted: Sat, 2004-01-31 16:52

I am integrating Gallery into an existing, ASP and MS Access driven website. I need to create a "Rename Album" function. By looking into the .dat files, I determined their basic format and my software does the following steps:

1. Renames target folder to new album name

2. Modifies the target "isAlbumName" value to the new album name within the parent album's photos.dat file

3. changes the old album name to the new one in albumdb.dat file.

However a runtime error occurs and the albumdb.dat files gets overwritten by Gallery with just a "b:". The parent album where the renamed album is will show correctly. If I reset the albumdb.dat back to the original, then the parent album's photos.dat file gets overwritten by Gallery and many of the photo string lengths are set incorrect e.g. an "album01" is saved properly, but the field value length has been reset to "6" instead of the required "7".

Short of telling me to rewrite verything in PHP, can anybody tell me what Gallery 1.4 is doing or expecting that I have not fulfilled? Thanks in advance.