hacking/modding coppermine = upgrade impossible? hacking/modding coppermine = upgrade impossible?
 

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]

Main Menu

hacking/modding coppermine = upgrade impossible?

Started by atmorell, September 04, 2007, 04:01:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

atmorell

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.

Sami

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

atmorell

Hello Sami.

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

Best regards.
Asbjørn Morell.

Joachim Müller

Quote from: atmorell on September 04, 2007, 04:01:54 PM
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.

skidpics

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?

Sami

‍I don't answer to PM with support question
Please post your issue to related board

skidpics

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..