Menu

#3 comments dissapear when changing gallery order

closed
nobody
None
5
2014-07-12
2004-05-06
No

If you submit a comment to an image, then the admin
rearranges the order of the galleries, the comments
dissapear.

This is due to the fact that comments are stored in
files named as GID_PHID (example: 8_4)

When the GID changes, the files are not renamed, so the
comments dissapear.

When changing the order (the GID changes), the files
should be renamed to reflect the new GID.

Alternatively, the comment filenames should not have
the GID in them, so if the gallery order changes, the
comments will still be read.
examples:
"_4" for picture 4
"_8" for picure 8

Then there would be no need to rename the files, as
they would all be in separate directories anyway.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Well, In order yo modify gid-dirs file, you only have to
    reorder the lines, not the numbers, that way you can change
    you gallery index. For example, gid-dirs file looks like this:

    1=>images1/
    2=>images2/

    You can change it to:

    2=>images2/
    1=>images1/

    Now, gid 2 appears first on gallery index.
    Anyway, on next release it will possible to reorder galleries.

    NaTaSaB.

     
  • Juan M.

    Juan M. - 2004-05-09

    Logged In: YES
    user_id=868982

    Did it worked?

     
  • Juan M.

    Juan M. - 2004-05-23
    • status: open --> closed
     

Log in to post a comment.

Auth0 Logo