1
jfmoore
Upgrades: How to keep up with file changes
  • 2006/7/13 12:37

  • jfmoore

  • Quite a regular

  • Posts: 360

  • Since: 2004/6/6 5


One of the nice things about XOOPS is that it is tweakable by people who are not php coders, but when you change files in XOOPS and/or modules and then upgrade, the changes could be lost. What is the best way to keep up with all of the changed files and not lose the changes upon upgrade?

This is a record keeping/organization thing, and I'm not doing a very good job right now. I know that there are others who do this more than I do and are better organized than I, and I would greatly appreciate their input and suggestions.

Thanks,
Jere
...

2
Dave_L
Re: Upgrades: How to keep up with file changes
  • 2006/7/13 13:41

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


My method isn't ideal, but here it is.

1) I maintain a file hacks.txt, that looks like this:

XOOPS Base version2.2.4

---------------
INSTALLED HACKS
---------------

#*#WHOS_ONLINE_CLEANUP#
Removed the "Members: # Guests: #" from the Who's Online block.
Modified:
 - modules/system/templates/blocks/system_block_online.html
Remarks:
 - Since this is a template change, it might not be considered a "hack".

#*#HTTPS_FIX#
Allow blocks to be displayed on the admin index page for https:// URLs.
Modified:
 - kernel/module.php
References:
 - http://dev.xoops.org/modules/newbb/viewtopic.php?topic_id=1096
 - https://sourceforge.net/tracker/index.php?func=detail&aid=1412858&group_id=41586&atid=430840
Remarks:
 - This is a bug fix; patch posted at above sourceforge.net tracker URL.

#*#LOG_DB_UPDATES#
Log database update queries.
Modified:
 - footer.php
New:
 - path/to/log/dir/ (writable)
 - path/to/log/dir/.htaccess (contains "deny from all")
Remarks:
 - This allows us to monitor malicious or accidental database changes.


2) I label changes within files using the above tags, e.g. #*#HTTPS_FIX#. "#" is a comment character in PHP; in other contexts, the tag would need to be bracketed with the appropriate comment delimiter(s), such as <{* #*#HTTPS_FIX# *}> for Smarty.

3) I always save the full distribution .zip or .tar.gz for the base XOOPS version I'm using.

4) I use BeyondCompare for comparing directories and files.

Login

Who's Online

309 user(s) are online (266 user(s) are browsing Support Forums)


Members: 0


Guests: 309


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits