zenphoto forums » Installation Support

Update of the script and theme change

(6 posts)
  1. Sponsi

    Junior
    Joined: Sep '10
    Posts: 8

    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.

    Posted 1 year ago #
  2. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,360

    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.

    Don't forget to read the Forum rules and usage resources
    Posted 1 year ago #
  3. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,768

    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.

    Don't forget to read the Forum rules and usage resources
    Posted 1 year ago #
  4. Sponsi

    Junior
    Joined: Sep '10
    Posts: 8

    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?

    Posted 1 year ago #
  5. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,360

    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.

    Don't forget to read the Forum rules and usage resources
    Posted 1 year ago #
  6. Sponsi

    Junior
    Joined: Sep '10
    Posts: 8

    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.

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.