album.dat file need editing

Falstaf
Falstaf's picture

Joined: 2002-10-06
Posts: 3
Posted: Sun, 2002-10-06 12:18

Hi!

First of all, my gallery works fine. I just have some configuration problems.
Really love it, used MiG for 1 year... feels wasted :smile:

back to my problem,

I uploaded images to my gallery with rows and colls settings(configure.sh) set to 4.
I then changed it to rows 3 and colls 4 in the configuration.
but each album has its own album.dat with those settings

and whenever i try to modify it by just changeing the ...;s:4:rows; to a 3 it says in admin logged in mode that the directory is an invalid album directory and should be removed.

probably simple, but i cant figgure it out :smile:

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2002-10-07 00:25

Editting the .dat files by hand is risky, as you're discovering. Of course you can do this by using the [properties] link on an album, but if you want to do it directly on the .dat files you need to change:

s:4:"rows";s:1:"4"

to:

s:4:"rows";s:1:"3"

You were changing the length of the "rows" string, which was causing the problem.
You need to change the *value* of the rows value string instead.