How do you upgrade with custom code?

Discussion in 'Customization & add-ons' started by chani, Sep 17, 2008.

  1. chani

    chani New Member

    Joined:
    Dec 18, 2007
    Messages:
    8
    So I'm wondering if any of the more experienced users have a great system to update without whacking all their custom code? The instruction really just tell you to overwrite if there is no change LOL!

    I'm using CVS just to make sure I can backtrack code but I have customized a lot of this from /templates to /language. I thoughts these would be "safe" from upgrades overwrite but I was mistaking (in 3.1.4 most templates are overwritten). I also mod'ed some php files (very minor changes).

    So how do you guys keep your sanity when it's time to upgrade???

    Thx :)
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    With the exception of templates, I resist the urge as much as I can to modify the core code.. I develop plugins where I need to extend (and hooks are available)
  3. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    I try to keep a log book of the hacks i made.

    For language file you can create a custom-en.php that wont be overwritten.


    David
  4. scott_wa1

    scott_wa1 aMember Pro Customer

    Joined:
    Aug 22, 2006
    Messages:
    62
    I agree with David - take detailed notes of all customizations you make so you can re-do them when you upgrade. An upgrade usually takes me 3-5 hours because I have to re-do customizations. :)

    Eventually some of those customizations become core features and I can drop them - hip hip hooray!!

Share This Page