Customized code/themes and updates

Hi,

I wonder if zenphoto can handle gracefully such situations as when admin manually edits of some code/theme and then tries to update it. For example, Gallery2(from which I'm migrating) looks for the 'local/' subdirectory and if the file is found, never uses original file(one dir up). And upgrade will update the original file and not that one under local/ dir. Or, phpBB shows pretty nice diffs on upgrade stage.

So, the questions is - which is the better way, to customize code/themes to prevent loosing it on update? Sure, I understand that the best way is to create plugins/own themes, but just in case? I'm unfamiliar with Zenphoto's upgrade procedure, so asking in advance.

Comments

  • It will always be a better approach to make a copy of code you wish to modify and use it as a custom function. I am not familiar with that feature of Gallery2, but from your description it seems fraught with peril. That approach would guarentee you are using out of date zenphoto code whenever we make changes to the script.

    Your other approach is to use the filter architecture to add to zenphoto. Of course that presumes that what you want to effect has a filter associated with it.
  • divan Member
    sbilliard, thanks, I'l learn about filter architecture.
Sign In or Register to comment.