Update of the script and theme change

Hello,

Is it a rule that the default theme is overwritten when updating?
I have a customized file light.css in /themes/default
which is overwritten on 4 out of 5 installations of Zenphoto I am using.

Is there something wrong if it isn't overwritten? I can't figure out the rule... the installations are nearly all the same in terms of albums, galleries, versions, etc.

Thanks,

M.

Comments

  • acrylian Administrator, Developer
    There is no "rule". If you upgrade you are the one that uploads the files.

    So you decided what to overwrite. If you upload the default theme of course all is overwritten. If you did not backup you custom files or as recommend made a copy of the theme under a new name what do you expect?

    Also if uploading folder overwrites the folder content directly or just adds missing files is a matter of how your FTP client is setup.
  • Of course, the "rule" (not enforced) is that you overwrite all the files provided by the Zenphoto package. If not Setup will tell you there is an issue as a warning.

    In addition, if you do not update all files, there may well be problems introduced due to compatibility issues.

    So if you intend to modify a theme, make a copy and modify the copy. Zenphoto provides a means to do that. Best still, if you operate this way you can compare your theme to the distributed one to see what has changed and may need to be updated in your theme.
  • OK, well it's obvious that I am overwriting everything.
    The question is... I have 5 nearly the same galleries, light.css is changed in every of them. 4 out of 5 get overwritten and changed back to blue, one stays green (customized by me). Why?
    No problems noticed, update goes through OK. Well... is it really OK?
  • acrylian Administrator, Developer
    Well, I cannot answer, you would have to compare the files to find that out. The best is - and recommend especially for zp.core - to delete the folders first and the reupload fresh. That way you really have all the right files.

    Setup will of course warn about wrong ones as well.
  • Wow, so maybe I was doing updates not really the proper way - I just found this way in the documentation.

    So I should just leave 'albums' and delete everything, leave the database as it is and upload the new files... and the installer-updater will fill the files and I won't lose my galleries?
    Gotta try that.
Sign In or Register to comment.