zenphoto forums » Installation Support

How to Upgrade without overwriting my changes

(8 posts)
  1. darkufo

    Contributor
    Joined: Mar '11
    Posts: 123

    Hi,

    I'm currently on version 1.4.0.3 and was looking to see how I can upgrade to the latest version. I have modified my albumb.php, image.php, index.php and the css for my theme files.

    Is there a way to upgrade without overwriting my changes?

    Cheers
    Andy

    Posted 1 year ago #
  2. Zenphoto development team
    sbillard

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

    Depends. Did you make copies of the scripts or just modified the originals? If you did the latter, now would be a good time to make copies. The upgrade will replace all the files Zenphoto provided, so if you modified the theme files directly these changes would be overridden.

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

    Contributor
    Joined: Mar '11
    Posts: 123

    Ok, so I would then have to re-add all my changes back into those files

    Posted 1 year ago #
  4. Zenphoto development team
    sbillard

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

    Not if you make a new copy and use that copy, not the released scripts. That is what you should have done in the first place.

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

    Contributor
    Joined: Mar '11
    Posts: 123

    Sorry, I think I'm misunderstanding.

    Make a copy of what?

    All I did after my initial installation was to to add some code to the album, image and index.php files.

    Can you take me through what I should do if I wanted to make changes to those files. Is there a better way?

    Sorry I'm now more confused :(

    Posted 1 year ago #
  6. Zenphoto support team
    fretzl

    Moderator
    Joined: Sep '08
    Posts: 528

    Make a backup of your (modified)theme folder.
    Follow the upgrade instructions http://www.zenphoto.org/news/installation-and-upgrading#2
    (Be sure to also make backups of your albumsfolder, uploaded folder and backup folder)
    Put back your modified theme folder after the upgrade.

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

    Developer
    Joined: Jul '07
    Posts: 13,355

    What you should have done before modifying is to copy/duplicate the theme used and rename it (= make a custom theme). Say you used the default theme, duplicate it and rename it my_default. You can still do that. Best place a copy elsewhere so you don't accidentally delete it on upgrade. Copy it back later.

    If you don't overwrite hte contents of the themes folder completly and just replace the standard themess your custom theme won't be overwritten.

    Same with any plugin you may have modified. (You of course should NEVER modify core files.)

    Of course if you modified an very old version of the theme it might need an update. Then you have to either update the modified theme or reapply your changes to a new version (and do all above again).

    See http://www.zenphoto.org/news/installation-and-upgrading#4 for an explanation of what files to update.

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

    Contributor
    Joined: Mar '11
    Posts: 123

    Thanks very much. I managed to upgrade now.

    Appreciate your help

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.