Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: What modifications may be moved into my template?  (Read 1993 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.022 seconds with 19 queries.