forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: toer on March 19, 2012, 06:06:12 pm

Title: What modifications may be moved into my template?
Post by: toer on March 19, 2012, 06:06:12 pm
I run a modified water_drop theme but I have succeeded to include only a few of the changes in the template.
So, these are the modified 'core files':
Code: [Select]
  displayimage.php         
  exifmgr.php             
  edit_one_pic.php         
  editpics.php             
  include/exif.php         
  include/exif_php.inc.php
  include/functions.inc.php
  include/init.inc.php     
  include/picmgmt.inc.php 
  lang/swedish.php
The actual modifications are essentially described (except language) in
http://forum.coppermine-gallery.net/index.php/topic,74588.0.html
(thanks, so far, for the hints to get started!)

What is the best way to handle these things in order to be prepared for the next CPG upgrade? What modifications may be moved into my template?

Or, is there a nice way to handle upgrades with some 'diff' technique? Else, this will certainly generate much headache at each upgrade occasion ...!?
Title: Re: What modifications may be moved into my template?
Post by: toer on March 20, 2012, 07:39:22 am
Please, did I miss some reading somewhere, or ...?
Title: Re: What modifications may be moved into my template?
Post by: Αndré on March 20, 2012, 10:30:29 am
What modifications may be moved into my template?
It's not possible to determine if you can include some of the changes in that files to your theme by just looking at that list. Probably it's not possible or quite hard, as the theme engine just displays delivered data. Maybe it's possible with the plugin engine.


is there a nice way to handle upgrades with some 'diff' technique?
This is my approach:
- Checkout (http://documentation.coppermine-gallery.net/en/dev_subversion.htm#dev_subversion_checking_out) either the cpg1.5.x trunk or a particular cpg1.5.x tag from our SVN repository (http://coppermine.svn.sourceforge.net/viewvc/coppermine/).
- Apply all your modifications to that files.
- When you want to update your gallery, just perform an SVN update (or SVN switch, depending on what you've chosen in the first step). This will update all files to the latest version while keeping your modification, if there are no conflicts.
- Now you're ready to export (http://documentation.coppermine-gallery.net/en/dev_package.htm#packaging_steps_svn_export) and upload the files to your actual gallery.
Title: Re: What modifications may be moved into my template?
Post by: toer on March 20, 2012, 09:19:52 pm
I see. Sorry not to be very well acquainted neither with svn nor git but I will try to improve!