forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: atmorell on September 04, 2007, 04:01:54 pm

Title: hacking/modding coppermine = upgrade impossible?
Post by: atmorell 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.
Title: Re: hacking/modding coppermine = upgrade impossible?
Post by: Sami on September 04, 2007, 04:08:25 pm
No , but you can keep track of your hacks by adding comment to each of them
Title: Re: hacking/modding coppermine = upgrade impossible?
Post by: atmorell 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.
Title: Re: hacking/modding coppermine = upgrade impossible?
Post by: Joachim Müller 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 (http://winmerge.org/) to see the changes/differences between two files and come up with a delta.
Title: Re: hacking/modding coppermine = upgrade impossible?
Post by: skidpics 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?
Title: Re: hacking/modding coppermine = upgrade impossible?
Post by: Sami on October 24, 2007, 04:00:29 pm
Now you are talking about plugin  ::)
Title: Re: hacking/modding coppermine = upgrade impossible?
Post by: skidpics 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..