Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: What modifications may be moved into my template?  (Read 2130 times)

0 Members and 1 Guest are viewing this topic.

toer

  • Coppermine newbie
  • Country: se
  • Offline Offline
  • Posts: 10
What modifications may be moved into my template?
« 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 ...!?
Logged

toer

  • Coppermine newbie
  • Country: se
  • Offline Offline
  • Posts: 10
Re: What modifications may be moved into my template?
« Reply #1 on: March 20, 2012, 07:39:22 am »

Please, did I miss some reading somewhere, or ...?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: What modifications may be moved into my template?
« Reply #2 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 either the cpg1.5.x trunk or a particular cpg1.5.x tag from our SVN repository.
- 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 and upload the files to your actual gallery.
Logged

toer

  • Coppermine newbie
  • Country: se
  • Offline Offline
  • Posts: 10
Re: What modifications may be moved into my template?
« Reply #3 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!
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 20 queries.