Quote:
kjs222 wrote:
I'M AFRAID TO UPGRADE!
I appreciate the advice, and I know the IDEAL is to update; however, the site in question is HIGHLY modified (almost every template, language files, and some php files)... Soo..... I'm hesitant to perform the upgrade.
Hacks! Oh no! (kidding). XOOPS was built OSS, so you can of course. Just don't block yourself from an upgrade path. In general you should keep a pristine copy of the source before you modify it and keep good notes on what you modified and for what purpose.
...but then who is that organized, right?...
1) Get a copy of the original source from CVS of the XOOPS version your site is based on. I posted a quick how-to get it from CVS some time back in the forums.
2) Compare the pristine version to yours. Make notes on what you've changed. There are a number of excellent (and free!) file comparison tools. I use
WinMerge, not sure if it compares entire directories at a time though.
3) Use the Template Manager to download your current templates. This will be redundant if you have been modifying the template files in the file system.
4) Get the latest XOOPS. Apply the changes you noted in step 2 to the latest XOOPS, if necessary.
5) Have a beer, you've earned it.
Keep your notes and use them next time you need to upgrade.
As an advanced tip, if you do a lot of hacks (or are too lazy to keep good notes), then you should look into using CVS* as the source code management utility. It can store the pristine XOOPS code along with your modifications, all versioned nicely. Import XOOPS on a vendor branch, update it with your changes and re-import onto that vendor branch again when there is an update from XOOPS core.
* I
highly recommend
CVSNT, it runs on Windows and Linux. Add on
TortoiseCVS as the front end, and you're off and running. These packages are extremely useful if you are doing any sort of development, especially when modifying someone else's code to your needs.