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: hacking/modding coppermine = upgrade impossible?  (Read 2787 times)

0 Members and 1 Guest are viewing this topic.

atmorell

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
hacking/modding coppermine = upgrade impossible?
« on: September 04, 2007, 04:01:54 pm »

Hello,

I have done quite a few changes to coppermines php files (mostly layout) and my site is soon ready to go online. However I fear that I will never upgrade to a new version because all my changes will be lost. Is there a better way than modifying the source?

Best regards.
Asbjørn Morell.
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: hacking/modding coppermine = upgrade impossible?
« Reply #1 on: September 04, 2007, 04:08:25 pm »

No , but you can keep track of your hacks by adding comment to each of them
Logged
‍I don't answer to PM with support question
Please post your issue to related board

atmorell

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: hacking/modding coppermine = upgrade impossible?
« Reply #2 on: September 04, 2007, 10:15:00 pm »

Hello Sami.

I always comment my hacks by a few lines. Okay thank you for comment.

Best regards.
Asbjørn Morell.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: hacking/modding coppermine = upgrade impossible?
« Reply #3 on: September 05, 2007, 09:14:22 am »

Is there a better way than modifying the source?
Hard to say without seeing your changes, but generally speaking you can accomplish most layout changes by creating a theme of your own and modifying it accordingly. Please read up the recommendations given in http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#theme_create
When doing as suggested and coming up with a theme of your own, the most important benefit is that you won't have issues when upgrading and won't lose your changes.
For details, post your changes (preferably zip your changed files and attach it to this thread).
If you can't accomplish your changes in a theme and need to modify the core code, you might find it helpfull to use a diff viewer like Winmerge to see the changes/differences between two files and come up with a delta.
Logged

skidpics

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 223
Re: hacking/modding coppermine = upgrade impossible?
« Reply #4 on: October 24, 2007, 03:56:04 pm »

It would be awesome to be able to change Coppermine, without having to edit each additional theme.  With so many wonderful themes available, customizing each theme can be tedious and I am sure at times, one forgets what to add where.   What other option would there be other than adding mods to the default source code as a base function to allow mods to work without editing each theme?
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: hacking/modding coppermine = upgrade impossible?
« Reply #5 on: October 24, 2007, 04:00:29 pm »

Now you are talking about plugin  ::)
Logged
‍I don't answer to PM with support question
Please post your issue to related board

skidpics

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 223
Re: hacking/modding coppermine = upgrade impossible?
« Reply #6 on: October 24, 2007, 04:02:47 pm »

Coming to think about it, very true.  that would solve most of the tweaking problems across the galleries, to figure out how to convert the mods into plugins..  What a task in itself.. 

Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.